Mbed OS support for VK mbed boards
custom-targets.json
)
VK Custom Targets
come as library. It can easily be installed with mbed CLI
- Get Mbed OS >_
mbed new <Project name>
- Update to supported Mbed OS version: (
mbed-os-6.12.0
)- >_
cd <Project name>\mbed-os
- >_
mbed update <mbed-os-x.x.x>
- >_
cd ..
- >_
- Get Custom Targets lib >_
mbed add https://github.com/Vekatech/mbed-vk-boards
- Patch Mbed OS >_
mbed-vk-boards\patch\patch.py
- Get Mbed OS >_
mbed-tools new <Project name>
- Update to supported Mbed OS version: (
mbed-os-6.12.0
)- >_
cd <Project name>
- >_
git -C mbed-os checkout <mbed-os-x.x.x>
- >_
- Get Custom Targets lib >_
mbed-tools import https://github.com/Vekatech/mbed-vk-boards
- Create lib file >_
echo https://github.com/Vekatech/mbed-vk-boards> mbed-vk-boards.lib
- Create lib file >_
- Patch Mbed OS >_
mbed-vk-boards\patch\patch.py
- Modify the CMakeLists.txt file:
- Open project's ROOT
CMakeLists.txt
- Insert
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/mbed-vk-boards)
after theadd_subdirectory(${MBED_PATH})
line - Save the
CMakeLists.txt
file.
- Open project's ROOT
Go to the project's DIR >_ cd /D <Project path>
- CLI 1 >_
mbed compile --custom-targets mbed-vk-boards -t <toolchain> -m <VK board>
12 - CLI 2 >_
mbed-tools compile --custom-targets-json mbed-vk-boards\custom_targets.json -t <toolchain> -m <VK board>
12
Go to the project's DIR >_ cd /D <Project path>
- CLI 1 >_
mbed export --custom-targets mbed-vk-boards -i e2studio -m <VK board>
2 - CLI 2 >_
N/A
Any mbed example program
available for a given <VK board>
is (& will be) uploaded in demos
folder. If no <Example name>
is specified, Demo
name will be extraced by deffault. The CLI tool can work with one example program at a time, so you have to specify what demo for which board to be extracted.
Full Demo descriptions and more info about Bords manufactured by Vekatech.Ltd can be found on their website.
Go to the project's DIR >_ cd /D <Project path>
- Extract >_
mbed-vk-boards\demos\extract.py <VK board> [<Example name>]
2