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

Migration a project form KEIL to IAR

I migrate a project from keil to IAR, at the moment of bulding im facing this error:

arm_startup_nrf51.s Error in command line: Invalid argument to option '-D' Error while running Assembler

Please help me!

Parents
  • Dear Adrian,

    We find a solution:

    At IAR: option/Assembler/preprocessor we have the following code:

    __HEAP_SIZE=1024 BLE_STACK_SUPPORT_REQD S110 BOARD_PCA10028 SOFTDEVICE_PRESENT NRF51 SWI_DISABLE0 SPI_MASTER_0_ENABLE REQD S130 BOARD_PCA10028 SOFTDEVICE_PRESENT NRF51 SWI_DISABLE0 SPI_MASTER_0_ENABLE BLE_DFU_APP_SUPPORT

    I delete all the lines and the we can build. We think it was a configuration migrated from KEIL.

    Please give us feedback.

    Best regards,

    WGP

Reply
  • Dear Adrian,

    We find a solution:

    At IAR: option/Assembler/preprocessor we have the following code:

    __HEAP_SIZE=1024 BLE_STACK_SUPPORT_REQD S110 BOARD_PCA10028 SOFTDEVICE_PRESENT NRF51 SWI_DISABLE0 SPI_MASTER_0_ENABLE REQD S130 BOARD_PCA10028 SOFTDEVICE_PRESENT NRF51 SWI_DISABLE0 SPI_MASTER_0_ENABLE BLE_DFU_APP_SUPPORT

    I delete all the lines and the we can build. We think it was a configuration migrated from KEIL.

    Please give us feedback.

    Best regards,

    WGP

Children
Related