Hi
I have observed something strange.
I have a small blinky project running on a Nucleo-H723ZG made with STM32CubeIDE and they copied to PlatformIO and the project made with PlatformIO (and using PlatformIO STM32 support) is running slower that the one in STM32CubeIDE.
I guess that the only possibility is that somehow vTaskDelay() is not working properly!
Since vTaskDelay is uses TIM6 I wonder if the Timer driver on the PlatformIO is different…
Any ideas for this?
void dmodTask (void *argument)
{
uint32_t i=0;
while (1)
{
if ( i %10 == 0 )
HAL_GPIO_TogglePin ( LED_RED_GPIO_Port , LED_RED_Pin );
if ( i %17 == 0 )
HAL_GPIO_TogglePin ( LED_GREEN_GPIO_Port , LED_GREEN_Pin );
if ( i %33 == 0 )
HAL_GPIO_TogglePin ( LED_YELLOW_GPIO_Port, LED_YELLOW_Pin );
vTaskDelay(30);
i++;
if ( i % 166 == 0 )
{
HAL_GPIO_WritePin ( LED_RED_GPIO_Port , LED_RED_Pin , GPIO_PIN_RESET );
HAL_GPIO_WritePin ( LED_GREEN_GPIO_Port , LED_GREEN_Pin , GPIO_PIN_RESET );
HAL_GPIO_WritePin ( LED_YELLOW_GPIO_Port, LED_YELLOW_Pin, GPIO_PIN_RESET );
vTaskDelay(1000);
}
}
}