ESP32 C3 working fine but problem "old" ESP32 Pico

For general Flowcode discussion that does not belong in the other sections.
Post Reply
stefan.erni
Valued Contributor
Posts: 758
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

ESP32 C3 working fine but problem "old" ESP32 Pico

Post by stefan.erni »

Hi Ben

I have instaled the ESP v5.1.2 and it's working fine for the testprogram with an ESP32 C3.
that's really great!!

But for my old program with an ESP32 Pico I get a fail. I
I tested it before the update and it was working fine.
I also deleted all files and folders except the .fcfx file and recompiled it and it still failed.

regards

Stefan
Attachments
IMU_sdcard_Ch1.fcfx
(129.1 KiB) Downloaded 61 times
IMU_sdcard_Ch1.msg.txt
(225.59 KiB) Downloaded 77 times

stefan.erni
Valued Contributor
Posts: 758
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: ESP32 C3 working fine but problem "old" ESP32 Pico

Post by stefan.erni »

Hi Ben

I found two problem.

The first:
I have to remove watchdog C code so then a test-program is compiling.
Snag_64a561.png
Snag_64a561.png (14.42 KiB) Viewed 2072 times
The second:
it's a little strange.
If I have a macro with a return type "Byte, Int, UInt...." it gives a fail
but if the return type is "string" then no fail...

regards

Stefan

A testprogram with fail if use ESP-IDF v5.1.2
512_test_1.fcfx
(29.81 KiB) Downloaded 55 times
Snag_6c792a.png
Snag_6c792a.png (22.21 KiB) Viewed 2072 times

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: ESP32 C3 working fine but problem "old" ESP32 Pico

Post by BenR »

Have you assigned a value to the return? I think the ESP compiler will error if there is a return that hasn't been assigned a value. For a string it's a pointer and so is probably less likely to moan about it not being populated as it's harder to know if it has been.

Yes I'm aware the watchdog timer fix code has stopped working, I need to look into this to find a new fix.

stefan.erni
Valued Contributor
Posts: 758
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: ESP32 C3 working fine but problem "old" ESP32 Pico

Post by stefan.erni »

Hi Ben

Yes, the ESP-IDF 5.12 need to assigned a value to the .return. (ESP-IDF 4 maybe not)
The testprogram 512_test_1.fcfx is working now.
I still have another fail to fix.
Is there an error message somewhere where the fails come from?
Snag_a3ad5.png
Snag_a3ad5.png (9.07 KiB) Viewed 2023 times

Post Reply