How to program ESP32?

For general Flowcode discussion that does not belong in the other sections.
Post Reply
chico
Posts: 8
http://meble-kuchenne.info.pl
Joined: Thu Dec 17, 2020 7:53 pm
Has thanked: 1 time
Been thanked: 1 time

How to program ESP32?

Post by chico »

Checking out Flowcode V9, very excited to see ESP32 support.

Playing around with it now, I do understand that it's new and documentation hasn't caught up yet.

Got some ESP32 stuff running in sim but how do I compile to chip?

Thanks...

medelec35
Matrix Staff
Posts: 1463
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 514 times
Been thanked: 473 times

Re: How to program ESP32?

Post by medelec35 »

Hi chico,
Take a look at this link.
You will see a pdf file that contains step by step instructions.
Martin

chico
Posts: 8
Joined: Thu Dec 17, 2020 7:53 pm
Has thanked: 1 time
Been thanked: 1 time

Re: How to program ESP32?

Post by chico »

Thanks. I viewed the link you sent, I'd already loaded the toolchain.

I can get my test file to compile, but programming fails:

Code: Select all

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build

Usage: idf.py [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...
Try 'idf.py --help' for help.

Error: Invalid value for '-b' / '--baud': flash is not a valid integer
Programming Failed

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

Autoclose turned off


FINISHED
The listed com port in project options is: COM3 (Silicon Labs CP210x USB).

Any ideas?

medelec35
Matrix Staff
Posts: 1463
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 514 times
Been thanked: 473 times

Re: How to program ESP32?

Post by medelec35 »

Have you selected the correct port in the project options screen?
I have found it best to have tge board connected before running Flowcode.
Martin

chico
Posts: 8
Joined: Thu Dec 17, 2020 7:53 pm
Has thanked: 1 time
Been thanked: 1 time

Re: How to program ESP32?

Post by chico »

Yes, the correct programmer port is listed in Project Options: COM3 (Silicon Labs CP210x USB).

I'm using a HiLetGo ESP32S (Works as Node32s in Arduino IDE). I've tried the various ESP options in Flowcode (ESP32S, ESP32_WROOM_32, ESP32_WROVER), all compile but get the same programmer error when trying to upload:

Code: Select all

Error: Invalid value for '-b' / '--baud': flash is not a valid integer
Programming Failed

C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_prog.bat reported error code 0x1
No problem uploading to the same board with the Arduino IDE when Flowcode isn't open.

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 73 times
Been thanked: 218 times

Re: How to program ESP32?

Post by LeighM »

There is a bug relating to setting the com port.
Please read this post, carefully 😊

viewtopic.php?p=57#p57

chico
Posts: 8
Joined: Thu Dec 17, 2020 7:53 pm
Has thanked: 1 time
Been thanked: 1 time

Re: How to program ESP32?

Post by chico »

That did it. Thanks!

more q's to come, no doubt, but looking good so far...

Post Reply