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

Enable i2c or TWI in Bootloader

I kind off trying enable TWI in bootloader mode, This  is because of following reasons.

 

  1. Firmware is stuck in bootloader, if somebody removes the Device Battery during firmware update is in progress.
  2. Need read the MAC address in bootloader or DFU mode over I2C.
  3. In a mass deployment of firmware update we need rely on MAC ADRESS

 

 

Problem while enabling TWI in bootloader:

section .mbr_params_page VMA [000000000002e000,000000000002efff] overlaps section .text VMA [00000000000283d4,000000000002e283]

section .dfu_trans VMA [000000000002e284,000000000002e28b] overlaps section .mbr_params_page VMA [000000000002e000,000000000002efff]

 

@Day, David: Help me to overcome this error.

 

Current memory layout of the chip

 

12:00:08.188

Core RAM: 24KiB

12:00:08.188

Core ROM: 192KiB in pages of 4KiB

12:00:08.401

Model: NRF52810_xxAA_REV2.

Parents
  • Hi,

    Firmware is stuck in bootloader, if somebody removes the Device Battery during firmware update is in progress.

    The bootloader should be able to handle this scenario. Are you having issues with this?

    overlaps section

    If you add code to the bootloader, you need to increase the allocated flash for the bootloader. The bootloader is at the end of the flash, so you need to change the start address of the bootloader to a lower value, and increase the size/length the same amount. E.g. the debug variant of the bootloader project have allocated more flash space, since logging is enabled in the debug variant of the bootloader. 

Reply
  • Hi,

    Firmware is stuck in bootloader, if somebody removes the Device Battery during firmware update is in progress.

    The bootloader should be able to handle this scenario. Are you having issues with this?

    overlaps section

    If you add code to the bootloader, you need to increase the allocated flash for the bootloader. The bootloader is at the end of the flash, so you need to change the start address of the bootloader to a lower value, and increase the size/length the same amount. E.g. the debug variant of the bootloader project have allocated more flash space, since logging is enabled in the debug variant of the bootloader. 

Children
No Data
Related