|
|
Line 1: |
Line 1: |
− | The ESP32 toolchain includes a lot more extras and so we have used the standard Espresif installer as that does all the extra functionality for you.
| + | Prior to installing the ESP32 toolchain, is vital that you [[Library_Updates|update Flowcode components]] using the Full database option, then reload (Fle > reload) your project or start a new one. |
| | | |
− | The only downside to this is you have to manually point Flowcode at the toolchain.
| + | Note: If you are upgrading from a previous version of the ESP32 toolchsain then either rename your project or delect the folder for your project that was created using the previous version of the ESP32 toolchain. |
| | | |
| + | Download the ESP32 toolchain from the Toolchain section of the [https://flowcode.co.uk/download/ Flowcode Downloads page]. |
| | | |
− | The toolchain can be downloaded from here: https://flowcode.co.uk/download
| + | Save the ESP .msi file to your PC. |
| | | |
− | Please report any problems or issues on the Flowcode user forum.
| + | Right-click on the file and select install. |
| | | |
| + | Follow the prompts. |
| | | |
− | Installation
| + | The default drive will be on the same drive thart the msi file is saved on. |
| | | |
− | Once the download has finished run the installation file.
| + | You can change the drive, but you must leave FC_ESP as the default directory. |
| | | |
− | [[File:ESP32_Setup1.png]]
| + | When you compile for the first time, it will take considerbly longer then subsequence compiles. |
| | | |
− | Select – I accept the agreement and click Next
| + | If there is the following erorr message: |
| | | |
− | [[File:ESP32_Setup2.png]]
| + | 'idf.py' is not recognized as an internal or external command |
| | | |
− | If you have a different version of Python installed, then I would recommend sicking with Python 3.7
| + | Then either Flowcode project was not reloaded ater full componet database update, or all the components have not beeen updated with the latest Version. |
| | | |
− | ''<span style="color:red;">Please note some versions of Python may cause the installer to fail, if this happens then try again and use the supplied version 3.7</span>''
| + | The following message can be ignored: |
| | | |
− | If you have Git already installed then you can select your version of Git.
| + | fatal: not a git repository (or any of the parent directories): .git |
− | | |
− | Otherwise select Install Git
| |
− | | |
− | [[File:ESP32_Setup3.png]]
| |
− | | |
− | If you have an ESP-IDF already downloaded, then you can select your version of ESP-IDF.
| |
− | | |
− | Otherwise, select Download ESP-IDF
| |
− | | |
− | [[File:ESP32_Setup4.png]]
| |
− | | |
− | Select which ESP-IDF to install, we recommend the lowest version as the higher versions have not been tested.
| |
− | | |
− | Install to a location on your system with no spaces in the path.
| |
− | | |
− | For example C:\esp-idf
| |
− | | |
− | [[File:ESP32_Setup5.png]]
| |
− | | |
− | Select a location for the ESP-IDF Tools to be installed, again use a path that contains no spaces
| |
− | | |
− | For example C:\esp-idf-tools
| |
− | | |
− | [[File:ESP32_Setup6.png]]
| |
− | | |
− | Select addition tasks, recommend keeping all options checked and click Next.
| |
− | | |
− | [[File:ESP32_Setup7.png]]
| |
− | | |
− | On the confirmation screen check the paths are correct and click Install
| |
− | | |
− | [[File:ESP32_Setup8.png]]
| |
− | | |
− | During the installation process you may get some of the following pop-ups appearing
| |
− | | |
− | Click Yes to allow Git to be installed
| |
− | | |
− | [[File:ESP32_Setup9.png]]
| |
− | | |
− | Click Yes to allow Windows PowerShell to be installed
| |
− | | |
− | [[File:ESP32_Setup10.png]]
| |
− | | |
− | Installation complete
| |
− | | |
− | You do not need to run the ESP-IDF command prompt as we will be invoking this from Flowcode:
| |
− | | |
− | [[File:ESP32_Setup11.png]]
| |
− | | |
− | A PC reboot may be required after installation has been completed.
| |
− | | |
− | '''Setting up Flowcode for use with the ESP32 toolchain'''
| |
− | | |
− | Copy the location of the esp-idf (e.g. C:\esp-idf) into the
| |
− | | |
− | Global Settings > Locations tab.
| |
− | | |
− | Or if you have a project loaded
| |
− | | |
− | File > Global Settings > Locations tab:
| |
− | | |
− | [[File:ESP32_Setup12.png]]
| |
− | | |
− | Click OK
| |
− | | |
− | '''Flowcode ESP32 Projects'''
| |
− | | |
− | When you create a new Flowcode ESP32 project the first time you compile a folder will be created in
| |
− | the Flowcode project directory with the same name as the Flowcode project file.
| |
− | | |
− | The folder contains all the standard build output for an ESP32 project.
| |
− | | |
− | The first compilation of a project will take a while to complete – around 5 minutes as all of the ESP32
| |
− | libraries are pulled in from the ESP-IDF and compiled one by one. After the initial compilation
| |
− | subsequent compilations will be much faster.
| |
− | | |
− | Inside the folder is a file called sdkconfig, this file is a text file that contains the configuration for the
| |
− | ESP32 device.
| |
− | | |
− | Any changes to this file will automatically trigger another extended compilation.
| |
− | | |
− | If you connect your ESP board before running Flowcode then the boards COM port will appear in the Flowcode project options.
| |
− | | |
− | This will need to be selected and correct for the Compile to Chip menu option to function correctly.
| |
− | | |
− | [[File:ESP32_Setup13.png]]
| |
Prior to installing the ESP32 toolchain, is vital that you update Flowcode components using the Full database option, then reload (Fle > reload) your project or start a new one.
Note: If you are upgrading from a previous version of the ESP32 toolchsain then either rename your project or delect the folder for your project that was created using the previous version of the ESP32 toolchain.
Download the ESP32 toolchain from the Toolchain section of the Flowcode Downloads page.
Save the ESP .msi file to your PC.
Right-click on the file and select install.
Follow the prompts.
The default drive will be on the same drive thart the msi file is saved on.
You can change the drive, but you must leave FC_ESP as the default directory.
When you compile for the first time, it will take considerbly longer then subsequence compiles.
If there is the following erorr message:
'idf.py' is not recognized as an internal or external command
Then either Flowcode project was not reloaded ater full componet database update, or all the components have not beeen updated with the latest Version.
The following message can be ignored:
fatal: not a git repository (or any of the parent directories): .git