Components libraries bugs.

Any bugs you encounter with Flowcode should be discussed here.
djebirmalik
Posts: 19
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 5:21 am
Has thanked: 1 time
Been thanked: 1 time

Flowcode v10 Components libraries bugs.

Post 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.

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: Components libraries bugs.

Post 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

:)
Regards Peter - QME Electronics

djebirmalik
Posts: 19
Joined: Thu Dec 03, 2020 5:21 am
Has thanked: 1 time
Been thanked: 1 time

Re: Components libraries bugs.

Post by djebirmalik »

Hi , p.erasmus ;

Voici le fichier:
Flowcode1.fcfx
(12.04 KiB) Downloaded 40 times

djebirmalik
Posts: 19
Joined: Thu Dec 03, 2020 5:21 am
Has thanked: 1 time
Been thanked: 1 time

Re: Components libraries bugs.

Post by djebirmalik »

Flowcode1.fcfx
(11.85 KiB) Downloaded 36 times
Hi erasmus.I made a mistake.Here is the correct one;

djebirmalik
Posts: 19
Joined: Thu Dec 03, 2020 5:21 am
Has thanked: 1 time
Been thanked: 1 time

Re: Components libraries bugs.

Post 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.
Attachments
Flowcode1.fcfx
(10.83 KiB) Downloaded 50 times

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: Components libraries bugs.

Post 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
Regards Peter - QME Electronics

djebirmalik
Posts: 19
Joined: Thu Dec 03, 2020 5:21 am
Has thanked: 1 time
Been thanked: 1 time

Re: Components libraries bugs.

Post by djebirmalik »

thank you, Ben, for your quick response.
Regards.

djebirmalik
Posts: 19
Joined: Thu Dec 03, 2020 5:21 am
Has thanked: 1 time
Been thanked: 1 time

Re: Components libraries bugs.

Post by djebirmalik »

I wanted to say: thank you PETER.I would wait for an answer from an ESP32 specialist.

chipfryer27
Valued Contributor
Posts: 1194
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 289 times
Been thanked: 418 times

Re: Components libraries bugs.

Post 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

mnfisher
Valued Contributor
Posts: 1005
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 106 times
Been thanked: 519 times

Re: Components libraries bugs.

Post 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 40 times
flash1.fcfx
(7.6 KiB) Downloaded 40 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

Post Reply