Quality RTOS & Embedded Software

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


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner