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

Firmware not working on own hardware when compiled with gcc

Hello,

I have ported my firmware from SDK Version 13.1.0 to Version 15.2.0. Everything is working smooth and fine now except one thing:

When I flash the firmware to my own hardware AND it is compiled by gcc.

That means: Exactly the same hex is working on the Dev Kit. And even more curious: When I flash the Firmware using SEGGER Embedded Studio, everything works fine. The main() method seems not be invoked. I tried to blink a LED as first execution in the main method, but the LED doesn't light up.

One thing I noticed already: When the hex is created by Segger, the Memory Layout of the application is from 0x00026000 to 0x000473C0. When created by gcc, it is from 0x00026000 to 0x000461B8, so there is a difference between the Output of Segger and gcc. (Found out using the Programmer in nRF Connect)

Can you please give me hints where I could search for the root of the problem? 

I'm using: nRF528132 on my custom hardware by putting a Laird BL652 Module on top.
Dev Kit is the normal nRF52 DK
Softdevice is 6.1.0
gcc is: arm-none-eabi-gcc 6-2017-q1-update 6.3.1
SEGGER Embedded Studio for ARM V4.16
MacOS Mojave

Any ideas?

Thanks and Best regards,
Sebastian

Parents Reply Children
No Data
Related