Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

xTaskCreate and interrupts

Posted by mdubon on January 15, 2017

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


xTaskCreate and interrupts

Posted by rtel on January 15, 2017

See number 3 on the following page of the FAQ: http://www.freertos.org/FAQHelp.html


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS