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
  • @Hung Bui, when I started to develop the app, there were no V2.0.0 yet. And all worked great till now, when I need to implement the DFU and I'm not able to adapt your example to my code. Also all the examples from SDK are not installed in "\SDKv8.0\examples\dfu" but in "C:\Programas\Keil\ARM\NordicSemiconductor\nRF_Examples\8.1.1\dfu" and when I copy there your folder it is missing all the files except "main" and "dfu_ble_svc". Also, do I need to flash a bootloader.hex file when I flash softdevice? Does dfu_test_bootloader_b.hex work? Thank you and sorry for my ignorance. I'm having quite a bad time with it...

Reply
  • @Hung Bui, when I started to develop the app, there were no V2.0.0 yet. And all worked great till now, when I need to implement the DFU and I'm not able to adapt your example to my code. Also all the examples from SDK are not installed in "\SDKv8.0\examples\dfu" but in "C:\Programas\Keil\ARM\NordicSemiconductor\nRF_Examples\8.1.1\dfu" and when I copy there your folder it is missing all the files except "main" and "dfu_ble_svc". Also, do I need to flash a bootloader.hex file when I flash softdevice? Does dfu_test_bootloader_b.hex work? Thank you and sorry for my ignorance. I'm having quite a bad time with it...

Children
No Data
Related