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

IAR Warning: Stack pointer is setup to incorrect alignment. stack addr = 0xFFFFFFFF

I have just started developing with Nordic NRF52832 using the IAR Embedded Workbench.
I am attempting to work with the existing Example projects provided within the NRF5 SDK nRF5_SDK_15.2.0_9412b96 .

I have been successful at building few of the example projects without any discrepancies. The problem persistent with these projects is that, on performing a download and debug operation (Ctrl + D), an error as in the subject is returned:

I have tried building many example projects within ble_app_central and ble_app_peripheral, such as:

1. ble_app_blinky (peripheral)
2. ble_app_proximity (peripheral)
3. ble_app_blinky_c (central)
4. ble_app_gatts (central)

All of these returned the same error. The associated messages and scenarios are as follows:

I did look up the other threads in the Nordic DevZone, in which a similar warning was encountered. The suggestions included altering a few parameters within the compiler and the general options of the IDE and the target. Unfortunately, none of the methods suggested in the comments section helped to rectify the issue.

Another problem I am facing, alongside with the above is that I am unable to flash any hex file or soft device directly using the drag and drop method to the J-Link drive. It worked at random instances, in spite of following the same procedure, and then stopped altogether. At the same time, I am also unable to program any hex file to the nRF52832 using nRF Command Line tools as well. Some sources suggested programming using the nRFgo Studio, but nRFgo Studio is not even recognizing my Nordic device. I am not entirely sure if these problems are interlinked, but these have been persistent for different projects and their associated hex files.

Any help would be greatly appreciated.

Parents Reply Children
Related