Skip to content

Commit 003b74b

Browse files
committed
updted content of compile software
1 parent d3ea703 commit 003b74b

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

how-tos/compile_software.md

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

9+
# Compiling the Software
10+
11+
## Overview
12+
13+
This guide explains how to compile the software for the PIC18F67J94 microcontroller using PIC C CCS v5.050. Note that previous BIRDS projects have used v5.076, so compatibility differences may exist.
14+
15+
## Before you start
16+
17+
Before compiling the software, ensure:
18+
19+
* You have installed PIC C CCS v5.050 (or an alternative compatible version).
20+
* The source code is available and properly configured.
21+
* The necessary compiler settings are adjusted for your specific board.
22+
23+
## Compiling the Software
24+
25+
1. **Open the PIC C CCS Compiler**
26+
27+
Launch the CCS Compiler software and ensure your project directory is accessible.
28+
29+
2. **Load the Project File**
30+
31+
- Navigate to `File > Open Project`.
32+
- Select the `.prj` file corresponding to your board.
33+
34+
3. **Verify Compiler Settings**
35+
36+
- Ensure the correct microcontroller (`PIC18F67J94`) is selected.
37+
- Check that the compiler is set to the correct optimization and warning levels.
38+
- Confirm the include paths and library dependencies are correctly configured.
39+
40+
4. **Make Necessary Code Modifications**
41+
42+
If specific board settings need to be changed, update the following sections in the code:
43+
44+
```c
45+
// Example: Define board-specific configurations
46+
#define BOARD_VERSION "v1.0"
47+
#define USE_EXTERNAL_CLOCK 1
48+
```
49+
50+
5. **Compile the Code**
51+
52+
- Click on `Compile` or use the shortcut (`Ctrl + F9`).
53+
- The compiler will process the files and generate the necessary binaries.
54+
55+
6. **Check for Errors and Warnings**
56+
57+
- If there are errors, review the error messages and adjust the code accordingly.
58+
- Warnings should be noted but may not always require changes.
59+
60+
7. **Verify the Output Files**
61+
62+
After a successful compilation, confirm the following output files are generated:
63+
64+
- `.hex` file (for flashing onto the microcontroller)
65+
- `.lst` file (assembly listing)
66+
- `.sym` file (symbol table)
67+
68+
## See also
69+
70+
* [Flashing the Software onto the Microcontroller](flashing_software.md)
71+
* [Writing the Board-Specific Software File](writing_board_software.md)
72+
* [PIC C CCS Documentation](https://www.ccsinfo.com/)
73+
974

1075

1176

0 commit comments

Comments
 (0)