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

Bootloader setup

I'm working on a custom bootloader; below is the step taken but it doesn't workout:

  1. By using a working UART example, change the linker script:

MEMORY { FLASH (rx) : ORIGIN = 0x7B000, LENGTH = 0x2B000 RAM (rwx) : ORIGIN = 0x20001F00, LENGTH = 0x6100 } 2. Flash the "dfu_test_softdevice_w_bootloader_b_hci_s132.hex" with jlink commander. 3. Check the UICR, softdevice and application by nrfjprog: (All written in correct addresses)

C:\WINDOWS\system32>nrfjprog --readuicr C:\CM\uicr.txt Reading UICR. Storing data in C:\CM\uicr.txt.

C:\WINDOWS\system32>nrfjprog --readcode C:\CM\flash.txt Reading flash. Storing data in C:\CM\flash.txt.

  1. Reset the DK board.

But it doesn't work at all.

Please help me on this.

Thanks

Parents
  • Thank for your reply.

    We make use of example from nRF5_SDK_11.0.0_89a8197\examples\dfu\bootloader; and we are using Eclipse with arm gcc complier.

    What we have done: (using softdevice s132)

    1. Modified the main.c to print DFU_BANK_0_REGION_START to uart console(putty); get 0x0001C000.

    2. Build blinky example with:

      FLASH (rx) : ORIGIN = 0x1C000, LENGTH = 0x9000 RAM (rwx) : ORIGIN = 0x20002080, LENGTH = 0x6000

    3. Add bootloader_app_start(DFU_BANK_0_REGION_START); after "print DFU_BANK_0_REGION_START" code.

    4. Flash and run, uart console get 0x0001C000 but not jumping to blinky example.

Reply
  • Thank for your reply.

    We make use of example from nRF5_SDK_11.0.0_89a8197\examples\dfu\bootloader; and we are using Eclipse with arm gcc complier.

    What we have done: (using softdevice s132)

    1. Modified the main.c to print DFU_BANK_0_REGION_START to uart console(putty); get 0x0001C000.

    2. Build blinky example with:

      FLASH (rx) : ORIGIN = 0x1C000, LENGTH = 0x9000 RAM (rwx) : ORIGIN = 0x20002080, LENGTH = 0x6000

    3. Add bootloader_app_start(DFU_BANK_0_REGION_START); after "print DFU_BANK_0_REGION_START" code.

    4. Flash and run, uart console get 0x0001C000 but not jumping to blinky example.

Children
No Data
Related