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

IAR 8.11 ERROR

Hi,I update my IAR IDE from version 7.70.1 to 8.11.1,when I compile the workspace ble_app_hrs_freertos_pca10040, the error occur in port.c, as following:

Error[Og014]: Warning in inline assembly: "DC or DS directive while in CODE area." 

D:\project\SmartWatch\BPM\nRF5_SDK_13.0.0_04a0bfd\external\freertos\portable\IAR\nrf52\port.c 115  

Error[Og014]: Warning in inline assembly: "DC or DS directive while in CODE area." 

D:\project\SmartWatch\BPM\nRF5_SDK_13.0.0_04a0bfd\external\freertos\portable\IAR\nrf52\port.c 143

Error[Og014]: Warning in inline assembly: "DC or DS directive while in CODE area." 

D:\project\SmartWatch\BPM\nRF5_SDK_13.0.0_04a0bfd\external\freertos\portable\IAR\nrf52\port.c 199

Error while running C/C++ Compiler

How do I solve it, thank you!

best regards,

Parents
  • Hi,

    IAR 8 issues are fixed in SDK 12.3

    If you are using SDK 13, just copy the fixed files from SDK 12.3 into your SDK 13 folder.

    The fixed files are:

     - SDK_folder/components/drivers_nrf/delay/nrf_delay.h
     - SDK_folder/components/libraries/hardfault/nrf52/handler/hardfault_handler_iar.c
     - SDK_folder/components/libraries/uart/retarget.c
     - SDK_folder/external/freertos/portable/IAR/nrf52/port.c
    

    For nRF51, use the files in the corresponding nrf51 folder instead.

    You can download SDK 12.3 here.

  • Hi, Unfortunately I still have the same issue with both SDK 13.0 and SDK 12.3. Copying files from SDK 12.3 to SDK 13 does not help.

    Error[Og014]: Warning in inline assembly: "DC or DS directive while in CODE area." ...\nRF52\SDK_13.0.0\components\libraries\hardfault\nrf52\handler\hardfault_handler_iar.c 84 
    Error[Og014]: Warning in inline assembly: "DC or DS directive while in CODE area." ...\nRF52\SDK_13.0.0\components\libraries\hardfault\nrf52\handler\hardfault_handler_iar.c 86 
    Error[Og014]: Warning in inline assembly: "DC or DS directive while in CODE area." ...\nRF52\SDK_13.0.0\components\libraries\hardfault\nrf52\handler\hardfault_handler_iar.c 88 
    Error while running C/C++ Compiler 
    

    Any idea how to fix this? Thanks! IAR 8.11.1 Workbench: SDK_13.0.0\examples\peripheral\serial\pca10040\blank\iar

Reply
  • Hi, Unfortunately I still have the same issue with both SDK 13.0 and SDK 12.3. Copying files from SDK 12.3 to SDK 13 does not help.

    Error[Og014]: Warning in inline assembly: "DC or DS directive while in CODE area." ...\nRF52\SDK_13.0.0\components\libraries\hardfault\nrf52\handler\hardfault_handler_iar.c 84 
    Error[Og014]: Warning in inline assembly: "DC or DS directive while in CODE area." ...\nRF52\SDK_13.0.0\components\libraries\hardfault\nrf52\handler\hardfault_handler_iar.c 86 
    Error[Og014]: Warning in inline assembly: "DC or DS directive while in CODE area." ...\nRF52\SDK_13.0.0\components\libraries\hardfault\nrf52\handler\hardfault_handler_iar.c 88 
    Error while running C/C++ Compiler 
    

    Any idea how to fix this? Thanks! IAR 8.11.1 Workbench: SDK_13.0.0\examples\peripheral\serial\pca10040\blank\iar

Children
No Data
Related