Hi ,
I’m trying to use freeRTOS for my STM32F429ZI Nucleo board. Since I’m using Arduino framework I downloaded the stm32duino library from PIO Libraries.
I included STM32FreeRTOS.h to my sketch and use a simple serial print example .which i tested on Arduino board, but there is no output on the ST board using PIO.
#include <Arduino.h>
#include <STM32FreeRTOS.h>
TaskHandle_t Task_Handel1;
TaskHandle_t Task_Handel2;
void Task_Print1(void *pvParameters);
void Task_Print2(void *pvParameters);
void setup() {
Serial.begin(9600);
xTaskCreate(Task_Print1,"Task1",100,NULL,1,&Task_Handel1);
xTaskCreate(Task_Print2,"Task2",100,NULL,1,&Task_Handel2);
}
void Task_Print1(void *pvParameters)
{
(void) pvParameters;
while(1)
{
Serial.println("TASK1");
vTaskDelay(1000/portTICK_PERIOD_MS);
}
}
void Task_Print2(void *pvParameters)
{
(void) pvParameters;
while(1){
Serial.println("TASK2");
vTaskDelay(1000/portTICK_PERIOD_MS);
}
}
void loop() {
}
Appreciate if someone can help .
Thanks.