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?

Related