Skip to content

Commit 1e81a43

Browse files
committed
add vcpkg and µVision build instructions
1 parent 31f2d64 commit 1e81a43

File tree

1 file changed

+34
-15
lines changed

1 file changed

+34
-15
lines changed

README.md

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,48 @@
11
# Floatwheel LCM Firmware
22

3-
#### Linux Prerequisites
4-
5-
1. Install `libncurses5` and 'curl' via your package manager of choice
6-
73
## Setting up the project
84

5+
### Using VSCode
6+
97
1. Install [Visual Studio Code](https://code.visualstudio.com)
10-
1. Type 'code' to run it
11-
1. Open `floatwheel` folder in Visual Studio Code
12-
1. Install [Keil Studio Pack](https://marketplace.visualstudio.com/items?itemName=Arm.keil-studio-pack) extension [^1]
13-
1. Wait for Arm Tools to finish downloading / installing [^2][^3]
14-
1. Activate Keil MDK Community license when prompted
15-
1. Open a terminal in Visual Studio Code
16-
1. Input `cpackget add LCM/HKMicroChip.HK32F030xMxx_DFP.1.0.17.pack` and press Enter/Return [^4]
17-
1. Use CMSIS tab to select target device and build / debug[^5]
8+
2. Type 'code' to run it
9+
3. Open `floatwheel` folder in Visual Studio Code
10+
4. Install [Keil Studio Pack](https://marketplace.visualstudio.com/items?itemName=Arm.keil-studio-pack) extension [^1]
11+
5. Wait for Arm Tools to finish downloading / installing [^2][^3]
12+
6. Activate Keil MDK Community license when prompted
13+
7. Open a terminal in Visual Studio Code
14+
8. Input `cpackget add LCM/HKMicroChip.HK32F030xMxx_DFP.1.0.17.pack` and press Enter/Return [^4]
15+
9. Use CMSIS tab to select target device and build / debug [^5]
1816

1917
![Example build environment](./Docs/lcm-arm-cmsis-vscode.jpg "Example build environment")
2018

21-
Build scripts are also included: `LCM/build.sh` (Linux / Mac OS) `LCM/build.bat` (Windows)
19+
### Using vcpkg
20+
21+
1. Install [vcpkg](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/vcpkg-tool-installation/installation/)
22+
2. Initialize it in the current shell
23+
3. Change to the `floatwheel` folder and install / activate the environment with `vcpkg-shell activate`
24+
4. Activate Keil MDK Community license with `armlm activate -product KEMDK-COM0 -server https://mdk-preview.keil.arm.com`
25+
5. Install the microprocessor pack with `cpackget add LCM/HKMicroChip.HK32F030xMxx_DFP.1.0.17.pack`
26+
27+
Steps 2 and 3 need to be performed in every new shell.
28+
29+
### Using Keil µVision
30+
31+
1. Install [Keil µVision 5](https://www.keil.arm.com/mdk-community/) from https://armkeil.blob.core.windows.net/eval/MDK542a.exe
32+
2. Install the microprocessor pack at `LCM\HKMicroChip.HK32F030xMxx_DFP.1.0.17.pack` by double clicking it
33+
3. Open µVision, click Project -> Open Project and choose `LCM\Project\MDK5\LCM_Light_Control_IO_WS2812_New.uvprojx`
34+
4. Build the firmware with Project -> Batch Build [^6]
35+
36+
## Batch building
37+
38+
Build scripts are also included [^7]: `LCM/build.sh` (Linux / Mac OS) `LCM/build.bat` (Windows)
2239

23-
They build firmware for all 4 configurations, then copy the created `<device>.hex` files into the `LCM` directory. The intention is to use them when releasing new versions until a future solution is reached.
40+
They build firmware for all 5 configurations, then copy the created `lcm_<device>.hex` files into the `LCM` directory. The intention is to use them when releasing new versions until a future solution is reached.
2441

2542
[^1]: This should be suggested automatically
2643
[^2]: Located on the bottom bar, will show either Arm Tools: x or Installing...(xx%)
2744
[^3]: This process takes quite some time. Check `Output -> Arm Tools` for details
28-
[^4]: Try adding `~/.vcpkg/artifacts/2139c4c6/tools.open.cmsis.pack.cmsis.toolbox/2.6.1/bin/` to $PATH if you're having issues running cpackget
45+
[^4]: Try adding `~/.vcpkg/artifacts/2139c4c6/tools.open.cmsis.pack.cmsis.toolbox/2.8.0/bin/` to $PATH if you're having issues running cpackget
2946
[^5]: .hex file located at `LCM/Project/MDK5/out/LCM_Light_Control_IO_WS2812_New/<device>` in Debug / Release folder
47+
[^6]: .hex files located at `LCM\Project\MDK5\Objects\<target>.hex`
48+
[^7]: Only for VSCode and vcpkg installs

0 commit comments

Comments
 (0)