getting Hard Fault when using fast interrupts

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: getting Hard Fault when using fast interrupts

Post by Giovanni »

I tried the main() that I posted before, there is one FPU instruction in the fast handler, it worked.

Two or three version ago we found a bug regarding fast interrupts and FPU but it has been fixed, see the changelog. There is still all the discussion in the forum.

I will update the "FPU_STORM" test application with the fast IRQ and run it again, just in case.

Giovanni
Coreglider
Posts: 17
Joined: Fri Apr 17, 2015 5:38 pm

Re: getting Hard Fault when using fast interrupts

Post by Coreglider »

The

Code: Select all

#define PORT_INT_REQUIRED_STACK         128

seems to be working. Both of my boards are blinking LED's for almost an hour. I'll try to test it for a more long time, and I hope, problem will not appear again. Thank you!
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: getting Hard Fault when using fast interrupts

Post by Giovanni »

It is most likely a stack overflow: keil+no optimizations+FPU = lot of stack used.

Giovanni
Post Reply