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

cannot find entry symbol reset_handler

Hi all , I used SEGGER Embedded Studio v3.10 , and import a ble_app_uart keil project , but now build warnning as follow:

create .elf file have a warning "cannot find entry symbol reset_handler;defaulting to 0x0001c000" I added nRF_Startup.s this file and modified MemoryMap.xml file flash start address and size ,Ram start address and size .

How to slove this problem ? Thanks for your help .

Best Regards

  • Have you seen this blogpost? There it says:

    In Properties -> Debugger -> Debugger Options -> Start From Entry Point Symbol, set to 'No.' 
    This is because we should enter our SoftDevice's ResetHandler(), not our applications.
    
  • Hi ,Thanks for your help ,but I has already modified this properties , can't build pass .

  • Hey,

    It looks like there are some good changes in Embedded Studio v3.10! But I think I will need to make a tutorial for this version integrating in all the feedback from the two previous blog posts.

    However, the answer to you're question:

    • In Options -> Linker -> Linker set Entry Point to reset_handler.
    • In Options -> Debugger make sure Start From Entry Point Symbol is set to No.

    This is how I was able to reproduce/fix the problem you described. If I set Entry Point to UNDEFINED then the build fails with a warning cannot find entry symbol UNDEFINED; defaulting to 0001c274. I would think Embedded Studio would ignore Entry Point if Start From Entry Point Symbol is No, but I guess not.., or it's used somewhere else?

    However, when I opened Embedded Studio v3.10 for first time and imported a fresh ble_app_uart Keil project, the build worked out of the box without this error (after I had to add some directories to the pre-processor includes).

  • Hi Michael Dietz ,

    Thanks for your attention, I start imported ble_app_uart Keil project , select Internal Toolchain (Gcc/Clang), compile successful .

    I modified the nrf52832_xxAC_MemoryMap.xml flash and RAM start address and size , and replace Internal Files Cotex_M_Startup.s to nRF_Startup.s and added system_nrf52832.c file , and compile again , just have a warning "cannot find entry symbol reset_handler;defaulting to 0x0001c000",compile failure.

  • Did you install the nRF Pack? You shouldn't have to manually replace the startup files. Make sure you are following the most recent blog post on Embedded Studio as it has important updates: devzone.nordicsemi.com/.../.

1 2