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

  • To clean things up, I'd be happy if you could evaluate the answers you have received and accept one of them if you feel it's sufficient. If not, it might be useful to expand your question a little and provide further information.

  • OK. It has not been resolved, but what kinds of information you want ?

    Thanks.

  • If you still have problems, can you please try to zip up the complete project you're trying to use, and upload it here? Also, is the error the same with all example projects in the SDK? Do you have a nrf51.cdb in C:\Keil\UV4? Do you have nrf51xxx.flm in C:\Keil\ARM\Flash?

  • If you still have problems, can you please try to zip up the complete project you're trying to use, and upload it here?


    OK, but I answer the questions as below because I really missing some files!Thank you very musc.


    Also, is the error the same with all example projects in the SDK?


    Actually, all example works fine on SDK. The problem occur on Keil. I was able to compile the code on Keil, but I can not load image file. I need load image on SDK and program it.


    Do you have a nrf51.cdb in C:\Keil\UV4?


    No! Maybe it's problem ? Something I miss download ?


    Do you have nrf51xxx.flm in C:\Keil\ARM\Flash?


    No! Maybe it's problem ? Something I miss download ?

    Thank you for reading my problem. :-)

  • If you don't have the flash algorithm and device database mentioned in the comment above, something has gone wrong with the SDK installation. Please try to do a complete re-install of the SDK (i.e. first uninstall it and then install from the MSI again). When you reinstall, it would be useful if you could run it with logging enabled, by running the installer from the command line like this:

    
    nrf51_sdk_v4_3_0_27417.msi /log log.txt
    
    

    If you after this still don't have the files mentioned above, can you please send me this log file in a private message?

Related