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

IAR nrf52832_xxab.icf error

Hello,

I noticed the linker file we were using was for the nRF52832_xxAA so I got the nrf52832_xxab.icf from C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\arm\config\linker\NordicSemi\nrf52832_xxab.icf.

After switching linker files IAR fails the linking stage with the following error: Error[Lc041]: "block PROC_STACK" defined but not referenced nrf52832_xxab.icf 74

The new linker file: nrf52832_xxab.icf

Are the linked files included with IAR correct?

Look forward to hearing from you, James

Parents
  • Hi,

    Normally each example in the SDK comes with it's own linker file(.icf). So you should use that one instead.

    E.g for ble_app_uart, you have the file called ble_app_uart_iar_nRF5x.icf located in the folder SDK_folder\examples\ble_peripheral\ble_app_uart\pca10040\s132\iar. Then you just set that you are using the xxAB variant in the Project options -> General Options -> Device

Reply
  • Hi,

    Normally each example in the SDK comes with it's own linker file(.icf). So you should use that one instead.

    E.g for ble_app_uart, you have the file called ble_app_uart_iar_nRF5x.icf located in the folder SDK_folder\examples\ble_peripheral\ble_app_uart\pca10040\s132\iar. Then you just set that you are using the xxAB variant in the Project options -> General Options -> Device

Children
No Data
Related