-
Notifications
You must be signed in to change notification settings - Fork 0
Building for the M5AtomS3
Uncomment #define ATOMS3 located in the main header file. This will activate appropriate M5 library and display code.
Hold the AtomS3 reset button for 3-4 seconds and let go. Watching device manager Serial ports list, you should see your CPU show up. Here it appears as COM14
Select the comm port control in the tool bar
You will see USB serial port devices listed. The ESP32 devices will have extra information. Select the COM14 device.
Success
Select UART flash method icon in the tool bar
3 options will appear, choose UART
Success
Select the esp32s3 target in the tool bar.
Select esp32s3 from the list
You will get a list of 3 model options: Pick the first, (via built-in debug via JTAG ...)
The IDE should run some update notifications successfully.
Cntl-E and press D to build and flash. Or click on the wrench icon in the toolbar to just compile.
Hopefully no more errors if you are lucky. I seem to get a lot of them, especially after starting up the Visual Studio editor and opening the project folder.
One of the remedies that can help at times is to re-run Configure Extension. Some time it makes things worse. but usually not.
I always choose the same button hoping to avoid messing things up. Here I choose the middle option with idf-git\2.39.2 because that seems to work and choosing something else breaks things.
Choose set device target
Maybe it will work. If not, I then delete the build folder.
Sometimes I exit VS Code and start again. I often see a notification pop up in the lower right corner asking if you want to Generate json. Ignore this, it can only be done after setting the correct esp target. Set the esp32s3 and this usually works, it rebuilds the CMake files and compiles. You can alo run 'idf.py --reconfigure' on the command line.
When it compiles you will see a lot of warnings. These can be ignored. Most all are deprecated graphics library arguments for color. Will figure out how to fix them someday.