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