Interrupt problems

lcardenas wrote on Tuesday, May 29, 2007:

Hello !!

I’m using Freertos and PIC18F8621… i need two external interruption (INT0 AND INT1) i don’t know what really happen because when i put the interruption rutine doesn;t work. I have 5 tasks and run ok but with the interruption is not the same… i don’t know if i have to change de macros portsavecontext and portrestorecontext…

or if i have to do something before i the scheduler start…

Can you help me please with some ideas??

Do you know what can be wrong??

Thanks so much for your help!!

hace a nice day

embeddedc wrote on Wednesday, May 30, 2007:

The first thing to check is that your interrupts work in a simple program, without FreeRTOS being included.  Once you have this checked out, add FreeRTOS back in to see if they are still functioning correctly.

lcardenas wrote on Wednesday, May 30, 2007:

The interruptions in a simple program works ok, it is my problem i don’t know what i have to change to make it works with freertos

Can you help me please??

Thanks so much

davedoors wrote on Wednesday, May 30, 2007:

Did you see the example uart drivers in the FreeRTOS code?  Have you copied the same format and syntax as used for those?