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

nrf52 KEIL's project create .elf with SEGGER, why?

Hello,

I am newbie with KEIL/SEGGER, I have been following this tutorial to compile the example experimental_ble_app_blinky_pca10040_s132 for my nrf52 chip, the project was imported from KEIL to SEGGER Embedded studio 3.12 and I am using nordic sdk12.2

I would like to compile a hex not for the softdevice itself, but for my real devie. So far, following the above tutorial has led me to create a binary, however I see that the binary that comes out is an .elf instead of a .hex, which I would expect. Is this normal or something is going wrong in with my compilation as I'm afraid of? Where can I set the option to create a .hex?

An screenshot of my current enviroment is this one, I have excluded from the build the arm_startup_nrf52.s since otherwise I get the error saying "startup_config.h not found" and I have added the macros for the memory mapping

image description

Thanks in advance,

Best regards,

EDIT: following Sigurd link I could generate the HEX file, however when trying to run it or debug it I get a Unknown function at 0xFFFFFFFFE,which I cannot point it out where it comes. Any idea? image description

Related