Mbed_BLE_HID.h - Eclipse

Hello,

I am working with a Arduino Nano 33 LBE. My sketch uses Mbed_BLE_HID.h.
All work great when I use the Arduino IDE.

However, I would like to develop using Eclipse.

I install Sloeber and my Arduino is recognized (at least it shows next to the project name in the project explorer windows of Eclipse)

When I trie to compile I have the following error :

/Documents/Arduino/libraries/Mbed_BLE_HID/src/Mbed_BLE_HID.h:4:10: fatal error: memory: No such file or directory
#include memory
^~~~~~~~
compilation terminated.
make: *** [sloeber.ino.cpp.o] Error 1
"make all" terminated with exit code 2. Build might be incomplete.

Any idea what's happening ?

Thanks for your help

P.

Full ERROR :
17:59:01 **** Incremental Build of configuration Release for project Octopus_V1_0 ****
make all
Building file: ../sloeber.ino.cpp
Starting C++ compile
"/Users/x/eclipse/java-2019-093/Eclipse.app/Contents/Eclipse/arduinoPlugin/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"/Users/patrickdethioux/eclipse/java-2019-093/Eclipse.app/Contents/Eclipse/arduinoPlugin/examples/09.USB/Keyboard/KeyboardMessage" -I"/Users/X/eclipse/java-2019-093/Eclipse.app/Contents/Eclipse/arduinoPlugin/packages/arduino/hardware/avr/1.8.5/cores/arduino" -I"/Users/X/eclipse/java-2019-093/Eclipse.app/Contents/Eclipse/arduinoPlugin/packages/arduino/hardware/avr/1.8.5/variants/leonardo" -I"/Users/X/Documents/Arduino/libraries/Keyboard/src" -I"/Users/X/eclipse/java-2019-093/Eclipse.app/Contents/Eclipse/arduinoPlugin/packages/arduino/hardware/avr/1.8.5/libraries/HID/src" -I"/Users/X/Documents/Arduino/libraries/Bounce2/src" -I"/Users/X/Documents/Arduino/libraries/MIDI_Library/src" -I"/Users/X/eclipse/java-2019-093/Eclipse.app/Contents/Eclipse/arduinoPlugin/packages/arduino/hardware/avr/1.8.5/libraries/SoftwareSerial/src" -I"/Users/X/Documents/Arduino/libraries/Mbed_BLE_HID/src" -MMD -MP -MF"sloeber.ino.cpp.d" -MT"sloeber.ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "../sloeber.ino.cpp" -o "sloeber.ino.cpp.o"
In file included from /Users/X/Documents/Arduino/libraries/Mbed_BLE_HID/src/Nano33BleHID.h:4:0,
from ../sloeber.ino.cpp:14:
/Users/X/Documents/Arduino/libraries/Mbed_BLE_HID/src/Mbed_BLE_HID.h:4:10: fatal error: memory: No such file or directory
#include
^~~~~~~~
compilation terminated.
make: *** [sloeber.ino.cpp.o] Error 1
"make all" terminated with exit code 2. Build might be incomplete.

Hi @bklyn3. It is very difficult to understand your output because you did not post it correctly. You can learn how to do that here (the same approach should be used for compiler output in addition to code):

https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966#use-code-tags

You are compiling for the AVR-based Arduino Nano board in Sloeber. This is the cause of the error. Your code can only be used with the Nano 33 BLE.

Thanks a lot for your help. I was indeed compiling for the wrong board :frowning:

You are welcome. I'm glad if I was able to be of assistance.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.