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

    I find a workaround, the Keil IDE just can not load flash image but it still can compile it. So I compile flash on Keil but load it on nRF51822 studio.

    I still don't know what happen and this workaround will cause some debug obstacles. I simple introduce compile and load flash image working flow:

    • Plug nRF51822 to USB port

    • Open Keil IDE

      • Open a demo project: '''C:\Keil\ARM\Device\Nordic\nrf51822\Board\pca10001\blinky_example\arm\blinky.uvproj'''
      • Check project config value:
        • Options for Target:
          • Device:
            • vendor: ARM
            • Device: Cortex -MO
            • Toolset: ARM
          • Target:
            • Base code memory address 0x14000
            • Available code memory size is 0x20000 (128 kB).
            • Base RAM memory address 0x20002000
            • Available RAM size is 0x2000 (8 kB).
      • Press '''Build''' button
      • Copy the flash image '''C:\Keil\ARM\Device\Nordic\nrf51822\Board\pca10001\blinky_example\arm_build\blinky_arm.hex''' to '''C:'''
    • Open nRFgo studio

      • Program Softdevice: s110_nrf51822_5.2.0_softdevice.hex
      • Program Application: '''C:\blinky_arm.hex'''

    The LED on nRF51822 flicker !

Reply
  • Hi

    I find a workaround, the Keil IDE just can not load flash image but it still can compile it. So I compile flash on Keil but load it on nRF51822 studio.

    I still don't know what happen and this workaround will cause some debug obstacles. I simple introduce compile and load flash image working flow:

    • Plug nRF51822 to USB port

    • Open Keil IDE

      • Open a demo project: '''C:\Keil\ARM\Device\Nordic\nrf51822\Board\pca10001\blinky_example\arm\blinky.uvproj'''
      • Check project config value:
        • Options for Target:
          • Device:
            • vendor: ARM
            • Device: Cortex -MO
            • Toolset: ARM
          • Target:
            • Base code memory address 0x14000
            • Available code memory size is 0x20000 (128 kB).
            • Base RAM memory address 0x20002000
            • Available RAM size is 0x2000 (8 kB).
      • Press '''Build''' button
      • Copy the flash image '''C:\Keil\ARM\Device\Nordic\nrf51822\Board\pca10001\blinky_example\arm_build\blinky_arm.hex''' to '''C:'''
    • Open nRFgo studio

      • Program Softdevice: s110_nrf51822_5.2.0_softdevice.hex
      • Program Application: '''C:\blinky_arm.hex'''

    The LED on nRF51822 flicker !

Children
Related