You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a custom board design that uses an ESP32-PICO-D4. On this board is a SC16IS752 dual SPI UART, accessed from MP via a custom C module. I have found that characters are dropped, particularly at higher baud rates, due to the time that MP GPIO interrupts require. So, I would like to have the UART received character interrupt served via a FreeRTOS task, Adding a test function that creates a task that blinks an LED while running in parallel with the MP task was not a problem, however when trying to add support for a GPIO interrupt to service the UART IRQ I found that portYIELD_FROM_ISR() was preventing the module from successfully linking, generating the following error message:
spisvc.c:(.iram1.0+0x21): undefined reference to traceISR_EXIT_TO_SCHEDULER'`
Here is the relevant part of the task that sets up the interrupt handler:
If I comment out portYIELD_FROM_ISR() it compiles and links without a problem, I'm assuming I need to link to some library or include some header that defines traceISR_EXIT_TO_SCHEDULER?
I have previously used vTaskDelay() without problems, so it doesn't seem to be a FreeRTOS library issue.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I have a custom board design that uses an ESP32-PICO-D4. On this board is a SC16IS752 dual SPI UART, accessed from MP via a custom C module. I have found that characters are dropped, particularly at higher baud rates, due to the time that MP GPIO interrupts require. So, I would like to have the UART received character interrupt served via a FreeRTOS task, Adding a test function that creates a task that blinks an LED while running in parallel with the MP task was not a problem, however when trying to add support for a GPIO interrupt to service the UART IRQ I found that portYIELD_FROM_ISR() was preventing the module from successfully linking, generating the following error message:
spisvc.c:(.iram1.0+0x21): undefined reference to
traceISR_EXIT_TO_SCHEDULER'`Here is the relevant part of the task that sets up the interrupt handler:
And here is the (barebones) handler itself:
If I comment out portYIELD_FROM_ISR() it compiles and links without a problem, I'm assuming I need to link to some library or include some header that defines traceISR_EXIT_TO_SCHEDULER?
I have previously used vTaskDelay() without problems, so it doesn't seem to be a FreeRTOS library issue.
Any help greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions