Open gutzchi opened 2 years ago
Hi @gutzchi ! Could you please try the following configuration in your platformio.ini:
[env:nicla_sense_me]
platform = nordicnrf52
board = nicla_sense_me
framework = arduino
monitor_speed=115200
lib_archive = no
Hi @valeros. I have tried this configuration in both cases and the result is exactly the same.
Have the same problem. I have also used the platformio upload command with the Arduino IDE produced binary and that worked fine so I don't think there is a problem with the upload but rather the binary itself.
In the debugger I see it enter nicla::begin()
and never return. It looks like it is still doing things there as pausing it a few times will show different callstacks.
I notice that in ~/.platformio/packages/framework-arduino-mbed/libraries/Nicla_System/src/Nicla_System.cpp the nicla::begin() function does not have a return statements. I fixed my issue by adding
return true;
on line 35.
@asuar078 That helped me too! Good catch! Thanks!
Hello.
I have been redicted from an issue I posted on the Arduino mbed repository: https://github.com/arduino/ArduinoCore-mbed/issues/372
I have tried to use upload the example codes of the Nicla Sense ME board with very little success. The simplest example code is the following one:
This is the `platformio.ini' file:
And this is the compiler log: build_log_nicla.txt
If I debug it, it gets stuck when calling the
nicla::begin()
function, when creating and starting the thread (line 31): https://github.com/arduino/ArduinoCore-mbed/blob/838c70238aaee11c7a8a32cf570de4f51ce240f7/libraries/Nicla_System/src/Nicla_System.cpp#L25-L35This seems to be a problem of Platformio as it runs perfectly on the Arduino IDE. They use a different toolchain, by the way.
Moreover, if the
Arduino_BHY2.h
library is included, I get the following message form the OS:This is the corresponding build log: build_log_BHY2.txt
If I debug it, the program crashes in the same lines (which I believe should not be executed as the macro
NO_NEED_FOR_WATCHDOG_THREAD
is defined: https://github.com/arduino/ArduinoCore-mbed/blob/838c70238aaee11c7a8a32cf570de4f51ce240f7/libraries/Nicla_System/src/Nicla_System.cpp#L3-L9Please, could someone help me with this?