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

  • Hi

    Still have problem, the error dialog No1 : Cannot Load Flash Device Description ! dialog NO2 : Error: Flash Download failed - "Cortex-M0"

    [b] Rebuild target 'nrf51822_xxaa_s110 (256K)' 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). Load "C:\Keil\ARM\Device\Nordic\nrf51822\Board\nrf6310\ble\ble_app_alert_notification\arm\_build\ble_app_alert_notification.axf" Set JLink Project File to "C:\Keil\ARM\Device\Nordic\nrf51822\Board\nrf6310\ble\ble_app_alert_notification\arm\JLinkSettings.ini"

    • JLink Info: Device "NRF51822_XXAA" selected (257 KB flash, 8 KB RAM).

    JLink info:

    DLL: V4.72a, compiled Jun 26 2013 11:49:14 Firmware: J-Link OB-SAM3U128 V1 compiled Feb 5 2013 15:27:51 Hardware: V1.00 S/N : 480201171

    • JLink Info: Found SWD-DP with ID 0x0BB11477
    • JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
    • JLink Info: Found Cortex-M0 r0p0, Little endian. ROMTableAddr = 0xE00FF003

    Target info:

    Device: nRF51822_xxAA VTarget = 3.300V State of Pins: TCK: 0, TDI: 0, TDO: 1, TMS: 1, TRES: 1, TRST: 1 Hardware-Breakpoints: 4 Software-Breakpoints: 8192 Watchpoints: 2 JTAG speed: 1000 kHz

    Erase Failed! Load "C:\Keil\ARM\Device\Nordic\nrf51822\Board\nrf6310\ble\ble_app_alert_notification\arm\_build\ble_app_alert_notification.axf" Set JLink Project File to "C:\Keil\ARM\Device\Nordic\nrf51822\Board\nrf6310\ble\ble_app_alert_notification\arm\JLinkSettings.ini"

    • JLink Info: Device "NRF51822_XXAA" selected (257 KB flash, 8 KB RAM).

    JLink info:

    DLL: V4.72a, compiled Jun 26 2013 11:49:14 Firmware: J-Link OB-SAM3U128 V1 compiled Feb 5 2013 15:27:51 Hardware: V1.00 S/N : 480201171

    • JLink Info: Found SWD-DP with ID 0x0BB11477
    • JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
    • JLink Info: Found Cortex-M0 r0p0, Little endian. ROMTableAddr = 0xE00FF003

    Target info:

    Device: nRF51822_xxAA VTarget = 3.300V State of Pins: TCK: 0, TDI: 0, TDO: 1, TMS: 1, TRES: 1, TRST: 1 Hardware-Breakpoints: 4 Software-Breakpoints: 8192 Watchpoints: 2 JTAG speed: 1000 kHz

    Erase Failed! [/b]

    Thank you very much.

  • 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.

  • Hi

    the attach file is my "options for target -> Target"

    001.png

  • The settings you have are not correct.

    1. What version of the SDK are you using?
    2. What version of the SoftDevice are you using?

    Normally, you will also have a copy of the SDK at this location: C:\Nordic Semiconductor\nRF51 SDK_ You can check quickly what version you have here.

Related