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

Keil toolchain/compiler configurations incorrect

Hi all

My target board is nRF51822, and I want to run the heart rate demo project, but a error message when I compile it :

[b]Build target 'nrf51822_xxaa_s110 (256K)' assembling arm_startup_nrf51.s... arm_startup_nrf51.s: error: A3903U: Argument '--pd' not permitted for option 'device'. "._build\ble_app_hrs.axf" - 1 Errors, 0 Warning(s). Target not created[/b]

Seems toolchain/compiler configurations incorrect ???

Thanks

Parents
  • Oh I find a problem, if the Option for Targets --> Device --> Toolset : Nordic Semiconductor nRF51xxx a error message will occur when I compile:

    [b] Build target 'nrf51822_xxaa_s110 (256K)' assembling arm_startup_nrf51.s... arm_startup_nrf51.s: error: A3903U: Argument '--pd' not permitted for option 'device'. "._build\ble_app_hrs.axf" - 1 Errors, 0 Warning(s). Target not created [/b]

    Now I change the Toolset to : ARM Cortex M0 (nRF51822 spec). The compile is OK.

    But error message still occur on Load

    [b] dialog No1 : Cannot Load Flash Device Description ! dialog NO2 : Error: Flash Download failed - "Cortex-M0"

    Rebuild target 'nrf51822_xxaa_s110 (256K)' *** Scatter Error: no default 'Read/Write' range selected assembling arm_startup_nrf51.s... compiling system_nrf51.c... compiling main.c... compiling ble_ans_c.c... compiling ble_error_log.c... compiling ble_stack_handler.c... compiling ble_advdata.c... compiling ble_conn_params.c... compiling app_timer.c... compiling ble_flash.c... compiling ble_bondmngr.c... compiling app_button.c... compiling ble_radio_notification.c... compiling app_gpiote.c... compiling ble_debug_assert_handler.c... linking... Program Size: Code=18536 RO-data=224 RW-data=272 ZI-data=7016
    FromELF: creating hex file... "._build\ble_app_alert_notification.axf" - 0 Errors, 0 Warning(s). [/b]

    Any help ? : -) Thanks

  • It looks as your RAM/flash settings are not set properly. Can you please post a picture of "options for target -> Target"? This should include "IROM"/"IRAM" settings etc.

Reply Children
No Data
Related