Seems that this is the cause:
“Version 0219. Source: https://github.com/NordicSemiconductor/CMSIS-DAP/tree/V0219
Please note that there is a behaviour change between this firmware and the J-Link firmware - with the mbed firmware you must press the ‘BOOT/RESET’ button the board to run your code once it has been downloaded *”
How can I emulate the press on the BOOT/RESET button when not connected to the DAPLINK?
By the way, this is a huge undocumented piece of info. I mean, I would expect this to be in a getting started manual by Red Bear and not in the DAPLINK page in mbed’s website.
Thank you for pointing out this, by default, RedBear DAPLink has been set to auto-reset “ON” by default for firmware uploading, it is not the same as mentions here:
It is not related to the Nordic’s case and also, mbed firmware and the test firmware from RedBear will not affect this behavior. In the mean time, you can try to follow the MSD_COMMANDS.md to set it. RedBear will try to find out the reason as you point out, we hope there is not something missing during the production.
The blinking hex from your github starts when the board gets powerred. But when building the example in mbed, the code will start to run only when presseing the RESET/BOOT button. I suspect this is an issue with the mbed library/os or mbed board specific code.
Please try to build the blinky example in mbed, flash the board, then unplug and re-plug the board, the code won’t run until reset/boot is pressed.
I also need to know how to have the Nano 2.0 start running a program when power is applied, and currently it doesn’t start running a program until the reset button is pressed. The redbear DAPlink board is v1.5.
If I upload the HRM codes with Arduino IDE, BLE nano works fine when I power it with batteries via VIN or replug the DAPlink.
But when I upload the codes with mbed, basilly the same codes, BLE service does not start in a correct way when I power it with batteries via VIN or replug the DAPlink. It only works immiediately after drag & drop the hex file, or after pushing the RESET button. Absolutely not working with the batteries.
Sorry, I do not quite understand what is the problem. Not reseting the Nano2 after deploying the application? Or not working if powered by battery? Or even it did not work if uploading the hex file generated from mbed?