This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

IAR with SDK9.0; files broken

Hello,

I am using SDK9.0 and softdevice 8.0 and I have worked on keil tool. Now I want to use IAR toolchain for the same project. So I started first with example projects and it is giving error Project files are broken. Still when I tried to open, it is not having pre-processor to link to the header files.

I am using IAR ARM workbench 7.10.1 and also installed MDK for IAR from nordic. Kindly help me.

Regards,
Sowmya

  • Which example project did you try? I can try to see if I see the same thing. (I am OoO rest of this week after today, so I will wait for your answer two more hours)

  • I tested with LED_Blinky example and I manually added pre-processor in compiler settings. But the board is getting reset after few seconds of the application run. Didn't get the cause for that.

    So now I am testing with ble_app_hrs heart-rate application, for this I am getting array is too large error for SOFTDEVICE_HANDLER_INIT function. Found a solution here. If I change BLE_STACK_EVT_MSG_BUF_SIZE to 1, will it effect the project workspace which I am using with keil?

    Update: Fixed the error array is too large by adding BLE_STACK_SUPPORT_REQD symbol in compiler settings. Now I am not able to debug. It is not allowing to set breakpoint.

  • I have image description

    I just changed Project_settings->Target->Device and added Nordicsemiconductor there. After that it builds ok in SDK9.0 and S110_8.0 image description

    I am attaching my project for you just for reference. ble_app_hrs.rar extract this to nRF51_SDK_9.0.0_2e23562\examples\

    The project I tried will then be nRF51_SDK_9.0.0_2e23562\examples\ble_peripheral\ble_app_hrs\pca10028\s110\iar

    I do not see any of the errors you mentioned :(

  • I had fixed the issue. Now I changed as per your guide, changed General options->Target-> Processor variant Cortex M0 and Device ->NordicSemi nRF51822-QFAA to Core->ARM7TDMI and Device->None. Now getting the error Error[Ta097]: Cannot call intrinsic function "__nounwind __DSB" from Thumb mode in this architecture D:\Keil_v5\ARM\PACK\ARM\CMSIS\4.4.0\CMSIS\Include\core_cm0.h 727

  • You have to select device like below assuming you have QFAC, else select the appropriate one. image description

    I missed to see that your problem is that you are not able to debug!!!??? I set the breakpoints and it is working OK.

Related