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

Unable to connect with the device on jumping to bootloader, thus no DFU.

Hello,

I got two device with DFU-OTA service enabled (included device manager and dfu related handlers/files; merged the application, dual-bank bootloader, s130, app_valid_setting hex together)

i) nrf51422-DK

ii) Custom board with nrf51822

The DFU-OTA works on DK, but when same code is flashed in my custom board with nrf51822 device fails to begin DFU service.

From Log in nrfConnect app,

  • [DFU]Jump to bootloader sent (OpCode = 1, Upload Mode = 4)
  • Device disconnects
  • [DFU] DFU service started
  • [DFU] opening files
  • [DFU] connecting to DFU target
  • [DFU] gatt=device.connectGatt(autoConnect=false)

At this point the DK gets connected in bootloader mode and DFU starts, whereas my custom board is unable to reconnect which is in bootloader mode.

Is it because custom board nrf51822 has 16kB RAM and nrf51422 has 32kB RAM , thus not enough RAM to begin dual-bank bootloader ?

I have tried changing iRAM1 Size from 0x5F80 to 0x4000 (i.e. 16kB) in application code, should I make the same changes somewhere else also?

Related