- Install Visual Studio Code
- Type 'code' to run it
- Open
floatwheel
folder in Visual Studio Code - Install Keil Studio Pack extension 1
- Wait for Arm Tools to finish downloading / installing 23
- Activate Keil MDK Community license when prompted
- Open a terminal in Visual Studio Code
- Input
cpackget add LCM/HKMicroChip.HK32F030xMxx_DFP.1.0.17.pack
and press Enter/Return 4 - Use CMSIS tab to select target device and build / debug 5
- Install vcpkg
- Initialize it in the current shell
- Change to the
floatwheel
folder and install / activate the environment withvcpkg-shell activate
- Activate Keil MDK Community license with
armlm activate -product KEMDK-COM0 -server https://mdk-preview.keil.arm.com
- Install the microprocessor pack with
cpackget add LCM/HKMicroChip.HK32F030xMxx_DFP.1.0.17.pack
Steps 2 and 3 need to be performed in every new shell.
- Install Keil µVision 5 from https://armkeil.blob.core.windows.net/eval/MDK542a.exe
- Install the microprocessor pack at
LCM\HKMicroChip.HK32F030xMxx_DFP.1.0.17.pack
by double clicking it - Open µVision, click Project -> Open Project and choose
LCM\Project\MDK5\LCM_Light_Control_IO_WS2812_New.uvprojx
- Build the firmware with Project -> Batch Build 6
Build scripts are also included 7: LCM/build.sh
(Linux / Mac OS) LCM/build.bat
(Windows)
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.
Footnotes
-
This should be suggested automatically ↩
-
Located on the bottom bar, will show either Arm Tools: x or Installing...(xx%) ↩
-
This process takes quite some time. Check
Output -> Arm Tools
for details ↩ -
Try adding
~/.vcpkg/artifacts/2139c4c6/tools.open.cmsis.pack.cmsis.toolbox/2.8.0/bin/
to $PATH if you're having issues running cpackget ↩ -
.hex file located at
LCM/Project/MDK5/out/LCM_Light_Control_IO_WS2812_New/<device>
in Debug / Release folder ↩ -
.hex files located at
LCM\Project\MDK5\Objects\<target>.hex
↩ -
Only for VSCode and vcpkg installs ↩