arduino / ArduinoCore-nRF528x-mbedos

[Archived] Arduino core supporting mbed-enabled boards
86 stars 34 forks source link

Runtime errors #39

Open fgaetani opened 4 years ago

fgaetani commented 4 years ago

I have a problem with the Arduino Nano 33 BLE board with ArduinoBLE library. As soon as I try to connect to the device through the smartphone, the microcontroller freezes and the yellow LED flashes 5 times fast and 5 times slow and I am forced to reflash the firmware by double clicking the reset button. I have found similar problems also with the use of Wire library. What can this problem be due to?

fgaetani commented 4 years ago

I solved using PlatformIO, the same project is compiled without any problems, it works on the microcontroller and no runtime errors occur. How is this possible? Does PlatformIO use the same compilers of Arduino IDE or am I wrong? It is paradoxical that official support works worse than unofficial support.

facchinm commented 4 years ago

Hi @fgaetani , AFAIK platform.io uses our source code and compilers so I truly doubt the issue to be there. Maybe they are sticking to an older version of the core that doesn't exhibit the bug you are encountering?

fgaetani commented 4 years ago

Hi @facchinm , it's been a long time, but I remember very well that the core version and the main code compiled were the same.

oacs commented 4 years ago

When the yellow LED flashes 5 times fast and 5 times slow is a runtime error ?

fgaetani commented 4 years ago

Hi @oacs, yes, that is the reporting of a runtime error.