Closed zackees closed 1 year ago
Additionally, what is the final step necessary to flash the device once I've done all of this? Do I have to use the idf.py
tool?
I will work on the Wiki explaining all the steps. But for now, few tips for you.
Always install the released version of ESP-IDF which is 5.0 right now.
If you clone from the repo, you get the working version which breaks a lot and not worth the time unless you are actively contributing to Espressif development work. I believe you are running 5.1 seen from the output [2/2] idf (5.1.0)
.
Installation instructions are here https://docs.espressif.com/projects/esp-idf/en/release-v5.0/esp32s3/get-started/index.html
This sets the controller. If you are using WT32-SC01 (which uses ESP32), then you don't need this line.
idf.py set-target esp32s3
This line will build the project.
idf.py build
This line will flash the firmware to the device. On Windows it detects the port by default so its not specified.
idf.py flash monitor
Otherwise you can specify -p like
idf.py -p <your-port> flash monitor
You can also test with the web installer from
https://tux.sukesh.me
Thanks this is great. I will try this.
Thanks this is great. I will try this.
Let me know if you have further questions. Will keep this issue open till you confirm you got it working.
Thanks for your attention to this. My main device is a WT32-SCO, but while I'm traveling I'm using the WT32-SCO-Plus. Is there a change in the above instructions for the Plus?
idf.py set-target esp32s3
WT32-SC01 uses ESP32 WT32-SC01 Plus uses ESP32-S3
So for plus version you need to use the following target command
idf.py set-target esp32s3
Apart from that, make sure to select and configure the device as per README.
idf.py menuconfig
Its explained here https://github.com/sukesh-ak/ESP32-TUX#get-started
So I followed your directions.
I installed the idf tool from the website for mac:
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html
This is the setup for the v5.0.
Once installed I do a git clone --recursive
Then I run idf.py set-target esp32s3
for my SCO-PLUS, I do idf.py menuconfig
but I leave everything at the defaults.
Then when I try to do a idf.py build
I get this:
You at least need to select your device from menuconfig
.
ESP32-TUX Configuration > Device Config
If you still getting errors let me know and I will clone and see.
Wow, thanks for all the quick responses. I was able to get through the last error by deleting the components.hash file (recommended by the tool itself). I'll rm -rf and re-do the installation and make sure Device Config is set from the menu config.
Wow, thanks for all the quick responses. I was able to get through the last error by deleting the components.hash file (recommended by the tool itself). I'll back up through and re-do the installation and make sure Device Config is set from the menu config.
Sounds good.
I just cloned and built it successfully.
Try to create your project inside c:\dev
or similar with shorter folder structure.
Some of these linux tools don't like long path strings.
Btw, fmt
is a popular string formatter in C++ I use in IoT and Desktop projects.
Do you have OBS? Could you do a screen record real quick of your command line?
I do have video capture products but at the moment busy building something. Its 11:40pm here already. If you hit errors, do let me know.
Here is what I did.
git clone --recursive https://github.com/sukesh-ak/ESP32-TUX.git
cd ESP32-TUX
idf.py set-target esp32s3
#configure/select device
idf.py menuconfig
idf.py build
I'm unclear on #configure/select device that you mentioned.
What's the next step from here:
Select your device from menuconfig
.
ESP32-TUX Configuration > Device Config
Then press S
key to save the settings and exit. Then just build
.
Got it. Thanks I think this was the blocker. Will update.
Okay the board boots up with the template!
For anyone else that's hitting this problem, this is how you select your board using the idf.py menuconfig
step:
Do you have a consulting rate? I'd like to get a keyboard widget running so that the user can enter their wifi creds into the device. I'm willing to upstream any useful demo's back into the main template.
Do you have a consulting rate? I'd like to get a keyboard widget running so that the user can enter their wifi creds into the device. I'm willing to upstream any useful demo's back into the main template.
Sure. But Wi-Fi provisioning is already provided in the template. I didn't add it on-device entry is because smaller screens it's difficult to type. It's easier to do it using Smartphones. You can reset credentials and provision again easily.
Install ESP SoftAP Provisioning
Mobile App from Espressif and the app will ask you to scan QR code. Goto device Settings screen and scan the QR code to configure Wi-Fi.
The goal is to not have a provisioning app on the mobile phone but instead use the on screen keyboard to enter the credentials.
What's a non public way that I communicate with you?
The goal is to not have a provisioning app on the mobile phone but instead use the on screen keyboard to enter the credentials.
What's a non public way that I communicate with you?
I hangout on this FB group You can reach out to me on messenger.
@zackees Your specific issue was related to a bug in ESP-IDF component manager. They are working on it I believe.
Subscribe to this issue here for updates on it https://github.com/espressif/idf-component-manager/issues/18
Thanks. Yeah, also it was doing this really bad because one of my computers I was using idf 5.0 and the other was 5.1 and this was causing mismatches in the hash file.
I'm using Windows and also mac. There are huge gabs in the readme on what to do and it seems that it was written for a veteran of ESP32 developers.
Right now I'm having trouble with the following steps:
idf.py set-target esp32s3
idf.py build
idf.py flash monitor
Which produce errors like the following: