Week 04 - Embedded Programming
Group Assignment
- Demonstrate and compare the toolchains and development workflows for available embedded architectures
- Document your work to the group work page and reflect on your individual page what you learned
ATTiny420 Setup Guide
Physical connection
More info on hardware coming soon!
Install Board Package
This board package can be installed via the Arduino Board Manager.
Boards Manager URL:
http://drazzy.com/package_drazzy.com_index.json
Steps:
- Go to File → Preferences
- Enter the URL above into "Additional Boards Manager URLs"
- Open Board Manager from the left side of the Arduino window
- Search for "megaTinyCore by Spence Konde"
- Click Install
- For best results, choose the most recent version
Issue: Board Manager Timeout Error
If you encounter a connection timeout error during installation:
Fix:
- Navigate to:
User → username → .arduinoIDE → arduino-cli.yaml
-
Open the file in Visual Studio (or any text editor)
-
Add the following:
network:
connection_timeout: 300s
- Increase the timeout duration if necessary
- In this case, the timeout had to be increased to 1000s
Example:
network:
connection_timeout: 600s
Setup to Load Code to the Microcontroller
1. Select the Board
- Go to Tools → Board
- Select the correct ATTiny board
2. Select the Port
- Go to Tools → Port
- Select the correct port
Once the board and port are set, additional options will appear in the Tools menu.
3. Select the Programmer
- Go to Tools → Programmer
- Select SerialUPDI – Slow
If this does not work, try another option.
(There is a more precise way to determine this, but it is more advanced.)
If the connection is faster, you may be able to use a different programmer, but in this case it failed on this microcontroller.
Upload the Program
To upload your sketch:
- Go to Sketch → Upload Using Programmer