Firmware Quick Start¶
You can easily edit or create your custom firmware for HARDWARIO TOWER Core Module on every major operating system
HARDARIO TOWER uses PlatformIO for building, uploading and debugging firmware so it is easy for all the users.
Getting your first HARDWARIO TOWER firmware skeleton¶
This chapter assumes that you already have PlatformIO installed on you computer. If not please visit PlatformIO installation.
Open the Command Palette by pressing
Ctrl + Shift + Por
Cmd + Shift + Pon Mac)
Git: Clone, press Enter, paste following URL and hit Enter again
You can also import the twr-skeleton by going into the PlatformIO extension in VSCode. In the extensions menu go to the
Platforms -> Installed -> HARDWARIO TOWER - Industrial IoT Kit -> Examples -> twr-skeletonand then hit import.
Your project will be opened after importing. It will put some numbers to the name, you can rename it later.
- Click open in the down right corner of VSCode after the cloning is doneIf you are returning to the project use Open folder option in VSCode.
Connect the Core Module into the computer with USB cable and click the Upload button (arrow) at the bottom of the VSCode window
If you did some changes to the code, you don’t have to click Build button every time, the Upload button will detect the changes and compile all changed files before uploading to the device.
The Core Module is flashed. The red LED will turn on, when you press the button the LED toggles.
Now that you know that everything is set up correctly, you can start developing.
If you are not sure how to do that, keep your twr-skeleton project open and go to see how to work with your First firmware.
You can get even more examples by going to the installed platform. How to get there is mentioned in the green tip bubble. You can find this tip in the third step of the list on this page.
All the examples are verified and should work without issues.