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

Bootloader s120 V2.0 for PCA10001

Hello everyone, I am program for PCA10001 and I want to use Bootloader to upgrade firmware through OTA for my device. I have a old file bootloader use for s110, and I tried to modify it follow: change include path into s120, add ble_enable_params.gap_enable_params.role = BLE_GAP_ROLE_PERIPH for ble_stack_init();, and configure my RAM1 and RAM2 IRAM1 0x20002C00 0x1380 IRAM2 0x20003F80 0x80

Then I try to demo with a example ble_app_hrs_c project in V8.0.0 SDK, but It still doesn't work, then I try to debug step by step and it is stucked at 0x000006d0 at beginning, I took a screen photo,post at drive.google.com/.../view

About ROM and RAM1 in ble_app_hrs_c project, I set as default. Can anyone explain for me?

  • @Hung: I am a beginner in nrf81822, and I tested as a normal way, first I used NRF Studio erase all chip then I programed S120 V2.0.0 for SoftDevice, then I program modified bootloader file (this file work well in s110 and I modified it to use on s120 follow devzone.nordicsemi.com/.../), then I use KeilC V5 to program my application. But when I debug my application, program canot jump to main beacause It's halted at 0x000006d0). And I tested your bootloader on SDK 8.0.0 too but there's this issue. Do you have Skype Account, if you have time, can you contact Skype with me through [email protected]? We can discuss easier. Thank you so much.

  • @Phu: After you flash the bootloader, please check and make sure it's advertising as DFU_Targ. It's not the default procedure that you flash your application via KEIL unless you modified the APP_VALID flag.

    I suggest you to modify the bootloader so that you can debug it and check what goes wrong by stepping into the bootloader code. To set the bootloader so that you can debug it, you can have a look at question F here.

    What kind of issue did you have with the stock S120 bootloader example ?

  • I made a video for this issue and posted it on Youtube at https://youtu.be/Cgm9-oxRXhE, it run your s120 bootloader example.

  • @Phu: Please explain me how you test the bootloader ! With step by step on what you do. It's hard to guess from your video. The default steps should be:

    1. Flash S120 softdevice
    2. Flash the bootloader
    3. Check if the bootloader advertising
    4. Use MCP or DFU app to do DFU with the image from an example in the SDK. 
    5. Check if the DFU process finishes successfully
    6. Check if the device enters the application 
    7. Check if you power reset the device and still can enter application. 
    

    You can test first with simple application like blinky (with modification on ROM so that it works with S120 flashed). Let me know at which step you have issue.

Related