Installing the Software with VSCode and PlatformIO¶
PLACEHOLDER
TODO URGENT - Page for Installing EX-CommandStation using VSCode and PlatformIO. Needs screenshots and a lot more detail.
Visual Studio Code (VSCode) with the PlatformIO (PIO) extension is the recommended way for advanced users to install the EX-CommandStation software if EX-Installer is not sufficient for their needs.
Arduino IDE is not supported from v5.9
The Arduino IDE cannot be used to install the EX-CommandStation software from version 5.9. Hence the need for VSCode.
Not Recommended for novice users
While it is possible install the software using VSCode/PlatformIO (or with the Arduino up to version 5.8) we seriously DO NOT RECOMMEND IT for a novice users. It is an order of magnitude more complex, much slower, and with a very high probability of getting something wrong unless you really know what you are doing.
The EX‑Installer will meet 100% of the needs of a most users with considerably less effort.
Installation¶
Visual Studio Code (VSCode) with the PlatformIO (PIO) needs to be installed on a Windows, macOS or Linux PC or laptop.
We also recommend installing git command line or GitHub Desktop to be able to manage your local copy of the EX-CommandStation GitHub repository.
One time requirement¶
- Download and install VSCode and PlatformIO if you have not already done so.
-
Either:
-
Download the CommandStation-EX zip file and extract it to a folder
or
-
Clone the CommandStation-EX github repository to a local folder (recommended) using the git command line or GitHub Desktop
The local folder must be named
CommandStation-EX -
CommandStation-EX VS EX-CommandStation
Historically what is now called EX-CommandStation was originally called 'CommandStation-EX', and as a result the GitHib repository it is stored in is still called 'CommandStation-EX' even though it has a new name.
Ongoing requirements¶
-
Update the local CommandStation-EX folder. Either:
-
Download a new CommandStation-EX zip file and extract it to same folder again
or
-
Pull the changes the CommandStation-EX github repository to a local folder (recommended) using the git command line or GitHub Desktop
-
-
Connect your device (EX-CSB1 or microcontroller) to your PC
- Select the correct Environment (microcontroller type) for your device
- Select the correct USB port
- Add or update your
myConfig.hif needed - Add or update your
myAutomation.hif needed - Open
CommandStation-EX.ino, or any .cpp file -
Build and upload. ('Arrow' button in the top right)
(A/any file must be open or the button will not show.)
etc. TODO
Getting a specific version of EX-CommandStation¶
Getting a specific version of the CommandStation-EX repository...
TODO
Cloning the CommandStation-EX github repository¶
Cloning, rather then simply downloading a nw zip file, has the advantages of...
TODO
Using the git command line¶
TODO
Git command line tools must be installed to do this.
Using GitHub Desktop¶
TODO
GitHub Desktop (Recommended) must be installed to do this.
Pulling CommandStation-EX updates from the github repository¶
TODO
Updating using the git command line¶
TODO
Updating using GitHub Desktop¶
TODO
- Select the branch you want to pull
*
Environments (Microcontroller Types)¶
You must select the correct environment, which includes the microcontroller type, depending on your hardware and the variant of the EX-CommandStation software you want to download.
| Environment | Description |
|---|---|
| env:CSB1 | EX-CSB1 without the optional EX-8874 motor shield |
| env:CSB1-4Tracks | EX-CSB1 with the optional EX-8874 motor shield |
| env:ESP32-CS | ESP32 as a EX-CommandStation |
| env:ESP32-NODE | ESP32 as a Node |
| env:matouch_esp32c3 | |
| env:esp32c5 | |
| env:esp32c6 | |
| env:waveshare_esp32_s3_audio | |
| env:elecrow_esp32_s3_5inch | |
| env:Nucleo-F411RE | |
| env:Nucleo-F446RE | |
| env:Nucleo-F401RE | |
| env:Nucleo-F446ZE | |
| env:Nucleo-F429ZI | |
| env:Nucleo-F439ZI |
Branches¶
PROD¶
TODO
DEVEL¶
TODO
Other branches¶
TODO - generlly avoid unless you really know what you are doing.
etc. TODO


