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

Hi.

I'm useing SDK 15.3 for testing DFU in nRF52832.
I've already porting DFU to project ble_app_uart_c.
now, I want to run BOOT project,and I'm useing project secure_bootloader.
in this project I choose secure_bootloader_ble_s132_pca10040 as my project.
after I run compiler sucess,I'm trying to load this BOOT to my bord.
But debug log shows "Warning: Stack pointer is setup to incorrect alignment. Stack addr = 0xFFFFFFFF"
and the loading seems fail.

I've tried some situation but it shows same problem.

1. load soft_device via nRFgo studio and load this BOOT via IAR
-> shows "Warning: Stack pointer is setup to incorrect alignment. Stack addr = 0xFFFFFFFF"

2. load soft_device via nRFgo studio and load my application via IAR
-> shows NRF_LOG_ERROR("No bootloader was found"); and then I load this BOOT
->show same message "Warning: Stack pointer is setup to incorrect alignment. Stack addr = 0xFFFFFFFF"

3. load soft_device via nRFgo studio and load BOOT hex via nRFgo studio
-> shoes error programing failed: This hex file has data in SoftDevice region.Try progeaming using "Program SoftDevice",or erease all before programing.

I don't know why I can't load this BOOT to my bord.
Is there's flash protect? how should I do?

Parents Reply Children
  • Hi

    as I followed your step

    "In IAR, Project options --> Debugger --> Setup --> Supress Download.

    1. You will need to load the project externally i.e. nrfjprog, then you'll be able to debug."

    the problem seems solved!

    now, my BOOT project can be entry debugger via IAR.

    Thank you, again!

    By the way, my IAR version is

    IAR Embedded Workbench for ARM 8.11.2.13606

    IAR Embedded Workbench shared components 8.0.8.4892

Related