Basic example showing how Kotlin Native can be used with Zephyr RTOS on an STM32F4 Discovery board.
- Linux or OSX (untested) environment.
- This project assumes that you have installed the Zephyr SDK and cloned the Zephyr GIT repository. Instructions can be found on the Zephyr Website. Note that it is not necessary for this project to export the environment variables.
- Update the paths in
local.properties
as appropriate for your install and repository clone. - Run the
fullBuild
task - With you board board powered up and connected to your computer, execute the
flashBoard
task to program.
NOTE: Due to the beta status of kotlin-native, this may break in the future (I will try and keep it current) and the task execution does take a while as there have been no substantial optimization efforts yet for the kotlin-native tools.