Page 1 of 2

ESP32-S3_Mini not compiling

Posted: Thu Mar 21, 2024 9:16 am
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):

Re: ESP32-S3_Mini not compiling

Posted: Thu Mar 21, 2024 9:32 am
by BenR
Many thanks for letting us know, should be resolved for you now via the library updates.

Re: ESP32-S3_Mini not compiling

Posted: Thu Mar 21, 2024 11:15 am
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 959 times
Program:
S3_24_1.fcfx
(16.22 KiB) Downloaded 18 times

Re: ESP32-S3_Mini not compiling

Posted: Thu Mar 21, 2024 11:42 am
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.

Re: ESP32-S3_Mini not compiling

Posted: Thu Mar 21, 2024 11:55 am
by stefan.erni
Yes here...
S3_24_1.msg - Copy.txt
(27.76 KiB) Downloaded 29 times

Re: ESP32-S3_Mini not compiling

Posted: Thu Mar 21, 2024 2:06 pm
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

Re: ESP32-S3_Mini not compiling

Posted: Thu Mar 21, 2024 4:24 pm
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 28 times

Re: ESP32-S3_Mini not compiling

Posted: Fri Mar 22, 2024 10:29 am
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.

Re: ESP32-S3_Mini not compiling

Posted: Fri Mar 22, 2024 11:18 am
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 32 times
C3_24_1.c
(1.68 KiB) Downloaded 25 times

insert the code here?
Snag_b0f8de.png
Snag_b0f8de.png (16.27 KiB) Viewed 923 times

Re: ESP32-S3_Mini not compiling

Posted: Tue Apr 09, 2024 3:33 pm
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