cancel
Showing results for 
Search instead for 
Did you mean: 

Address of SysTick_Handler read incorrect from memory region of ISR Table

mali
Associate

We actually experience the problem that the address of the SysTick_Handler is read incorrectly from the memory address of the SysTick ISR in the memory. This leads to a memory management error when the system counter reaches 0 and the SysTick interrupt is fired. When reading the memory, there is the correct address for the Systick_Handler displayed, as shown in the following screenshot. 

mali_1-1755173478756.png

However, when the SysTick interrupt is fired, the system crashes as shown in the following screenshot, although the address in the memory does not change.

mali_2-1755173841534.png

I also found out, that reading out the ISR table as shown in the following screenshot, the address for the SysTick_Handler is not read correctly. But this only happens for the memory cell of the SysTick_Handler.

mali_3-1755173958718.png

I also tried to write random values to this memory address and it does not work properly as well. Only the lower two bytes are written correctly the upper 2 bytes remain unchanged. This seems to be the common symptomatic: upper 2 byte are not read correctly, while the lower 2 bytes are ok. Which then leads to the memory fault when the interrupt is called.

 

Anyone any suggestions or help why this is happening? I would really appreciate this.

 

 

2 REPLIES 2
upadhyas
ST Employee

Hi @mali,

I have tried all the steps you performed on STM32MP15DK and didn't face any issues on my end. Could you be more precise about what you are trying to achieve? Also, could you share the whole code and what the SysTick_Handler function does in your code? 

Please refer to the startup file from here. STM32CubeMP1/Projects/STM32MP157C-DK2/Examples/GPIO/GPIO_EXTI/STM32CubeIDE/CM4/Application/Startup at master · STMicroelectronics/STM32CubeMP1 · GitHub

You can also check the example to see how the SysTick_Handler function is defined STM32CubeMP1/Projects/STM32MP157C-DK2/Examples/GPIO/GPIO_EXTI/Src/stm32mp1xx_it.c at master · STMicroelectronics/STM32CubeMP1 · GitHub

upadhyas
ST Employee

Hi @mali 

Did you get a chance to check this issue again?