2017-12-02 10:32 PM
Hello.i using STM32F103 microcontroller,iar compiler and SPL library
i tried to run FreeRtos on microcontrollerso 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 clockand Define some Functionslike: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 thisput_str(' hi\n');
its work.print hi successfully
but,nothing happens after print 'hi'i tried everythingi comment USART config comment put_str functionjust a basic blink with one taskjust 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 Registernothing.didnt work:(
#stm32f1 #freertos