Maixduino - Building PlatformIO VSCode - Blink Example Fails

Fresh install of plugin - restart VS Code

From PlatformIO Home page in VS code.
Clicked New Project and added project name
Selected Board Sipeed MaixDuino
Selected Framework Kendryte Standalone SDK
Untick Location Use default
Select new location

Click Finish - fails with this
KeyError: “Invalid board option ‘upload.slow’”:

PIO Core Call Error: “The current working directory S:\VSCode\maixduino\Blinker will be used for the project.\r\n\r\nThe next files/directories have been created in S:\VSCode\maixduino\Blinker\r\ninclude - Put project header files here\r\nlib - Put here project specific (private) libraries\r\nsrc - Put project source files here\r\nplatformio.ini - Project Configuration File\r\n\n\nError: Processing sipeed-maixduino (platform: kendryte210; board: sipeed-maixduino; framework: kendryte-standalone-sdk)\r\n--------------------------------------------------------------------------------\r\nTool Manager: Installing platformio/framework-kendryte-standalone-sdk @ ~0.5.6\r\nTool Manager: framework-kendryte-standalone-sdk @ 0.5.6 has been installed!\r\nVerbose mode can be enabled via -v, --verbose option\r\nCONFIGURATION:\r\nPLATFORM: Kendryte K210 (1.2.4+sha.e41ccf6) > Sipeed MAIXDUINO\r\nHARDWARE: K210 400MHz, 6MB RAM, 16MB Flash\r\nDEBUG: Current (iot-bus-jtag) External (iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, sipeed-rv-debugger, tumpa)\r\nPACKAGES: \r\n - framework-kendryte-standalone-sdk 0.5.6 \r\n - toolchain-kendryte210 8.2.0\r\nLDF: Library Dependency Finder →\r\nLDF Modes: Finder ~ chain, Compatibility ~ soft\r\nFound 0 compatible libraries\r\nScanning dependencies…\r\nNo dependencies\r\nBuilding in release mode\r\nKeyError: “Invalid board option ‘upload.slow’”:\r\n File “C:\Users\marcu.platformio\penv\Lib\site-packages\platformio\builder\”, line 177:\r\n env.SConscript(”$BUILD_SCRIPT")\r\n File “C:\Users\marcu.platformio\packages\tool-scons\scons-local-4.1.0\SCons\Script\”, line 591:\r\n return _SConscript(self.fs, *files, **subst_kw)\r\n File “C:\Users\marcu.platformio\packages\tool-scons\scons-local-4.1.0\SCons\Script\”, line 280:\r\n exec(compile(scriptdata, scriptname, ‘exec’), call_stack[-1].globals)\r\n File “C:\Users\marcu.platformio\platforms\kendryte210\builder\”, line 108:\r\n “-S” if board.get(“upload.slow”) else “”\r\n File “c:\users\marcu.platformio\penv\lib\site-packages\platformio\platform\”, line 59:\r\n raise KeyError(“Invalid board option ‘%s’” % path)\r\n========================== [FAILED] Took 2.93 seconds =========================="

Known error and fixed by PR Default the value of upload.slow to avoid build error by mikljohansson · Pull Request #39 · sipeed/platform-kendryte210 · GitHub, needs to be merged by Sipeed people.

Try modifying the platformio.ini to say

upload.slow = no

instead of having no value, then do a rebuild.


Thanks for the reply. I added that to my platformio.ini

platform = kendryte210
framework = arduino
board = sipeed-maixduino
monitor_speed = 115200
upload_port = COM6
upload.slow = no

But it’s saying that the option is an unknown config option
Warning! Ignore unknown configuration option upload.slow in section [env:sipeed-maixduino]
Processing sipeed-maixduino (platform: kendryte210; framework: arduino; board: sipeed-maixduino)

And the error is the same
Building in release mode
KeyError: “Invalid board option ‘upload.slow’”:

The error is the same with no entry for upload.slow, and when I set it to =no.

I noticed I also have some warnings in VS Code, maybe I have the wrong kendryte sdk version ? These folders are in git at the tip, but my local doesnt have them


My bad, it must be board_upload.slow = no. Also try deleting the line entirely.