AnsweredAssumed Answered

STM32F1 FreeRtos Problem

Question asked by mohamad pb on Dec 3, 2017

Hello.i using STM32F103 microcontroller,iar compiler and SPL library
i tried to run FreeRtos on microcontroller
so i download FreeRtos Files From this link:
https://sourceforge.net/projects/freertos/files/FreeRTOS/
FreeRTOSv9.0.0.exe (16.1 MB)
and made project my self,my project link:
Dropbox - Project F1Freertos.rar 
and my main.c :
Dropbox - main.c 
in my project i just config USART and GPIO and clock
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(" hi\n");

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) {   System_Init();   xTaskCreate(Blink2,(const char*) "Blinker",configMINIMAL_STACK_SIZE,NULL,1,( xTaskHandle * ) NULL);   vTaskStartScheduler(); }

and inits...
also try print a character with USART DR Register
nothing.didnt work

Outcomes