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

Problem with program flashing using eclipse gcc

Hello,

I followed the tutorial to use Eclipse GCC and both examples (blinky without softdevice and HRS with S110) work fine, i.e. I can build and flash them. Now I try to start a new project based on the example Experimental: multiactivity. It uses Softdevice S130. I therefore adapted the makefile as well as the ld file. I can build the project, however I have a problem flashing it. It does flash but not to the correct addresses. Here is the output of Eclipse:

Flashing: _build/nrf51422_xxac.hex
nrfjprog --program _build/nrf51422_xxac.hex -f nrf51  --sectorerase
Parsing hex file.
Erasing page at address 0x0.
Erasing page at address 0x1C000.
Erasing page at address 0x1C400.
Erasing page at address 0x1C800.
Erasing page at address 0x1CC00.
...
...
Erasing page at address 0x2CC00.
Erasing page at address 0x2D000.
Erasing page at address 0x2D400.
Erasing page at address 0x2D800.
Applying system reset.
Checking that the area to write is not protected.
Programing device.
nrfjprog --reset
Applying system reset.
Run

I am under the impression that the line "Erasing page at address 0x0" is wrong. But I don't know where it gets the information to use this address. The rest seems ok (addresses 0x1c000 to 0x2D800). Can you please help me?

ellcie-healthy.ld

Parents Reply
  • just add the same stanza to the normal nrf51 link map. You might want to do a slightly more tidy job than they did, don't repeat the end of data marker, leave the debug stuff out and put >RAM at the end of that fs stanza which appeared to have been left out (it defaults so it works). Not too hard.

Children
No Data
Related