Quality RTOS & Embedded Software

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


Loading

FreeRtos did not work on stm32f103 & iar compiler

Posted by mohamadpb on November 30, 2017

Hello.i using iar compiler,stm32f1 microcontroller and SPL library,i made a project my self for FreeRtos download files from this link: https://sourceforge.net/projects/freertos/files/FreeRTOS/ FreeRTOSv9.0.0.exe (16.1 MB) my code just print hi in serial and LED didnt blink i tried to print something in tasks but didnt work :( this is my project thanks https://www.dropbox.com/s/kpp5xysnd7kj4ey/Project%20F1Freertos.rar?dl=0


FreeRtos did not work on stm32f103 & iar compiler

Posted by rtel on December 1, 2017

Apologies for the delay in replying.

Are you saying that toggling LEDs is working from different tasks, but not printing? How is the print implemented? Does it work when the RTOS is not running? If you are printing to a UART or other such device, are you protecting access using a mutex (or other mechanism) to ensure only one task accesses it at a time?


FreeRtos did not work on stm32f103 & iar compiler

Posted by mohamadpb on December 2, 2017

Thanks for your reply Mr.Real Time Engineer in my project i just config USART and GPIO and define some functions like: ~~~ void Blink2(void *p){ for(;;){

            GPIO_SetBits(GPIOC, GPIO_Pin_13);
            vTaskDelay(500);
            GPIO_ResetBits(GPIOC, GPIO_Pin_13);
            vTaskDelay(500);

} } ~~~ and before call the vTaskStartScheduler function i just print this ~~~ put_str(" hin");

~~~ its work.print hi successfully but,nothing happens after print "hi" i tried everything i comment USART config comment put_str function just a basic blink with one task just this: ~~~ void Blink2(void *p){ for(;;){

            GPIO_SetBits(GPIOC, GPIO_Pin_13);
            vTaskDelay(500);
            GPIO_ResetBits(GPIOC, GPIO_Pin_13);
            vTaskDelay(500);

} } int main(void) { SystemInit(); xTaskCreate(Blink2,(const char*) "Blinker",configMINIMALSTACK_SIZE,NULL,1,( xTaskHandle * ) NULL); vTaskStartScheduler(); } ~~~ and inits... also try print a character with USART DR Register nothing.didnt work :(


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


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

Webinar

"OTA Update Security and Reliability" webinar presented by TI and AWS. Register here.


Careers

FreeRTOS and other embedded software careers at AWS.


Latest News

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


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

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