-
Notifications
You must be signed in to change notification settings - Fork 13.3k
board generator documentation #4989
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0fc566d
abfd5bf
9e6d9a0
aa57e7d
d0eb6b7
62526be
9ac20a1
fabd7b3
10982ef
832d79d
868b17a
698b081
c262c33
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
:orphan: | ||
|
||
Board generator | ||
--------------- | ||
|
||
The board generator is a python script originally intended to ease the | ||
Arduino IDE's `boards.txt` configuration file about the multitude of | ||
available boards, especially when common parameters have to be updated for | ||
all of them. | ||
|
||
This script is also used to manage uncommon options that are currently not | ||
available in the IDE menu. | ||
|
||
- `How can I run the script ? <#how-can-i-run-the-script>`__ | ||
- `What can I do with it ? <#what-can-i-do-with-it>`__ | ||
- `When do I need to update it ? <#when-do-i-need-to-mess-with-it>`__ | ||
- `Why is my pull-request failing continuous-integration ? <#why-is-my-pull-request-failing-continuous-integration>`__ | ||
|
||
How can I run the script ? | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Python 2 needs to be installed on your system. | ||
|
||
The script is located in the ``tools`` subdirectory of the core's root installation. | ||
It needs to be run from the root directory, | ||
|
||
:: | ||
|
||
$ tools/boards.txt.py | ||
|
||
:: | ||
|
||
C:\...> tools\boards.txt.py | ||
C:\...> python tools\boards.txt.py | ||
|
||
Running without parameters will show the command line help. They are | ||
generally self-explanatory. | ||
|
||
|
||
What can I do with it ? | ||
~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
As of today you can: | ||
|
||
* in the IDE: change the default serial programming speed of any board | ||
|
||
* in the IDE: add new serial programming speed | ||
|
||
* increase available flash space by disabling floats in ``*printf`` functions | ||
|
||
* enable WPS which is now disabled by default (at the cost of a smaller heap by ~4KB) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. in the IDE? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. all of these are in the IDE, right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. float/printf and WPS are not in IDE. The board generator script is currently the only way to change these. edit: I may have misunderstood. The generator does make changes for usability within the IDE. Some of the changes are not doable from inside the IDE. The generator does them. Then the IDE must be restarted to take effect. |
||
|
||
* change led pin ``LED_BUILTIN`` for the two generic boards | ||
|
||
* change the default lwIP version (1.4 or 2) | ||
|
||
|
||
When do I need to mess with it ? | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The board generator is used to automate generation of configuration files | ||
when possible. It needs to be edited for: | ||
|
||
* All information for specific boards. This is the only place where a new | ||
board (definition, description) can be updated or added to the existing | ||
list. | ||
|
||
* Memory mapping for ldscripts (flash and spiffs size combinations) | ||
|
||
|
||
Why is my pull-request failing continuous-integration ? | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The generator is able to update a number of files (see list in help), and | ||
global coherency can be checked by the continuous integration facilities. | ||
|
||
After a modification in the generator, it is **mandatory** to regenerate all | ||
files (option ``--allgen``) and add them in the pull-request. | ||
|
||
|
||
`FAQ list :back: <readme.rst>`__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it work with Python 3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. At least all
print
s must be updated.edit: that could be an issue for 2.5.0: all python scripts must be py2/3 agnostic.