FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [September 2015 Threads] 8.2.2, Atmel SAM V71, ISR APIPosted by atiflz on September 1, 2015 I cannot use any kind of inter process communication from ISR. All of these functions cause a lock up on my setup:
vTaskNotifyGiveFromISR
xQueueSendFromISR
xSemaphoreGiveFromISR
What can I do to have any kind of synchronization my tasks with interrupts except polling global variables?
Atilla Filiz
8.2.2, Atmel SAM V71, ISR APIPosted by richard_damon on September 1, 2015 Those functions are what you are supposed to be using. When things lock up, what is it locked up in, could it be a configASSERT? Perhaps your ISR is set to use too high of a priority.
8.2.2, Atmel SAM V71, ISR APIPosted by atiflz on September 2, 2015 Indeed it was the interrupt priorities for GPIOs. The examples do not set any IRQ priorities, so I guess they stay at default 0.
I proppose calling
PIOInitializeInterrupts(configMAXSYSCALLINTERRUPTPRIORITY + 1)
or similar at the beginning of main().
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|