It may seem pretty obvious but I can’t get it to work. I want to program my stm32f303k8 board with XOD. I found a post that mentioned a .json file from dandrown.org that can be placed in the extra.txt in the packages folder, so I tried that and it seemed to work, however my board was not among those defined in this file. So I had a look at the stm32duino github site and found this file: https://raw.githubusercontent.com/stm32duino/BoardManagerFiles/master/STM32/package_stm_index.json
which does contain my board (in fact both my ST boards) so I put that in extra.txt. Unfortunately xod didn’t like the file. I got this error
I forgot to mention there was already another source .json in the file, apparently for ESP8266 type boards. I don’t have any of those so I deleted it and left the STM32. Tried again and it worked this time. It seems XOD can’t handle two source .json files in extra.txt.
It seems the compile command is issued multiple times until the command buffer is full. The full output is in the attached file. XODoutputSTM21F303K8.txt (202.5 KB)
Not sure what’s occurring here…
Yeah I was kinda thinking it was a bit of a stretch for XOD to support Teensy. Arduino does but I know the Teensy devs had to do some pretty dramatic stuff to get it to work in the Arduino IDE. Still, always worth asking the question.
Speaking of that is there any eta for sorting out stm32 boards and xod? I’ve got two, a stm32f303k8 (Nano compatible) and a stm32f401re. I’ve tried the dan drown library, and the one @cesars recommended, but neither work. They both cause a “max buffer size” error.
It looks like an old bug of arduino-cli, which is used inside XOD to install tools, compile and upload sketches. We have to update it and I hope we’ll do so in the next release.
Until then you can get the generated code (Main Menu: Deploy -> Show Code for Arduino) and copy it to the Arduino IDE. Notice, that tweaks and watches wont work