Skip to content

Commit 9151a5d

Browse files
committed
updted content of flash software
1 parent 003b74b commit 9151a5d

1 file changed

Lines changed: 68 additions & 0 deletions

File tree

how-tos/flash_software.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,74 @@ layout: default
66
lang: en
77
---
88

9+
# Flashing the Software onto the Microcontroller
10+
11+
## Overview
12+
13+
This guide explains how to flash the compiled software onto the microcontroller using MPLAB IPE v6.0 and a PICkit3 programmer.
14+
15+
> **Note:** Previous BIRDS projects may have used different versions of MPLAB IPE. Ensure that your setup is consistent with your project's requirements.
16+
17+
## Before you start
18+
19+
Before you proceed, ensure:
20+
21+
* You have MPLAB IPE v6.0 installed on your system.
22+
* You have a functioning PICkit3 programmer.
23+
* The microcontroller is properly mounted on the subsystem board.
24+
* The compiled `.hex` file is available.
25+
* The necessary connections between the PICkit3 and the board are correctly set up.
26+
27+
## Flashing the Microcontroller
28+
29+
1. **Connect the PICkit3 to the board and computer.**
30+
31+
- Plug the PICkit3 into the appropriate programming header on the subsystem board.
32+
- Connect the PICkit3 to your computer via USB.
33+
34+
2. **Launch MPLAB IPE.**
35+
36+
- Open MPLAB IPE v6.0.
37+
- In the `Device` dropdown, select the correct PIC microcontroller model (e.g., `PIC18F67J94`).
38+
39+
3. **Establish communication with the device.**
40+
41+
- Click the `Connect` button.
42+
- Verify that MPLAB IPE successfully detects the microcontroller.
43+
44+
4. **Load the compiled firmware.**
45+
46+
- Click `Browse` in the `Hex File` section.
47+
- Navigate to and select the compiled `.hex` file.
48+
49+
5. **Configure programming settings.**
50+
51+
- Ensure `Erase All Before Program` is selected.
52+
- Verify that the correct voltage settings are applied (refer to board documentation).
53+
- Disable `Code Protect` options unless needed.
54+
55+
6. **Flash the microcontroller.**
56+
57+
- Click `Program` to write the firmware to the microcontroller.
58+
- Wait for the process to complete and check for success messages in the output log.
59+
60+
7. **Verify the flashed firmware.**
61+
62+
- Click `Verify` to ensure the program was correctly written.
63+
- If verification fails, check wiring and try again.
64+
65+
8. **Disconnect and test.**
66+
67+
- Close MPLAB IPE.
68+
- Disconnect the PICkit3.
69+
- Power up the board and check if the software is functioning as expected.
70+
71+
## See also
72+
73+
* [MPLAB IPE User Guide](https://www.microchip.com/)
74+
* [PICkit3 Documentation](https://www.microchip.com/)
75+
* [Troubleshooting PICkit3 connection issues]
76+
977

1078

1179

0 commit comments

Comments
 (0)