cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F1 FreeRtos Problem

mohamad pb
Associate
Posted on December 03, 2017 at 07:32

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:

https://www.dropbox.com/s/kpp5xysnd7kj4ey/Project%20F1Freertos.rar?dl=0

 

and my main.c :

https://www.dropbox.com/s/0adlqi7hobv7ply/main.c?dl=0

 

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

:(

#stm32f1 #freertos
0 REPLIES 0