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

nrf51 s130 sdk10 bootloader Memory areas

i can't find the right settings for the bootloader i am using s130 softdevice and sdk10 can someone help?

Parents
  • Hi,

    The correct linker configuration depends on which package variant you are using. The default configuration is for the xxAC variant that has 256K of flash and 32K of RAM. 

    Default:

    xxAA (256/16):

    xxAB (128/16). Note: BOOTLOADER_REGION_START must be changed to reflect new start address

  • HI,

    Thnks i can now see the Dfu Targ in the MCP and connect to it.

    but after 1% of upload i got this massage 

    any idea why ?

  • Hi,

    What version of MCP are you using? Also, have you tried to upload one of the test images provided in the SDK (\examples\dfu\ble_dfu_send_hex\test_images_update_nrf51)? 

  • I am using MCP version 3.10.0.14.

    i am getting the same error with the test image.

  • i tried doing the DFU from the nRF Toolbox and got the same error like the MCP

  • Have you made any changes to the example apart from changing the linker settings? Please check what the buffer sizes are set to in hci_mem_pool_internal.h to  (RX_BUF_QUEUE_SIZE, RX_BUF_SIZE,  TX_BUF_SIZE). 

Reply
  • Have you made any changes to the example apart from changing the linker settings? Please check what the buffer sizes are set to in hci_mem_pool_internal.h to  (RX_BUF_QUEUE_SIZE, RX_BUF_SIZE,  TX_BUF_SIZE). 

Children
  • I only changed it to work with the internal oscillator  

     SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_500MS_CALIBRATION, false);

  • Thanks, both buffer and clock configuration is correct. Which package variant did you use? I'm wondering if the problem could be related to placement of the m_peer_data variable. Please check the address of where m_peer_data is stored, it's shown in the .map file located in the build folder.

  • i tried using external oscillator and it worked but only for the first upload if i try again i am falling  

  • The bootloader requires the scheduler so you should change this line:

    SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_500MS_CALIBRATION, false);

    with this one: 

    SOFTDEVICE_HANDLER_APPSH_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_500MS_CALIBRATION, true);