if we use the delay, then it works:WiFive wrote:Did you try to add fflush(stdout)?
Code: Select all
void app_main()
{
nvs_flash_init();
/// system_init();
uint32_t counts = 0;
while (-1) {
printf("Counter: %10d\r", counts);
fflush(stdout);
counts++;
vTaskDelay(10 / portTICK_PERIOD_MS);
}
Code: Select all
void app_main()
{
nvs_flash_init();
/// system_init();
uint32_t counts = 0;
while (-1) {
printf("Counter: %10d\r", counts);
fflush(stdout);
counts++;
// vTaskDelay(10 / portTICK_PERIOD_MS);
}
if the delay is to small, then it the same effect
i think, the delay must be greater as the double clock cylces for the instructions,
can it be this?
delay of 10 is ok
delay of 5 is to small - same effect
delay of 7 same, 8 same, 9 same, to small,
10 is perfect for this .
perfect for me YouTube Video
txs WiFive for helpful tip
best wishes
rudi