Interrupt handling problem
#4
(03-04-2021, 06:32 AM)RiscV Wrote:
(01-06-2021, 09:59 AM)nikolas Wrote: OK found the problem. I did not realize that the core disables the interrupt automatically if the program jumps to the ISR.

Found the way to reset the Machine interrupt enable flag in the mstatus register inside my ISR and everything works fine now.

Hi Nikolas,
It will be better to post that working code.

Sorry my fault, was not thinking about that but should be obvious Smile

I made a little repository with the working code that can be found here:

https://gitlab.com/d_maurer/pulpissimo_t...esting.git

Hope it is usefull for someone and again sorry Sad Rolleyes .
Reply


Messages In This Thread
Interrupt handling problem - by nikolas - 01-05-2021, 03:01 PM
RE: Interrupt handling problem - by nikolas - 01-06-2021, 09:59 AM
RE: Interrupt handling problem - by RiscV - 03-04-2021, 06:32 AM
RE: Interrupt handling problem - by nikolas - 03-04-2021, 08:54 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)