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

Major IAR Embedded Issues

So literally, I cannot trust what IAR is doing. Running version 8.22.1, it crashes every time I attempt to debug an nRF52832 device (SparkFun board).

I've already programmed in the S132 softdevice as part of the nRF5 SDK and then while attempting to load the Blinky App, things just end up going wrong.

Trying to put a simple piece of code in which waits for a button press before advertising just doesn't work - how do I know IAR is actually programming the device? It tells me it is but even the most basic code to detect a button press is not working. I know that the pins are mapped correctly (the BLE service tells me via a notify when the button is pressed).

This is so frustrating. What are the viable other options other than using IAR? 

Parents
  • I’ve since attempted to flash the Blinky App (S132) onto a SparkFun nRF52832 breakout board. After single-stepping successful, approximately 4 seconds after allowing the application to run, I then get a “Failed to read CPU status after 4 attempts” error yet the application is still running on the board.

    Going backwards to SDK 14 has the same issues.

    As much as it pains me to say, the Arduino code runs perfectly on the board!

  • That being said, it is not certain that this is the problem. Again, I haven't experimented too much with IAR, but stepping through a project that is using the SoftDevice is not that easy, as the SoftDevice will miss some time critical events after starting advertising, or while in a connection, which will cause some asserts. However, it shouldn't crash the IDE. 

     

    But feel free to try out SES if you are not satisfied with IAR.

     

    Best regards,

    Edvin

Reply
  • That being said, it is not certain that this is the problem. Again, I haven't experimented too much with IAR, but stepping through a project that is using the SoftDevice is not that easy, as the SoftDevice will miss some time critical events after starting advertising, or while in a connection, which will cause some asserts. However, it shouldn't crash the IDE. 

     

    But feel free to try out SES if you are not satisfied with IAR.

     

    Best regards,

    Edvin

Children
No Data
Related