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

nFR51822 DFU-OTA bootloader do NOT work

I use SD 7.1.0. My own app works perfectly. I use my own PCB, debugger J-Link Segger. I try to upload any app via bootloader from SDK's example (modified in LED_pins dfu_dual_bank_ble_s110_pca10028). Dfu adv-nt doesn't start.

dfu_init() == NRF_SUCCESS;

but go to infinite loop in

dfu_ble_get_peer_data(&m_ble_peer_data)  == NRF_ERROR_INVALID_DATA
  ->  crc16_compute((uint8_t *)&m_peer_data, sizeof(m_peer_data), NULL); <- here

It is example and I am a newbie. What I do wrong?

edit 1 check blog post devzone.nordicsemi.com/.../

Parents
  • @wins: It's fine to have dfu_ble_get_peer_data() return NRF_ERROR_INVALID_DATA. This means you have no bonding information passed from application. If you start DFU bootloader straight from power up you should have this NRF_ERROR_INVALID_DATA returned. I suspect there must be smth else went wrong. Have you tried the DFU example without any modification ?

    To be able to properly debug DFU you would need to change the Optimization level to 0 . Please follow this link on how to debug with the bootloader.

    Note that you would need chip version at least 2 to be able to run S110 v7.1.0. Please take a look at this matrix table to know which version your chip is.

Reply
  • @wins: It's fine to have dfu_ble_get_peer_data() return NRF_ERROR_INVALID_DATA. This means you have no bonding information passed from application. If you start DFU bootloader straight from power up you should have this NRF_ERROR_INVALID_DATA returned. I suspect there must be smth else went wrong. Have you tried the DFU example without any modification ?

    To be able to properly debug DFU you would need to change the Optimization level to 0 . Please follow this link on how to debug with the bootloader.

    Note that you would need chip version at least 2 to be able to run S110 v7.1.0. Please take a look at this matrix table to know which version your chip is.

Children
No Data
Related