Error: app.hex in softdevice region

Hamza gravatar image

asked 2017-09-12 13:28:13 +0100

Hello everyone,

I'm currently migrating from a functional code IAR to Eclipse GCC.

It compiles fine and I got the hex files.

However I have some troube to flash the application in the module. Indeed, when I'm using nRFgo studio, it throws an error.

This hex file has data in SoftDevice region

But when I compile with IAR, there is no problem.

Do you have any idea ?

Thank you four answers.

edit retag flag offensive close delete report spam

2 answers

Sort by » oldest newest most voted
Hamza gravatar image

answered 2017-09-13 16:57:34 +0100

Found the answer. The addresses in the linker script were wrong. Thanks for your answers guys.

edit flag offensive delete publish link more
AmbystomaLabs gravatar image

answered 2017-09-12 14:36:59 +0100

This is because the project settings in GCC are not correct. You need to set the ROM start and size for the application in GCC. Applications do not have a native place in memory. It is up to the designer to choose where to place the application. For your situation it would be per the spec in the softdevice type and rev you are using. Or, you can just copy the settings you find in IAR.

edit flag offensive delete publish link more


Thanks for your answer. Do you know how to set up the ROM address in eclipse? Or do I just need to update the linker script?

Hamza ( 2017-09-12 14:43:21 +0100 )editconvert to answer

Sorry I have never used Eclipse.

AmbystomaLabs ( 2017-09-12 14:47:00 +0100 )editconvert to answer

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

User menu

    or sign up

Recent questions

Question Tools

1 follower


Asked: 2017-09-12 13:28:13 +0100

Seen: 102 times

Last updated: sep. 13 '17