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

How can I transport the project from nRF52832 to nRF52810 by solving the compiling errors like "Error[Lp011]: section placement failed " ?

hi, nordic support

SDK version is 15.3.0

the example is ble_app_uart_c

I have modified the project based on this address:https://infocenter.nordicsemi.com/index.jsp

But the following error occurred when I compiled

Error[Lp011]: section placement failed
unable to allocate space for sections/blocks with a total estimated minimum size of 0x570c bytes (max align 0x8) in <[0x2000'1800-0x2000'5fff]> (total
uncommitted space 0x4800).
Error[Lp021]: the destination for compressed initializer batch "P2-1" is placed at an address that is dependent on the size of the batch, which is not allowed
when using lz77 compression. Consider using "initialize by copy with packing = zeros" (or none) instead.

how to resolve them?

thx

Parents
  • Hi,

    You get these errors because the linker is not able to place all the code in the allocated RAM/flash size. The nRF52810 has a very limited RAM and flash size, and is intended only for small applications with limited BLE functionality (typically BLE beacon or peripheral applications with simple sensors, etc). The ble_app_uart_c example is a central application, requiring the S132 softdevice. This softdevice has RAM and flash requirements making it hard to fit most applications using this softdevice in nRF52810 chips. You may be able to fit the example if you optimize the flash/RAM size, but it will most likely not fit out-of-the-box.

    If you want to build a central application, I would recommend that you look into the nRF52832 IC or another one with a larger flash/RAM size.

    Best regards,
    Jørgen

  • Hi,

    You may be able to fit the example if you optimize the flash/RAM size --> how to optimize the flash and RAM?

    Turning off some drivers may reduce it. But I don’t know that those drivers are redundant, I have turned off the log driver

Reply Children
No Data
Related