cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4 STKERR in case custom bootloader and application starting at 0x08010000

lukin
Associate III

Hello,

I have created a bootloader application that jumps to main application at 0x08010000.

It works fine, except when I run in debug mode. In this case, the first execution runs correctly. If I push stop and restart button the application goes to STKERR.

I setted:

/* Memories definition */
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 640K
RAM2 (xrw) : ORIGIN = 0x10000000, LENGTH = 64K
RAM3 (xrw) : ORIGIN = 0x20040000, LENGTH = 384K
FLASH (rx) : ORIGIN = 0x08010000, LENGTH = 1984K
}

in  STM32L4R9ZITX_FLASH.ld and STM32L4R9ZITX_RAM.ld.

In main application, I setted 

SCB->VTOR = (uint32_t)0x08010000

as first instruction.

What's wrong?

 

0 REPLIES 0