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] [January 2017 Threads]
Hello everyone,
I am starting using FreeRtos and I think I understand the basic concepts but right now I've seen some effect that are puzzling me.
I have the following code
~~~
void main() {
HAL_Init();
/* Configure the system clock */
SystemClock_Config();
/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_DMA_Init();
MX_SPI4_Init();
if 1
xTaskCreate(vTaskFunction2,
"Rx",
configMINIMAL_STACK_SIZE,
NULL,
tskIDLE_PRIORITY,
&xTask2);
endif
uint8_t txBuf[10];
uint8_t rxBuf[10];
HAL_SPI_TransmitReceive_DMA(&hspi4, txBuf, rxBuf, sizeof(txBuf));
while (1);
}
~~~
When I disable the task creation my SPI interrupt is called. When I am enabling the taks creation call my SPI interrupt is NOT called. I am now wondering, does the xTaskCreate disable interrupt execution? Does anybody understand the concept behind that.
best regards
Matthias
See number 3 on the following page of the FAQ:
http://www.freertos.org/FAQHelp.html
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.