Replies: 2 comments
-
I have tried to replicate the issue you describe, but I can't. The AVR ATmega is a very simple MCU. There is no interrupt nesting system (except intrinsic ordering) available. The configMAX_SYSCALL_INTERRUPT_PRIORITY option is not relevant to an ATmega port of FreeRTOS. Please, check that you have the latest 8.2.3-16 Release of the Arduino_FreeRTOS library installed. |
Beta Was this translation helpful? Give feedback.
-
I am not sure if this helps. I recently installed 8.2.3 (greiman) on my Teensy 3.6. The serial event is not being call. I have two tasks running. A heartbeat task which turns on off the LEDs. Another task waiting on a sem give in the serial event function so in can process the text. I have a print statement in the serial event and it is not being printed. I ran a similar example of the code you have above and the serial event worked fine. I am guessing running the scheduler affected the system interrupts. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I used arduino example "SerialEvent", it was fine. But when I include Arduino_FreeRTOS, the serialEvent didn't work any more, how to fix it? rewrite avr ISR? but I noticed that there's no configMAX_SYSCALL_INTERRUPT_PRIORITY option in freertosconfig.h, it seems that the uart interupt always is blocked by task, even idle task.
Beta Was this translation helpful? Give feedback.
All reactions