Electronics > Projects, Designs, and Technical Stuff

STM32F4Discovery stucks in SysTick_Handler

(1/2) > >>

syntax333:
Hi, I got a STM32F4Discovery(stm32f407vgt6) kit which I use to compute some matrix multiplication. It computes matrices perfectly (took approx. 80us) but after computing 12 times it stucks in that function. When I stop debugging I see that it stucks in:

"startup_stm32f407xx.s" line

      SysTick_Handler PROC
                     EXPORT  SysTick_Handler            [WEAK]
This line  >>  B       .
                     ENDP

I tried a program which switches LED on/off. However, after some time stm32 stucks at same place no matter the code. Has anyone encountered this type of problem?

I am using Keil uvision to create my projects template etc. 

HackedFridgeMagnet:
Do you have a SysTick_Handler function in C or asm?

else maybe a watchdog?

emece67:
.

syntax333:
I was able to disable it with "SysTick->CTRL = 0; ". However, I got a question is SysTick counter or interrupt important to clock/stm32 functions or project? is it essential? What do I lose disabling it?

djacobow:
This is highly Googleable. Systick is a cpu register that decrements every cycle. When it gets to zero, it can cause an interrupt, which you can use to effectively increase the size of the counter to whatever you need.

It is useful for timing things relative to the cpu clock. For example, you can read it before and after a function to see how long it took.

Interestingly, this is part of the arm core, not a proprietary peripheral. Any arm chip will have it.

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod