I tried the Onethinx Core dependencies pack for linux (GitHub - onethinx/VSCode_OnethinxPack_Linux) together with the minimalistic Hello World example (GitHub - onethinx/VSCode_HelloWorld: The Onethinx Hello World program for VSCode (needs OnethinxPack_yourOS))
I hit a few bumps on the road:
-
CMakeLists.txt
refers toCyMcuElfTool
, but on a case sensitive system like linux that should have beencymcuelftool
- I had to scratch my CMake kits file to get cmake to recognize the new compiler location
rm ~/.local/share/CMakeTools/cmake-tools-kits.json
- When I fired up the Device Configurator I hit the error shown in the screen shot below. Had to navigate to where I had installed the dependency pack
- It appears that the CLK_PERI is actually 8MHz even if the Device Configurator thinks it is 16MHz, resulting in some strange data rates. I changed CLK_PERI divider from 2 to 4 to get that right. Not sure I fully understand this.