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

DFU Bootloader with S120 config

Hello,

I started to make an app for a board with nRF51822 with softdevice S120 version 1.0.1. Now I would like to have the DFU implementation in it but I am stuck at the project configuration.

Still quite new and I don't know how to solve this problem.

With version 1.0.1 I had this memory configuration: image description

Now, as @hungbui explained in this answer and from his example, I got this memory set-up: image description

If I let it like this, I got like 200 errors, as all the files and implementations I have already does not fit in that memory size.

If I change the IROM1 size to 0x27000, it compiles without errors, but when I try to Download it on the board, I get the error message:

Erase Failed! Error: Flash Download failed - "Cortex-M0"

Any help would be much appreciated.

Thank you.

Parents
  • @Gabriel C. :

    Why do you want to use S120 v1.0.0 ? The latest one is S120 v2.0.0. And the S120 example I uploaded is for S120 v2.0.0.

    If you don't do any modification and do compilation do you have any error? I don't know why you modified the IRAM1 setting ?

    The error: "Erase Failed! Error: Flash Download failed - "Cortex-M0"" Could be that you haven't given the algorithm to program the chip. Please check that in the Debug => JLink setting => Flash Download => Select nRF51xxx

Reply
  • @Gabriel C. :

    Why do you want to use S120 v1.0.0 ? The latest one is S120 v2.0.0. And the S120 example I uploaded is for S120 v2.0.0.

    If you don't do any modification and do compilation do you have any error? I don't know why you modified the IRAM1 setting ?

    The error: "Erase Failed! Error: Flash Download failed - "Cortex-M0"" Could be that you haven't given the algorithm to program the chip. Please check that in the Debug => JLink setting => Flash Download => Select nRF51xxx

Children
No Data
Related