Page 1 of 3

Components libraries bugs.

Posted: Fri Feb 10, 2023 5:21 pm
by djebirmalik
Hello. I just bought the professional license of FLOWCODE V10 with PIC8, Arduino and ESP32.
There seem to be a lot of "bugs".Example;
Components libraries/maths/"timed interval"+"timer".
These last two do not work. Is there a section to report "bugs"?
There is also the fact that we have to unplug the USB cable, then reconnect it each time so that the loading of the program goes well, etc...
Cordially.

Re: Components libraries bugs.

Posted: Fri Feb 10, 2023 5:59 pm
by p.erasmus
djebirmalik wrote:
Fri Feb 10, 2023 5:21 pm
Components libraries/maths/"timed interval"+"timer".
These last two do not work. Is there a section to report "bugs"?
Hi
It is a good practise to post your Flowchart with your report ,it help us to determine the issue. If you report a suspected bug in a forum post as here it gets picked up and solved,

It is not normal to unplug the USB for Flowcode to open up normally,from the 1000's of users this is the first time I come across such a report,Steve will help you with this issue however please post your FC chart with the use of components that you suspect are not working correctly

:)

Re: Components libraries bugs.

Posted: Fri Feb 10, 2023 6:35 pm
by djebirmalik
Hi , p.erasmus ;

Voici le fichier:
Flowcode1.fcfx

Re: Components libraries bugs.

Posted: Fri Feb 10, 2023 6:43 pm
by djebirmalik
Flowcode1.fcfx
Hi erasmus.I made a mistake.Here is the correct one;

Re: Components libraries bugs.

Posted: Fri Feb 10, 2023 7:57 pm
by djebirmalik
Hi, Peter;
I managed to get the Arduino nano to work, but the ESP32-wroom-32 refuses to work. I noticed that the 4 Timers have 8 bits???
I attach the correct diagram: Regards.

Re: Components libraries bugs.

Posted: Sat Feb 11, 2023 6:53 am
by p.erasmus
:D Hi,

One of the ESP32 experts will help you with this Ben,Martin ,Stepan etc, I am PIC guy hope you get helped soon :D

Re: Components libraries bugs.

Posted: Sat Feb 11, 2023 12:00 pm
by djebirmalik
thank you, Ben, for your quick response.
Regards.

Re: Components libraries bugs.

Posted: Sat Feb 11, 2023 1:46 pm
by djebirmalik
I wanted to say: thank you PETER.I would wait for an answer from an ESP32 specialist.

Re: Components libraries bugs.

Posted: Sat Feb 11, 2023 5:50 pm
by chipfryer27
Hi

First, I'm no expert on the ESP :)
Second, I've no hardware at all to test with just now, so I can only look at the simulation.

If you View > Target and set the simulation speed way down to 2Hz you can see that the output pin is toggling. Have you double checked your timer settings?

Regards

Re: Components libraries bugs.

Posted: Sat Feb 11, 2023 5:55 pm
by mnfisher
Hi,

Not sure I'd count as a specialist or an expert - we're all pretty new to the esp32 way of working and there is a lot to learn.... - but I can give a little advice.

So - the esp32 is a 2-core system with a an operating system (FreeRTOS) - which you have to work with to do things, and these are sometimes slightly different to the way of working with other MCUs where you have sole control - with a single program running. FreeRTOS (Free Real Time OS) is a multi-tasking operating system - and it expects tasks to 'yield' to allow other tasks to get a slice of the CPU time (if you don't you'll get WDT errors - without some extra work)). So - the way to do a 1s flasher is either to use a delay (which yields the MCU), create a separate task that does the blink or to use a timer interrupt (see sample attached) - timer interrupts just request an interrupt from the OS which allocates an appropriate timer for the task (I've used it to generate 37us pulses and it does this very well)
flash2.fcfx
(9.33 KiB) Downloaded 532 times
flash1.fcfx
(7.6 KiB) Downloaded 506 times
See this thread viewtopic.php?f=3&t=793 to see the (slightly more complex) way of doing it using an extra task.

Martin