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

SES compilations error with Github Sample

Dear Team, I face Following error with example downloaded from Github, 

error 1) Output/Release/Obj/saadc_pca10040/ses_startup_nrf_common.o: in function `InitializeUserMemorySections':

error 2) undefined reference to `__RAM1_segment_end__'

with all examples I get this error which downloaded from github. I tried with changing softdevice version in common, but unable to comeout from this issue, your queick response will be apreciated

  • Hi

    What nRF5 device are you trying to flash this project onto? This project is made for the nRF52832, so if you're using another device in the nRF52 family, the RAM address may be incorrect. Please check out our RAM and Flash address adjustment guide and make sure the addresses are correct in your device.

    Best regards,

    Simon

  • Hi, I use NRF52 DK, can you please suggest me memory maping fo the same? I tried copy Blinky example memory from Option-> common, but stil no result. Is iam doing something wrong there? Still I ll try to read guide also

  • Hi

    Just to avoid any confusion, can you confirm which one of the nRF52 ADC examples you're using, I assume it is one of these three, correct? In that case, you shouldn't need to make any alterations to make it work with an nRF52DK. Have you cloned the GitHub repository into the following path in the nRF5 SDK?

    \nRF5_SDK_17.0.0_9d13099\examples\nRF52-ADC-examples\

    If you download the .zip file, you can place the individual projects into the \nRF5_SDK_17.0.0_9d13099\examples\peripheral\ and/or \nRF5_SDK_17.0.0_9d13099\examples\ble_peripheral\ folder.

    Best regards,

    Simon

  • Dear Simonr,

    My issue not yet solved even after following path as per suggested by you,

    My file location and project is same in Local link and done again everything from scratch including Clone of the project.

    D:\nRF5_SDK_17.0.2_d674dde\examples\nRF52-ADC-examples\ble_app_uart__saadc_timer_driven__scan_mode\pca10040\s132\ses

    Also for your reference Output log also pasted

    4> Compiling ‘nrf_sdh_ble.c’
    1> Compiling ‘nrf_sdh_soc.c’
    1> Generating linker script ‘ble_app_uart_pca10040_s132.ld’
    1> Linking ble_app_uart_pca10040_s132.elf
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.10b/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/ses_startup_nrf_common.o: in function `InitializeUserMemorySections':
    1> D:\nRF5_SDK_17.0.2_d674dde\modules\nrfx\mdk/ses_startup_nrf_common.s:117: undefined reference to `__RAM1_segment_end__'
    Build failed

    An example was same as you mentioned.

  • Okay, so you're using SDK v17.0.2.The GitHub examples are made for SDK v17.0.0, and according to the SDK v17.0.2 release notes there are some fixes necessary to make SES projects compatible.

    Compatibility of SES projects: Updates and fixes in the MDK used by Segger Embedded Studio break backwards compatibility with old SES project files. To use old projects in combination with this version of the SDK (MDK), make the following updates: 1. In the flash_placement.xml file: MemorySegment name must be changed from "RAM" to "RAM1": <MemorySegment name="RAM1" start="$(RAM_PH_START)" size="$(RAM_PH_SIZE)"> 2. In the .emProject file: In "linker_section_placements_segments" you must refer to "RAM1", replacing "RAM": linker_section_placements_segments="FLASH RX 0x0 0x100000;RAM1 RWX 0x20000000 0x40000"

    Best regards,

    Simon

Related