Page 1 of 1

ESP32 C3 working fine but problem "old" ESP32 Pico

Posted: Thu Dec 14, 2023 1:09 pm
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

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

Posted: Fri Dec 15, 2023 8:57 am
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 2112 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 60 times
Snag_6c792a.png
Snag_6c792a.png (22.21 KiB) Viewed 2112 times

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

Posted: Fri Dec 15, 2023 11:31 am
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.

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

Posted: Fri Dec 15, 2023 2:23 pm
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 2063 times