Skip to content

Bootloader on NUCLEO L476 #439

Discussion options

You must be logged in to vote

Good news! I tried to set up my own configuration on my NUCLEO_L452RE_P board, and I was able to replicate the hang you were getting. I did some debugging, and determined the cause. This doesn't have anything to do with the mbed_app.json configuration at all. It's crashing in the bootloader because it's running out of stack!

It turns out that mcuboot requires more than 1k of stack space to do its stuff, and the linker script for STM32L4 only allocates exactly target.boot-stack-size (0x400 bytes) of stack, and if the application uses more than that, it will crash, HARD (can't even get to the fault handler to print the crash details).

I have created this PR which both combines together the …

Replies: 6 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Kormoran86
Comment options

Comment options

You must be logged in to vote
3 replies
@Kormoran86
Comment options

@multiplemonomials
Comment options

Answer selected by Kormoran86
@multiplemonomials
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants