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

OTA DFU Bootloader SDK9.0.0

Hi all,

I am trying to put the NRF51822 XXAA chip into DFU mode (the board used is a custom one and not the one in DK/EK).

SoftDevice V8.0.0 Bootloader Source from SDK9.0.0

I was able to build the bootloader successfully using GCC but when both the SD(loaded 1st) and Bootloader.hex(downloaded 2nd) are downloaded I am unable to see the peripheral advertising as DFUTarg. I tried to debug with a breakpoint on the main function but the breakpoint was not hit. So I guess the problem to be either on the startup file or on the linker file.

Attached below is the bootloader source code that I have made use.

Bootloader.zip

Kindly help me in fixing the issue so that I am able to proceed with OTA DFU of App firmware

Thanks

Parents
  • Many thing you need to check first. Which chip revision is on your custom board? Rev 1 won't work. Does your board have the 32KHz crystal? If not you need to change the softdevice init to use RC oscillator instead. in order to breakpoint, you need to flash the dfu with nrfgo or other means that sets the UCIR properly. After that you can break. Without the UCIR set properly, softdevice won't jump to DFU, though you cannot break in debug. Try to break in startup reset function first to see until when it crashes. Also make sure your ld script set the ram setting correctly for your chip. the DK uses 32KB ram.

    • I use a Rev 3 chip
    • Board has a 32KHz crystal
    • I have used nrfgo and what to flash? where can I find the bootloader hex files that can be flashed so that UICR is set properly
    • How to modify the ld script? The RAM size is 16KB
Reply Children
No Data
Related