-
Notifications
You must be signed in to change notification settings - Fork 0
1. Setup
Jonathan Ma edited this page Mar 14, 2024
·
2 revisions
Wirings are from ChipSat -> Arduino
Arduino 1 (For uploading code)
- SCK -> Pin 13
- MI(SO) -> Pin 12
- MO(SI) -> Pin 11
- RST -> Pin 10
- VCC -> 5V
- GND -> GND
Arduino 2 (For serial output, make sure to use same ground)
- TX -> TX
- RX -> RX
- TX -> TX
- RX -> RX
- RST -> RESET
- VCC -> 5V
- GND -> GND
- Make sure "Tools > Programmer > Arduino as ISP" is checked
- Set the target board to Arduino Uno
- Load the program "Examples > 11.ArduinoISP > ArduinoISP"
- Upload this program to the Uno
- Follow the instructions of step 3 of the tutorial here to add the MiniCore library to the Arduino IDE
- Set the target board to "MiniCore > ATmega328"
- Ensure the variant is "328P / 328PA"
- Burn the bootloader onto the ChipSat from "Tools > Burn Bootloader"
- Upload ChipSat code using "Sketch > Upload Using Programmer"
Note that if this is your first time uploading code to the ChipSat, you must complete the Arduino IDE steps above before you can use PlatformIO.
- Upload using the "program_via_ArduinoISP" environment
Use Arduino as ISP to Burn Bootloader on AVR Microcontrollers
Programming an AVR ATmega328P with an Arduino.pdf
Problem: Failure to build; PlatformIO is throwing an error related to a ".sconsign311.tmp" file
Solution: Delete the .pio folder and build again