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,

    This is an error I have not seen before. Does this happen on all examples? Can you post the content of "Help-> About uVision" ?

    BR Håkon

  • Help-> About uVision

    IDE-Version: μVision V4.72.10.0 Copyright (C) 2013 ARM Ltd and ARM Germany GmbH. All rights reserved.

    License Information: Huang JyunYu AcoMo LIC=----

    Tool Version Numbers: Toolchain: MDK-Lite Version: 4.72.1.0 Toolchain Path: C:\Keil\ARM\ARMCC\bin
    C Compiler: Armcc.Exe V5.03.0.76 [Evaluation] Assembler: Armasm.Exe V5.03.0.76 [Evaluation] Linker/Locator: ArmLink.Exe V5.03.0.76 [Evaluation] Librarian: ArmAr.Exe V5.03.0.76 [Evaluation] Hex Converter: FromElf.Exe V5.03.0.76 [Evaluation] CPU DLL:
    Dialog DLL:
    Target DLL: Segger\JL2CM3.dll Dialog DLL: TARMCM1.DLL. V1.08.00.0

    This is the first example I try, should I try other example ? which one is better ?

  • You seem to have the latest version, which is good.

    Any other example will do. It's just to check if any project settings or other has been modified.

  • Project setting ... ...

    Yes, I have refer to the User guide and modified Options for Target setting, I open the other project ble app alert notification and do not change anything

    seems good for compile but I can't load it :

    [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! [/b]

  • If you go into nRFgo Studio (downloadable from our website) and choose "nRF51 evaluation board -> Segger 480201171" and re-program in the softdevice hex file (s110_nrf51822_5.2.0_softdevice.hex), and then try to program again from Keil.

    Does it work then?

Related