This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Buttonless DFU with GCC

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:

  1. Compile buttonless dfu using gcc (gcc_app.hex)
  2. Compile buttonless dfu using keil (keil_app.hex)
  3. Erase the chip->Flash SD->Flash gcc_app.hex->Restart ---> This does not work
  4. Erase the chip->Flash SD->Flash keil_app.hex->Restart ---> This works
  5. 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?

Related