This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

S120 bootloader by UART (not over by air)

Hi All,

I am working on the S120 bootloader. I start it with dfu sample on nrf6310 folder. It work with S110 softdevice with PCA10001 perfectly. I had made following change on the code for try to work with S120

  1. change the start address from 0x14000 to 0x18000 of "CODE_REGION_1_START" and "PSTORAGE_RAW_START_ADDR"
  2. remove include folder "../include/s110" and added "../include/s120"

It always go to a HardFault_Handler after run the softdevice.c line237 function:softdevice_handler_init "m_softdevice_enabled = true;"

is there something I missed?

Regards Peter

  • Hi All,

    I found I miss the step that change the RAM start address from 0x20002000 to 0x20002800....

    It working well now~~~

    Regards Peter

  • hi peter, i have been your Steps to build S120 bootload project(nrf6310\device_firmware_updates\bootloader) 1. CODE_REGION_1_START 2.PSTORAGE_RAW_START_ADDR 3. and change the softdevice include file(S120) 4. RAM start address . 5. remove the bootloader.c // err_code = sd_softdevice_forward_to_application(); // APP_ERROR_CHECK(err_code);

    but that will be HardFault_Handler after arm_startup_nrf51.s SystemInit

    is there something I missed?

  • Which version of softdevice you using?

  • hi, have you seen my private message sent to you today?i have some questions about s120 bootloader.

  • Here's my procedures:

    • CODE_REGION_1_START = 0x18000
    • PSTORAGE_RAW_START_ADDR = 0x18000
    • change the softdevice include file(S110 -> S120)
    • RAM start address = 0x20002800
    • RAM SIZE = 0x1800
    • Use Micro LIB
    • sd_softdevice_vector_table_base_set() -> sd_softdevice_forward_to_application()
    • modify HCI_SLIP_UART_MODE, HCI_SLIP_UART_RTS_PIN_NUMBER, etc. for your own board.

    I can do DFU, but I don't think FW running correct.. I will check what is the problem.

    [ADDED] : I mistakenly thought FW is not working, but there was no problem. It is working.

Related