Main program Task Priority

For general Flowcode discussion that does not belong in the other sections.
Post Reply
gregobac
Posts: 9
http://meble-kuchenne.info.pl
Joined: Fri Sep 10, 2021 8:59 am
Been thanked: 1 time

Main program Task Priority

Post by gregobac »

Hello,

I encounter a difficulty with the ESP32 real time in FC9.
I make a simple program to generate a 1 khz signal on the GPIO1
Image


Every 5sec and during 40ms the signal is interrupted
Image
Image
Image

I tried the same program with using interrupt on timer 0, 1 or 2 , the problem is same.

I tried the same code in IDE Arduino :
Image
I have no interrupt of the 1 Khz signal

Is this problem due to FreeRTOS? And how to disable it?

Thank you for your help
Best regards

BenR
Matrix Staff
Posts: 1756
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 446 times
Been thanked: 606 times

Re: Main program Task Priority

Post by BenR »

Hello,

Probably a watchdog timeout kicking in and causing a reset.

Try this fix posted here.

https://www.flowcode.co.uk/forums/viewt ... 3568#p3568

gregobac
Posts: 9
Joined: Fri Sep 10, 2021 8:59 am
Been thanked: 1 time

Re: Main program Task Priority

Post by gregobac »

Hello Ben,

Thank you very much !

Image

Its works perfectly :D

Post Reply