Problem compiling Esp32

For general Flowcode discussion that does not belong in the other sections.
Post Reply
daddytims_tims
Posts: 74
http://meble-kuchenne.info.pl
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 118 times
Been thanked: 13 times

Problem compiling Esp32

Post by daddytims_tims »

Good morning, everyone.
I am new to Fcv10. I am having a problem with the esp32 tool chain.

I want to test it out on the esp32 . Using a simple led flash program..

when I ready to compile the programm to hex file . It says ""( Esp32 compiler toolchain is not installed).

( I already go to "flowcode.co.uk" and download the tool chain and installed it. An it put a folder and phython short cut on the desktop..

How do I resolve this problem???
Give me the steps please...

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 702 times

Re: Problem compiling Esp32

Post by medelec35 »

Hello. Have you followed all the ESP32 toolchain installation instructions?
In your case I suspect the correct path has not been added to Global Settings > Locations
After adding the path, can you let us know how you get on?
Martin

daddytims_tims
Posts: 74
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 118 times
Been thanked: 13 times

Re: Problem compiling Esp32

Post by daddytims_tims »

Yes, that is exactly what happened. I followed just as you said, and it is working now.

I have another problem... when I compile my a simple flash led program to turn on and off the led..
I compiled it.. But how do I get that information to upload to my eblock 2 board?

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 702 times

Re: Problem compiling Esp32

Post by medelec35 »

Hello.
Thanks for letting me know, I'm glad you can now compile.
With the BL0058, you connect the ESP32 to your PC USB for programming. It can be left connected for general running hardware as well.
Look in device manager to see if the drivers are correctly installed.
If they are then for Ports (COM & LPT) it should show
USB-SERIAL CH340 (COMx) x being whatever comport is assigned.
If you don't see that with the ESP32 connected, then you will need to install CH340 drivers.
I added them here
If the correct drivers are installed then open your Flowcode project.
Select Build > Project Options...
Make sure within Choose a Target you have BL0058 selected.
Hint you can right-click on any heading e.g. Free targets, select Search enter bl0058
Finally, Select the correct com port under Other Options, Programmer Port: on the bottom right.
Select Modify and you should be good to go
Martin

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 702 times

Re: Problem compiling Esp32

Post by medelec35 »

If you look at page 59 of the Eblocks2 datasheet, you will see a table of what IO and analogue pins you can use
Martin

daddytims_tims
Posts: 74
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 118 times
Been thanked: 13 times

Re: Problem compiling Esp32

Post by daddytims_tims »

Goodnight, sir. I read and follow through the steps you told me. I see the (com & lpt) usd-serial ch340 on my laptop. I follow the build option type in bl0058 and add it.... modify it an its ok now....thanks alot gladly appreciate the help...

Next.
I want to add my BL0011 Pic Programmer to the (programmer comport). I followed the same instructions as I thought it would be the same.... i search for the (BL0011, found it..but over on the right hand corner..don't see the drop down option . At the programm port .... the option is not available..

How can I get my BL0011 to work??

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 702 times

Re: Problem compiling Esp32

Post by medelec35 »

Hello.
You only need to select a com port for ESP32 and Arduino.
With the BL0011 all you will need to do is download the drivers from here
From the same page, you will need to download and install 8bit PIC Toolchain
Connect the BL0011 to the USB, without the drivers installed only the the power LED will be on
After extracting and installing the drivers, the USB LED will pulse,
Within Flowcode, select Build > Compiler Options...
Select E-Blocks from the PIC section on the left and Select the checkbox for Default compiler for the platform C for PIC
Not you should be able to program the BL0011
Martin

daddytims_tims
Posts: 74
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 118 times
Been thanked: 13 times

Re: Problem compiling Esp32

Post by daddytims_tims »

Thanks alot Sir, I already downloaded the Eblocks drives an notice whenever I went in to flowcode software the USB led pulse. So all I did was to follow your steps an changed it to the default complier for the platform C for PIC......

Thanks ALOT.....

Post Reply