ESP32-S3_Mini not compiling

Any bugs you encounter with Flowcode should be discussed here.
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-S3_Mini not compiling

Post by stefan.erni »

Hi Ben

I use a simple Led on/off program

ESP32-S3_DeviceKitC is ok
ESP32-S3_Mini is not compiling.
A fatal error occurred: This chip is ESP32-S3 not ESP32-S2. Wrong --chip argument?
CMake Error at run_serial_tool.cmake:56 (message):

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

Re: ESP32-S3_Mini not compiling

Post by BenR »

Many thanks for letting us know, should be resolved for you now via the library updates.

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

Re: ESP32-S3_Mini not compiling

Post by stefan.erni »

Hi Ben

Perfect it's compiling with Led on/off !

So i connented the display and it's compiling only if I use the SPI in software mode.
The display works fine in software mode.

Maybe you can take a look at why it doesn't work with the hardware SPI

Softwaremode ok:
Snag_c2b21a.png
Snag_c2b21a.png (39.01 KiB) Viewed 280 times
Program:
S3_24_1.fcfx
(16.22 KiB) Downloaded 9 times

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

Re: ESP32-S3_Mini not compiling

Post by BenR »

Hello,

It's compiling fine for me in hardware mode. Can you post the .msg.txt file from a failed compilation and I'll have a look.

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

Re: ESP32-S3_Mini not compiling

Post by stefan.erni »

Yes here...
S3_24_1.msg - Copy.txt
(27.76 KiB) Downloaded 12 times

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

Re: ESP32-S3_Mini not compiling

Post by BenR »

Hello Stefan,

Could simply be your IDF version. You're using 4.4.6 and I'm on 5.1.

You could try adding this line to the defines section of the supplementary code in the project options.

Code: Select all

#define HSPI_HOST SPI3_HOST
but there may be other problems too.

There is also a way to upgrade your IDF version to 5.1 without having to reinstall, it works ok for me but others have had mixed results.

See here for details.
viewtopic.php?p=9222#p9222

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

Re: ESP32-S3_Mini not compiling

Post by stefan.erni »

Hi Ben

I did both.
I get my notebook with ESP-IDS 5.1 and it's not compiling but in softwaremode it's ok
and i add the code and it did not compile
S3_24_1.msg - Copy.txt
(30.16 KiB) Downloaded 15 times

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

Re: ESP32-S3_Mini not compiling

Post by BenR »

Hello,

This is the error you're getting.

C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_SPI.c:156:52: error: 'HSPI_HOST' undeclared (first use in this function); did you mean 'SPI3_HOST'?

Did you add the code snippet to the top window of the Supplementary Code? Could you please attach your latest .fcfx project file and .c file.

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

Re: ESP32-S3_Mini not compiling

Post by stefan.erni »

Hi Ben

here are the desired files.For this I used my computer with the ESP-IDF 4.4.6
But it was the same yesterday on the notebook with ESP-IDF 5.1
C3_24_1.fcfx
(6.94 KiB) Downloaded 13 times
C3_24_1.c
(1.68 KiB) Downloaded 12 times

insert the code here?
Snag_b0f8de.png
Snag_b0f8de.png (16.27 KiB) Viewed 244 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-S3_Mini not compiling

Post by stefan.erni »

Hi Ben

SPI hardware is not working.
I have tried with other components and with the SPI component and add #define ....
Just in software mode it is possible to compile.

regards

Stefan

Post Reply