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

C3903U: Argument '-D__MICROLIB' not permitted for option 'cpu'.

My aim is to use a nRF52832 for a Bluetooth peripheral device.

- I just started with a fresh SES V5.44 and downloaded the nRF SDK 17.0.2
- I imported the example "ble_app_hids_keyboard_pca10040_s112" from the SDK
- trying to build the code throws this error : C3903U: Argument '-D__MICROLIB' not permitted for option 'cpu'.

I was asuuming that the examples would compile without any issues - what can I do ?

thanks, matthias

Parents
  • SES V5.44

    The release notes say the SDK is tested against v4.50:

    https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/index.html

    the code throws this error : C3903U: Argument '-D__MICROLIB' not permitted for option 'cpu'.

    That's not a code error - that's one of the tools complaining about a command-line error.

    Please post the full build output transcript - that should show the command line and where, exactly, this error is being thrown

    I was asuuming that the examples would compile without any issues

    They certainly should

    I'd suggest first trying with the recommended SES version: you're using one that's a major version increment - so could be breaking changes ... ?

    EDIT

    Someone else having problems when using SES v5.something with nRF5 SDK v17.0.2 (ie, later than recommended in the SDK Release Notes) :

    devzone.nordicsemi.com/.../314596

  • I found out, that this issue seems to be related to nRFgo Studio and/or my hex file. I used NRFgo Studio to download the hex file from the segger compilation into the nrf52, and after this, SES reports the cortex-m0. When I erase all memory and download another hex-file (which I know that works), the device reports as Cortex-M4

    I guess that the hex binary from SES is somehow not ok - but how can I find this out ? Its just the example from SDK 17.0.2 with no modification

    Do you know whether its possible to have two versions of SES installed in parallel ? I mean 4.50 and 5.44 

  • nRFgo Studio

    nRF GO Studio is ancient - does it even support nRF52832 ?

    You should be using nRF Connect:

    further down that page:

    Or just download direct from SES.

    possible to have two versions of SES installed in parallel ?

    It was certainly possible with v4.50 and earlier versions

Reply Children
No Data
Related