cancel
Showing results for 
Search instead for 
Did you mean: 

Hard fault when jump to application stm32L496

MLE S.1
Associate III

Hi, on our card with stm32L496 we have a boot partition that launch the principal application if an update is not required. All work find until i update cubeMX to version 5.6.0 ! Now when i regenerate the code (not changed between the 2 versions) of IAP i have a hard fault when i want to jump to the principal application.

The boot (IAP) is located at 0x8000000

The application at 0x8008000 --> defined in STM32L496ZGTX_FLASH.ld

/* Highest address of the user mode stack */
_estack = ORIGIN(RAM) + LENGTH(RAM);	/* end of "RAM" Ram type memory */
 
_Min_Heap_Size = 0x200 ;	/* required amount of heap  */
_Min_Stack_Size = 0x400 ;	/* required amount of stack */
 
/* Memories definition */
MEMORY
{
  RAM    (xrw)    : ORIGIN = 0x20000000,   LENGTH = 320K
  FLASH (rx)      : ORIGIN = 0x8008000, LENGTH = 992K
}

the result in debug mode :

0693W000000Tsw2QAC.png

The code i use in boot (take in the stm32 example IAP) :

/* execute the new program */
JumpAddress = *(__IO uint32_t*) (APPLICATION_ADDRESS + 4);
/* Jump to user application */
JumpToApplication = (pFunction) JumpAddress;
/* Initialize user application's Stack Pointer */
__set_MSP(*(__IO uint32_t*) APPLICATION_ADDRESS);
JumpToApplication();

I use STM32CubeIDE.

I i use an older binaries (same code but generated with older version of cubeMX 5.5 or 5.4), it works fine !

Can you help please ?

1 ACCEPTED SOLUTION

Accepted Solutions
MLE S.1
Associate III

Issue solved --> remove older stm32 ide settings / cube mx settings

View solution in original post

3 REPLIES 3
MLE S.1
Associate III

Hi, i have rebuild the boot application from a blank folder with cubeMX. I already have an error when i jump to application but the address is different now :

0693W000000TynVQAS.png

MLE S.1
Associate III

Build the same project with IAR work fine ! Probably an issue with stm32 cube IDE ?

MLE S.1
Associate III

Issue solved --> remove older stm32 ide settings / cube mx settings