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

SEGGER Embedded Studio - Import Makefile

Hey.

I have a code for processor nrf51422 which compiles using a makefile. However, I decided to import it into a segger - with which I have no experience. For this I used the finished project from the SDK and edited it - I added all my paths and source files.

I could not only replace the assembler files - in the makefile I used gcc_startup_nrf51.s, but when I tried to replace the existing Cortex_M_Startup.s and SEGGER_THUMB_Startup.s files, I got a lot of errors regarding the lack of a symbol.

As I am using SDK 9.0 I also defined flash_start and ram_start (using the guide devzone.nordicsemi.com/.../adjustment-of-ram-and- flash-memory)

The program is building properly, but when I download it to the processor, it does not work as it should - LEDs and the BLE protocol do not start.

Verification between the program in the segment and the makefile shows me the differences in virtually every address. The only thing I know for sure is that downloading the program from Segger does not overwrite my SDK.

So the problem is probably with flags or assembly files. Could someone advise you on how I can solve this ?

Makefile:

https://pastebin.com/F4gDQtJe

Solution (SEGGER): - The code builds with the configuration nrf51422_xxaa_s110 Internal

https://pastebin.com/KndHMpPh

Regards

Related