This bootloader is designed as part of a larger CanSat project. It is the main mechanism for updating the firmware on the CanSat. It is responsible for receiving new firmware over the air and writing it to the microcontroller's flash memory.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
The things you need before using the CanSat:
- 1x CanSat
- (Optional) Serial Monitor (e.g., PuTTY, RealTerm) for viewing debug information.
- Microchip Studio (Formerly Atmel Studio) for compiling the project.
To install Microchip Studio and set it up for this project, follow these steps:
-
Download Arduino IDE from the Arduino Website
-
Go to
Tools > Board > Boards Managerand install Arduino AVR boards -
Check the installation path of Arduino IDE
- Right-click on the
Arduino IDE icon > Open File Location - Example:
C:\Users\johndoe\AppData\Local\Programs\Arduino IDE
- Right-click on the
-
Locate the
avrdude.exepath:- Example:
C:\Users\johndoe\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17\bin\avrdude.exe
- Example:
-
Install Microchip Studio from the Microchip website
-
Open Microchip Studio
-
Go to
Tools > External Tools -
Click on
Add -
Fill in the following fields:
- Title:
Bootloader. - Command:
avrdude.exepath.- Example:
C:\Users\johndoe\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17\bin\avrdude.exe - Arguments:
-Cpath toavrdude.conffile-v -patmega2560 -carduino -PCOMx-b19200 -Uflash:w:"$(ProjectDir)Debug\$(TargetName).hex":i.- Example:
-C"C:\Users\johndoe\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17\etc\avrdude.conf" -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:"$(ProjectDir)Debug\$(TargetName).hex":i
- Title:
-
The project files should already have the memory settings for the linker set correctly for burning the bootloader.
Turn on the CanSat to start. Wait for approximately 5-10 seconds for the in-built LED to blink. Debugging information will be sent to the serial monitor if connected.
Below are links to additional documentation related to the CanSat project:
For more details on software, click here.
For an overview of the entire project and hardware, click here.
This project is not protected under any license. You are free to use, modify, and distribute the software as you see fit.