- Notifications
You must be signed in to change notification settings - Fork7.8k
fix: Add upload flags to boards.txt for Twin AIoT Module to resolve upload error#11876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
github-actionsbot commentedSep 26, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
👋Hello bekirr12, we appreciate your contribution to this project! 📘 Please review the project'sContributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you haveread and signed theContributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
78a74e9 intoespressif:masterUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
This pull request addresses a missing board definition for the Twin AIoT module in the boards.txt file, resolving a critical upload error. This change is to solve the error we received in the twinaiot module that we added in theprevious PR.
Problem Description
When attempting to upload a sketch to the Twin AIoT board, the build and upload process failed due to a missing line in the board's configuration file. The specific error message received was:
No such command '{upload.flags}'
This error was caused by the absence of the upload.flags and upload.extra_flags parameters in the Twin AIoT Module definition. The Arduino IDE's build system, which uses the platform.txt template, was unable to correctly format the esptool.py command-line arguments without these keys, leading to a failed upload.
Solution
This pull request adds the following lines to the Twin AIoT Module definition in the boards.txt file:
twinaiot.upload.flags=
twinaiot.upload.extra_flags=
This simple correction ensures that the build system can properly resolve the command-line arguments, allowing the firmware upload to proceed without errors.
Test Scenario
This change has been tested on the following hardware and software configuration:
Hardware: Twin AIoT Module (ESP32-S3-Mini-1 N4R2)
Software: Arduino IDE 2.3.6
Test: A simple "Blink" sketch was successfully compiled and uploaded, confirming that the upload process works as expected.