-
-
Notifications
You must be signed in to change notification settings - Fork 34
link error on mbed::InterruptIn #86
Comments
Hi @zvilius , |
Thank you @Polido, I'll give that a try. |
Apologies, but I'm new to the Arduino IDE and infrastructure so I don't know how all the pieces fit together. Perhaps you can just get me headed in the right direction: I'm not sure I'm building with the new (beta) Arduino core for mbed devices. I followed the installations instructions from the README:
When I run the Arduino IDE, it does seem to be noticing the new board in the $sketchbook folder: But when I build (replacing the old MbedPinMode with PinMode) I get an error: The reason I don't think I'm using the new stuff is the lines: Thanks for any assistance... |
Hi @zvilius , |
Hi Martino @facchinm , I'll see if I can get some real code to run now. Thanks. |
Hi @zvilius , |
Hi Martino @facchinm , |
Perfect, no need to open an issue, thanks 😉 |
Closing as fixed |
Using MbedPinMode parameters with the mbed::InterruptIn class results in link errors.
The error (for case 1) is:
"C:\Users\Zest\Documents\ArduinoData\packages\arduino\hardware\mbed\1.1.4\variants\ARDUINO_NANO33BLE/libs/libcc_310_trng.a" -Wl,--no-whole-archive -Wl,--start-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -Wl,--end-group
C:\Users\Zest\AppData\Local\Temp\arduino_build_748706\sketch\sketch_jun23b.ino.cpp.o: In function `__static_initialization_and_destruction_0':
C:\Users\Zest\Documents\Arduino\sketch_jun23b/sketch_jun23b.ino:1: undefined reference to `mbed::InterruptIn::InterruptIn(PinName, MbedPinMode)'
If I use the mbed::DigitalIn class (case 2) there is no error.
If I use the 1-argument constructor (case 3) there is no error.
However if I use the 1-argument constructor and then call the mode() method (see above), the mode() method fails to link.
Perhaps there is a build issue with the mbed library as it relates to the macro redefinition of the mbed version of PinMode to MbedPinMode? However it works for mbed::DigitalIn.
The text was updated successfully, but these errors were encountered: