Kyle_Kim
Newbie level 3
[FreeRTOS] FreeRTOS V7.0.2, STM32, IAR - Task is not working
Hello. I'm Kyle.
I work to port FreeRTOS(v.7.0.2) to STM32F103 with Standard peripheral library ver 3.5.0.
I have aproblem. Please help me....
(I attatched PROJECT files)
View attachment RTOS_question.zip
<<environments>>
MCU : STM32F103VB
Compiler : IAR Ver 6.21
FreeRTOS V7.0.2
Std peripheral library version V3.5.0
<< Problems>>
I made task to print out Simple MESSAGE.
I made Task1 that print out simple Message, but that's not work.
See below.
* Main function ===========================================================
int main(void)
{
* SYSTickInit();
* AppGPIOInit();
* AppUARTInit();
* printf("%s", MESSAGE1);
*
* /* Create Task */
* xTaskCreate( Task1, "Task1", /*TASK_SIZE*/ 240 , NULL, 1, /*&task1*/ NULL); * * **
* /* Start the scheduler. */
* vTaskStartScheduler();
**
* return 0;
}
* Task Function ===========================================================
void Task1( void *pvParameters ){
* portTickType gpio_Time;*
**
* gpio_Time = xTaskGetTickCount(); * *
* printf("%s ", MESSAGE1);
* while(1)
* { * *
* * GPIOB->ODR ^= GPIO_Pin_6;
* * vTaskDelayUntil( &gpio_Time, 1000 ); * **
* }
**
}
* SysTick intialization Function *=====================================================
void SYSTickInit(void)
{
* /* Setup SysTick Timer for 1 msec interrupts **/
* if (SysTick_Config(SystemCoreClock/1000))
* {*
* * /* Capture error */*
* * while (1);
* } *
}
CF)
Other UART, GPIO functions OK. I checked.
Hello. I'm Kyle.
I work to port FreeRTOS(v.7.0.2) to STM32F103 with Standard peripheral library ver 3.5.0.
I have aproblem. Please help me....
(I attatched PROJECT files)
View attachment RTOS_question.zip
<<environments>>
MCU : STM32F103VB
Compiler : IAR Ver 6.21
FreeRTOS V7.0.2
Std peripheral library version V3.5.0
<< Problems>>
I made task to print out Simple MESSAGE.
I made Task1 that print out simple Message, but that's not work.
See below.
* Main function ===========================================================
int main(void)
{
* SYSTickInit();
* AppGPIOInit();
* AppUARTInit();
* printf("%s", MESSAGE1);
*
* /* Create Task */
* xTaskCreate( Task1, "Task1", /*TASK_SIZE*/ 240 , NULL, 1, /*&task1*/ NULL); * * **
* /* Start the scheduler. */
* vTaskStartScheduler();
**
* return 0;
}
* Task Function ===========================================================
void Task1( void *pvParameters ){
* portTickType gpio_Time;*
**
* gpio_Time = xTaskGetTickCount(); * *
* printf("%s ", MESSAGE1);
* while(1)
* { * *
* * GPIOB->ODR ^= GPIO_Pin_6;
* * vTaskDelayUntil( &gpio_Time, 1000 ); * **
* }
**
}
* SysTick intialization Function *=====================================================
void SYSTickInit(void)
{
* /* Setup SysTick Timer for 1 msec interrupts **/
* if (SysTick_Config(SystemCoreClock/1000))
* {*
* * /* Capture error */*
* * while (1);
* } *
}
CF)
Other UART, GPIO functions OK. I checked.
Last edited: