nrf51 won't boot after ram adjustment

I am trying to program my nRF51 QFAC, but it tells me to adjust my linker settings.

I am using the SDK 12.3 and the softdevice 130 2.0.1.

However, after I apply the proposed ram origin and size, the chip just doesn't boot or give me any log output.

Here is the log output before the adjustment:

sensor_beacon:DEBUG:starting
SDH:DEBUG:sd_ble_enable: RAM start at 0x20001870
SDH:WARNING:sd_ble_enable: RAM start should be adjusted to 0x20001fe8
SDH:WARNING:RAM size should be adjusted to 0x6018 
sensor_beacon:DEBUG:app_error_print():
sensor_beacon:DEBUG:Fault identifier:  0x4001
sensor_beacon:DEBUG:Program counter:   0x0
sensor_beacon:DEBUG:Fault information: 0x20003F74
sensor_beacon:DEBUG:Line Number: 178
sensor_beacon:DEBUG:File Name:   ./sensor_ble.c
sensor_beacon:DEBUG:Error Code:  0x4
sensor_beacon:DEBUG:Error description: NRF_ERROR_NO_MEM

I have attached my hex and ld before and after adjustment.

8463.sensor_nrf51_before_adjustment.ld

6320.firmware_before_adjustment.hex

0552.sensor_nrf51_after_adjustment.ld

5342.firmware_after_adjustment.hex

My question is:

What do I need to fix in order to get my code running?

Also, what compiler version are we supposed to be using?

Parents
  • Hi

    What IDE are you using for development? You can check out this guide on how to adjust RAM and Flash memory correctly for your device. If it does indeed not respond after adjusting, that might point towards the application being larger than the amount of memory available on your device, in which case you will have to either optimize it, cut some features from your project, or move to a SoC with more memory available. Are you able to see the size of the application and SoftDevice when building the project?

    Best regards,

    Simon

Reply
  • Hi

    What IDE are you using for development? You can check out this guide on how to adjust RAM and Flash memory correctly for your device. If it does indeed not respond after adjusting, that might point towards the application being larger than the amount of memory available on your device, in which case you will have to either optimize it, cut some features from your project, or move to a SoC with more memory available. Are you able to see the size of the application and SoftDevice when building the project?

    Best regards,

    Simon

Children
No Data
Related