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

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

Dear all,

I have been working with a nRF51422 device for about two weeks, and everything went good. This morning, out of nothing, i got this error in IAR: Warning: Stack pointer is setup to incorrect alignment. Stack addr = 0xFFFFFFFF

My devboard is the PCA10028.

I've tried looking for other solutions here, but could not find any.

I've tried running nRFgo studio and reflashing the softdevice, the application, but nothing. I've tried running the blinky example, but that does not work either.

Do you have some other suggestions ?

Parents
  • Thank you for your response!

    Actually, I have just found the problem, and it was not a software, but a hardware problem. For some reason, when I try to power the PCA10028 board from USB, it works only if I hold it in a certain position. I don't know exactly why, because the debugger and the JTag UART don't seem to have problems (so it's not a receptacle/cable problem).

    Nothing reported that it may be a power issue, I just got the stack error mentioned above

    I have manage to solve this by adding an external power supply on the 3V3 line.

    I'm posting this for all of you who experience the same problem, also should try doing this.

Reply
  • Thank you for your response!

    Actually, I have just found the problem, and it was not a software, but a hardware problem. For some reason, when I try to power the PCA10028 board from USB, it works only if I hold it in a certain position. I don't know exactly why, because the debugger and the JTag UART don't seem to have problems (so it's not a receptacle/cable problem).

    Nothing reported that it may be a power issue, I just got the stack error mentioned above

    I have manage to solve this by adding an external power supply on the 3V3 line.

    I'm posting this for all of you who experience the same problem, also should try doing this.

Children
Related