Did you add two different versions of the same library to you Arduino IDE named - industrial-motion-classifier-nano33blesense_inference.h. I am not pretty sure, but the logs read that. If you have two duplicated versions of the file, could you try removing the previous one and using the one compatible and try again?
If the file isn’t duplicate and instead, there are two libraries of the same name, you could try removing the one you don’t require, or rename it.
The duplicate libraries should not be a problem, Arduino takes the latest.
The unrecognized option error is the culprit, but I can’t see the exact message. My first guess would be that you’ll need to update the Arduino core for the Nano 33 BLE Sense via Arduino IDE > Tools > Board > Boards manager and then start by selecting 1.3.1 of this package:
Thank you @dhruvsheth and @janjongboom for the suggestions. I have tried both suggestions. The duplicate libraries seems not the issue as mentioned by Jan. I also have tried the updating the Arduino core for Nano 33 BLE sense by selecting version 1.3.1. Now, the previous error is gone, however, the compilation error still occurred:
Multiple libraries were found for “industrial-motion-classifier-nano33blesense_inference.h”
Used: C:\Users\Mohd Ridzuan\Documents\Arduino\libraries\ei-industrial-motion-classifier-nano33blesense-arduino-1.0.2
Not used: C:\Program Files (x86)\Arduino\libraries\ei-industrial-motion-classifier-nano33blesense-arduino-1.0.2
Using library ei-industrial-motion-classifier-nano33blesense-arduino-1.0.2 at version 1.0.2 in folder: C:\Users\Mohd Ridzuan\Documents\Arduino\libraries\ei-industrial-motion-classifier-nano33blesense-arduino-1.0.2
Using library Arduino_LSM9DS1 at version 1.1.0 in folder: C:\Users\Mohd Ridzuan\Documents\Arduino\libraries\Arduino_LSM9DS1
Using library Wire in folder: C:\Users\Mohd Ridzuan\AppData\Local\Arduino15\packages\arduino\hardware\mbed\1.3.1\libraries\Wire (legacy)
fork/exec C:\Users\Mohd Ridzuan\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4/bin/arm-none-eabi-g++.exe: The filename or extension is too long.
Error compiling for board Arduino Nano 33 BLE.
I do have something new to ask. Not sure whether I should create a new thread or continue here. It is related to the compilation time. Mine takes more than 1 hour. Yes, I wrote it correctly, hour. This is not normal, I know. Some says it is due to the antivirus software. As my antivirus software is a corporate version, I can not easily/simply temporary disable or uninstall unless I have the permission/password. Is there any other possibility for this forever like compilation time? Really appreciate for any insight on this matter.
My laptop is ran by Intel® Core™ i7-4550U CPU@ 2.10 GHz. The RAM is 8GB. Should be fine, I presume. Btw, just want to share a video of my movement-detection using Nano 33 BLE that was successfully trained (after long compilation time, phew):
I did a minor editing to the library example (I chose the non-continuous version). There are 5 different movements. In the video, I showed 3 of them. Each one will turn on a different LED color. Is there any different between non-continuous and continuous version of the library example?
I made an appointment with the IT office tomorrow. Hopefully, can disable the antivirus software and see its effect on the compilation time. If no avail, then I’ll try the new IDE as suggested. Thanks.
After uninstalling the antivirus software from my laptop, the Arduino IDE desktop can now consistently completing the compiling + uploading jobs in less than 2 minutes. Normally, the first-time compilation job takes about 5 minutes or so. The following subsequence jobs, due to the cache memory usage, just take 1-2 minutes or less for completion.