Hi,
I seem to be stuck on a rather simple problem here which I am unable to figure out. I am using SDK 12.2 with PCA10040 board.
When I am compiling the experimental buttonless DFU example with gcc, the MCU doesn't start at all even after a reset. I am not using the bootloader at this point just the application itself with SoftDevice S132 v3.0.0.
However if I compile using Keil and follow exactly the same steps it works normally as expected advertising itself.
Here's what I did:
- Compile buttonless dfu using gcc (gcc_app.hex)
- Compile buttonless dfu using keil (keil_app.hex)
- Erase the chip->Flash SD->Flash gcc_app.hex->Restart ---> This does not work
- Erase the chip->Flash SD->Flash keil_app.hex->Restart ---> This works
- Erase the chip->Flash SD->Flash ble_app_hrs (compiled with gcc) ---> This works, so no gcc toolchain issue here.
Just to be sure I am programming everything with nrfjprog on the command line so following exactly the same steps. The only difference being the hex file that is produced using gcc and keil.
What could I be doing wrong?