Page 2 of 6

Re: ESP32 Compiling error

Posted: Mon Sep 06, 2021 1:14 pm
by LeighM
Could you try creating the Flowcode project in a directory path that does not contain spaces.
Try somewhere on drive F: if you can.

Re: ESP32 Compiling error

Posted: Mon Sep 06, 2021 3:25 pm
by stefan.erni
Hi to All

I have on a (new) pc the same problem

I used
esp-idf-tools-setup-offline-2.10
The instalation was without an error

But it cant fount the Python

regards

Stefan
error2.JPG
error2.JPG (38.54 KiB) Viewed 3633 times

Re: ESP32 Compiling error

Posted: Mon Sep 06, 2021 3:30 pm
by stefan.erni
I run the ESP Command
test.JPG
test.JPG (124.63 KiB) Viewed 3633 times

Re: ESP32 Compiling error

Posted: Tue Sep 07, 2021 7:26 am
by jollybv
Hi Ben

I think i found the problem the esp-idf-tools folder it was loading into the esp-idf-tools\.espressif when i changed that and took out the \.espressif it now works.
As I'm very new to this esp32 I have now compiled a simple blinker app to try get every thing going but it fails i'm not sure if it could be the board rate which is set at 115200 i'm not sure where i can change this to check
esp compile failed.png
esp compile failed.png (104.09 KiB) Viewed 3626 times
ESP32_Blinker.fcfx
(7.82 KiB) Downloaded 116 times

Re: ESP32 Compiling error

Posted: Tue Sep 07, 2021 7:56 am
by medelec35
Hi, Brian.
That looks like a communication issue between your PC and ESP32board.
Have you checked within the device manager to see if your board can be seen within the Ports (COM & LPT) section?
With some boards I have, there was a need to press the reset button on the board before it would program.
Have you selected the ESP32 Programmer Port within project options?

Re: ESP32 Compiling error

Posted: Tue Sep 07, 2021 1:09 pm
by jollybv
Hi, guys

Thanks for all the help I now have a blinking board so we up and running, the reason that it was not communicating is that i had a bridge on the development board pulling RX down just one question do i need to put the C code with OSCCON=0x50; in the beginning of my esp32 projects? and another thing do I set the clock speed in project options to 240Mhz or 40Mhz

Re: ESP32 Compiling error

Posted: Tue Sep 07, 2021 1:49 pm
by LeighM
do i need to put the C code with OSCCON=0x50
No
do I set the clock speed in project options to 240Mhz or 40Mhz
240MHz, but I don't think it matters, the delays are done by the OS

Re: ESP32 Compiling error

Posted: Tue Sep 07, 2021 2:49 pm
by stefan.erni
Hi to All

On my computer it's working after I started the following batch file (again)

Desktop\esp-idf\install.bat

@jollybv I hope you have a lot of fun with the ESP32 like me. Together with the Appdevelopper you have so many options to connect and use the ESP32.

regards

Stefan

Re: ESP32 Compiling error

Posted: Tue Sep 14, 2021 2:00 pm
by stefan.erni
Hi Ben

On a second computer I have again this Python is not installed problem even the test give a OK.

In this computer it does not help to run the install.bat again

regards

Stefan
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_build.bat "C:\esp-idf\" "test_install" "C:\FC9_esp32\4install\" esp32s_sdkconfig

C:\FC9_esp32\4install>REM CRC: 0796FC1E6A776AF9156B257209C35258CE7C28B3EC20AEA2C632DB392A0E4BFD5B3F53B21811978F7B21FE4085045A7E774D1D3D69D8A99EE7320EAE740A5DB6FE0D8D4660AC0314F98C28BCA92AF856EFD1DB5B777140BC4D00059D795899827D9F76D89626FBC8B199900461C78937B42DEF8219F63A24580137A2F6C8FDB7553324EFF791947E8AB6FFD612B81BAA97C798A8F1CFC189DE5D38517747C774AF2DD6F839BAECF83F7F994C7164CE77868F480396BDEF2F2C3050DA273BE4EE6FE0BB589D1229A5E37B217FF86DBD72A01B8FBC49BE02BFA3608A0B0CE69F969622A912E6E6A2FB

C:\FC9_esp32\4install>REM REVISION: 4.0

C:\FC9_esp32\4install>REM GUID: 955EA920-4961-4C53-BA6B-EF4AF66BB4C2

C:\FC9_esp32\4install>REM DATE: 29\03\2021

C:\FC9_esp32\4install>REM DIR: FCD\ESP\Batch\esp32_build.bat
Building test_install ...

Error: The following tools are not installed in your environment.

python


Please use the Windows Tool installer for setting up your environment.
Download link: https://dl.espressif.com/dl/esp-idf/
For more details please visit our website: https://docs.espressif.com/projects/esp ... setup.html
'idf.py' is not recognized as an internal or external command,
operable program or batch file.

Build Failed

C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_build.bat reported error code 0x1

Autoclose turned off


FINISHED

Re: ESP32 Compiling error

Posted: Tue Sep 14, 2021 2:49 pm
by LeighM
Hi,
Could you run the ESP-IDF command prompt, then type

Code: Select all

export