https://chocolatey.org/install
A
CHOCO INSTALATION
- start>cmd>right click>run asa admin
- powershell.exe
- Run
Get-ExecutionPolicy
. If it returnsRestricted
, then runSet-ExecutionPolicy AllSigned
orSet-ExecutionPolicy Bypass -Scope Process
. - Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
- Wait a few seconds for the command to complete.
https://zmk.dev/docs/development/setup/
B
- Type
choco
orchoco -?
now, or see Getting Started for usage instructions. - choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
choco install ninja gperf python git - choco install dfu-util
- (follow the steps in zmk dev above)
C
//Error 01: Failures
- dfu-util (exited 404) - Error while running 'C:\ProgramData\chocolatey\lib\dfu-util\tools\chocolateyInstall.ps1'.
See log for details.
Try choco install redis-64
Chocolatey installed 3/3 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
//error01 solved
----
D
Above all solved. Now::
- pip3 install -U west
//Error 02: WARNING: You are using pip version 21.1.3; however, version 21.2.4 is available.
You should consider upgrading via the 'c:\python39\python.exe -m pip install --upgrade pip' command.
upgrade as suggested:
c:\python39\python.exe -m pip install --upgrade pip
reference: https://stackoverflow.com/questions/38376422/choco-install-issue-with-chocolateyinstall-ps1-or-nuspec-file?rq=1
Successfully installed pip-21.2.4
//Error 02 solved.
E
- continue with above installation (ok)
- close Command Prompt and open a new session as a user for the remainder of the instructions.
F
- https://zmk.dev/docs/development/setup/#environment-variables
- Dont follow above, instead (as figure below). eg C:\Python39\Scripts
- Save the setting then open new cmd and close current one or
refreshenv.
G Tool chain installation
- https://zmk.dev/docs/development/setup/#environment-variables
- create a new folder under c
gnu_arm_embedded?
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm
https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.07/gcc-arm-none-eabi-10.3-2021.07win32/gcc-arm-none-eabi-10.3-2021.07-win32.exe
C:\gnu_arm_embedded\10 2021.07
Check whether correct
Windows
echo %ZEPHYR_TOOLCHAIN_VARIANT% gnuarmemb
echo %GNUARMEMB_TOOLCHAIN_PATH% C:\gnu_arm_embedded
set MY_VARIABLE=foo
H Gitclone to zmk
- cmd
- cd ZMK (built one folder for zmk already under c user)
- git clone https://github.com/zmkfirmware/zmk.git
I Initialize & Update Zephyr Workspace
Error 03 Unable to run west init -1 app/
>>restart
Run cmd
cd zmk
west init -l app/
downloading...
Error 03 Solved
- West update
- HEAD is now at 6934463 Preps for 1.7.0-rc1
HEAD is now at 6934463 Preps for 1.7.0-rc1 [done]
J export Zephyr and install Zephyr [ok]
Ends> proceed to building and flashing
https://zmk.dev/docs/development/build-flash