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

nrf51822 mesh SDK v1.0.0 compile warning

I download the mesh sdk from: http://www.nordicsemi.com/eng/nordic/Products/nRF5-SDK-for-Mesh/nRF5-SDK-for-Mesh/62377 Compile the light_switch/server project for nrf51422_s130 with SES, got the warning:

Linking light_switch_server_nrf51422_xxAC_s130_2.0.1.elf
cannot find entry symbol reset_handler; defaulting to 000000000001b25c

and the mcu can not work successfully on PCA10028. Any problem in the SDK?

image description

  • I found the same problem.I downloaded SDK and open it with SES. After that, I clicked rebuild button. A warning message was shown.

    Linking light_switch_client_nrf52832_xxAA_s132_5.0.0.elf
    cannot find entry symbol reset_handler; defaulting to 00000000000232c4
    

    And I think MCU is not working.Because there is a part of the code to turn first led on in the main function. But nothing happens.

    /* Set the first LED */
    hal_led_pin_set(BSP_LED_0, true);
    
  • @Ricky @yukonthong You guys are both using two nrf51 dk's right? I just tried the code with an nrf52 dk as the server & an nrf51 dk as the client. Everything worked out fine for me.

    I also got the same warning as both of you, but the example works fine. What I did was open up the correct segger embedded studio files (light_switch_client_nrf52832_xxAA_s132_5.0.0 for the 52 dk & light_switch_server_nrf51422_xxAC_s130_2.0.1 for the 51 dk). In the client file, make sure to change the SERVER_COUNT variable to 1 instead of 3 (since you are only using one server instead of three) & save the file. You can find the SERVER_COUNT declaration by searching for SERVER_COUNT in the main.c file & then right clicking the SERVER_COUNT variable & pressing Go To Definition.

    Then, I erased both dk's using nrfgostudio. You should also be able to erase the dk's by first connecting the J-Link (explained in the next sentence) & then pressing Target + Erase All. Lastly, I connected the correct JLink to the correct file (Target + Connect J-Link) & pressed Build + Build and Run in SES. First with the client file & then with the server file. Lastly, power cycle both dk's (i.e. turn them off & on again). The LED1 on the client should be on & then LED1 on the server should blink a few times and then turn off.

    To test if it worked, you can either press button 1 or button 4 on the client. This should then act as a switch and turn the server's LED1 on or off.

    Hope that helps!

  • The issue regarding the linker warning; cannot find entry symbol reset_handler; defaulting to 00000000000232c4 is essentially due to SES defaulting the Linker Entry Point to 'reset_handler' when in fact the SES startup code (i.e. ses_nRF_Startup.s, ses_nrf5x_Vectors.s) specifies 'Reset_Handler' (uppercase 'R' and 'H') as its entry point.

    Amending, [right click prj]->Edit Options->Linker->Entry Point to Reset_Handler will at least resolve and remove the warning that you described.

Related