NIIET K1921VK: development platform for PlatformIO
- Install PlatformIO
- Click "PlatformIO Core CLI" from VSCode PlatformIO Panel -> Quick Access -> Miscellaneous.
Enter install command:
pio pkg install -g -p https://github.com/tms320/pio_platform_k1921vk - Create PlatformIO project and configure a platform option in platformio.ini file:
[env:stable]
platform = k1921vk
framework = k1921vk_sdk
board = ...
...
platformio.ini example:
[platformio]
default_envs = release, debug
[env]
platform = k1921vk
board = kfdl441546
framework = k1921vk_sdk
board_build.f_ext = 12000000L # OSECLK_VAL
board_build.clk_select = pll #pll - SYSCLK_PLL , internal - SYSCLK_OSI , external - SYSCLK_OSE
debug_tool = stlink
upload_protocol = stlink
[env:release]
build_type = release
[env:debug]
build_type = debug
build_flags = -DRETARGET
board_build.f_ext
- frequency of external clock source (qurtz oscillator)board_build.clk_select
- select clock source for sysCLKpll
- define SYSCLK_PLL, pll use external clock source and set sysCLK to 100Mhz. pll mode supportsboard_build.f_ext
only with values: 8000000L, 12000000L, 16000000L, 20000000L, 24000000Linternal
- define SYSCLK_OSI, use internal clock source. K1921VK01T: 5 Mhz, K1921VK028: 16 Mhz, K1921VK035 8 Mhzexternal
- define SYSCLK_OSE, use external clock sourcecustom
- nothing define, you should configure clock by youself
debug_tool
- you can use for debugstlink
upload_tool
- you can use for uploadstlink