Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

undefined reference to `afterInitialize' - Linker Errors

Getting these linker errors that I believe may have to do with upgrading an example from SDK 16 to 17... however I'm not finding anything useful in the release notes as far as ses configuration settings required to fix these errors. So now I'm not sure anymore. 

Any help would be appreciated, thank you.

Linking ble_app_multilink_central_pca10056_s140.elf [4 errors]

cannot find entry symbol Reset_Handler; defaulting to 0000000000027218

Output/Release/Obj/ble_app_multilink_central_pca10056_s140/ses_startup_nrf52840.o: in function `nRFInitialize':

undefined reference to `afterInitialize'

Output/Release/Obj/ble_app_multilink_central_pca10056_s140/ses_startup_nrf52840.o: in function `_vectors':

(.vectors+0x4): undefined reference to `Reset_Handler'

Parents Reply
  • Thank you Vidar! A quick note, after adding the common startup file to the solution as you suggested, I get the more common error found when upgrading to SDK 17 from 16 - "Undefined reference to '__RAM1_segment_end__'""

    This requires modifying the flash_placement.xml by changing "RAM" to "RAM1" as well as a similar modify to the Memory Segments Placement option in the Linker settings. Just a heads up to those with similar issues.

    Instructions with exact fix is here

Children
No Data
Related