Page 1 of 1

How to program ESP32?

Posted: Sat Dec 19, 2020 2:24 am
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...

Re: How to program ESP32?

Posted: Sat Dec 19, 2020 8:15 am
by medelec35
Hi chico,
Take a look at this link.
You will see a pdf file that contains step by step instructions.

Re: How to program ESP32?

Posted: Sat Dec 19, 2020 4:42 pm
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?

Re: How to program ESP32?

Posted: Sat Dec 19, 2020 5:11 pm
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.

Re: How to program ESP32?

Posted: Sat Dec 19, 2020 5:46 pm
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.

Re: How to program ESP32?

Posted: Sat Dec 19, 2020 6:22 pm
by LeighM
There is a bug relating to setting the com port.
Please read this post, carefully 😊

viewtopic.php?p=57#p57

Re: How to program ESP32?

Posted: Sun Dec 20, 2020 2:47 am
by chico
That did it. Thanks!

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