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

nRF52 GCC DFU bootloader not flashing

Hi All,

I've happily done all this work before on the Nrf51822 with boot loaders and apps and a happily deployed product.

Thought it was time to shift over to GCC on my Mac and kick Keil to the curb and also update our product to new chippy.

That said I've got GCC happily setup, I can build blink and load it to the DK board (PCA10036). All good. LEDs blink.

I then tried the sample Beacon app + SD and that all works fine as well.

Then I tried the boot loader "dual_bank_ble_s132" and it compiles etc I can burn it along with the SD but no joy.

It should start advertising as DfuTarg, but that ain't happening. I added some minor code to enable a particular LED to see that my code was running but it's not turning on.

On the DK it looks like LED2 is on. What is also weird is LED4 has a very faint light on it. Like its got a small duty cycle (maybe its resetting again and again?)

I'm using the wonderful OS X tool RKNRFGO (which sits and uses JLinkExe) to program everything. It is working for all the other examples (blinky/sd/beacon) but not the boot loader.

I'm assuming that something is wrong for programming the register which sets the start address or similar..

Heres the screenshot (as it shows the extracted info).image description

I'm hopefully that someone out there has successfully flashed the nRF52832 on a Mac with the boot loader :-)

Reading the docs I also tried the images "dfu_test_bootloader_b" etc etc all to the same effect.

Ta,

Chris

Parents
  • After talking with RK who built the great tool he helped me track down the issue which was that it was defaulting to nRF51822 in the generated scripts causing issues with it flashing the boot loader.

    After a quick patch from him we tested a new version of this tool and it works perfectly!

    I imagine this version will be available shortly to the public and will include the ability to select from the two devices.

    Thanks again Roland, great help and a real life saver.

Reply
  • After talking with RK who built the great tool he helped me track down the issue which was that it was defaulting to nRF51822 in the generated scripts causing issues with it flashing the boot loader.

    After a quick patch from him we tested a new version of this tool and it works perfectly!

    I imagine this version will be available shortly to the public and will include the ability to select from the two devices.

    Thanks again Roland, great help and a real life saver.

Children
Related