TL;DR: code built in PIO does not run as expected.
I built a drum machine/sequencer using Teensy and VS1053 which I am now trying to move to Daisy Seed. The new code is here: GitHub - ukmaker/BassMate
My issue is that the code so far (which does nothing useful yet) works in Arduino IDE, but in PlatformIO it does not. Specifically
it runs more slowly
after the first time the I2C input device is sampled that code somehow creates a fault and never runs again
Additionally, it is impossible to create a new Arduino project using PlatformIO which either builds correctly or can be debugged using PlatformIO. I can add some defines to platformio.ini to make it build, but to debug I have to launch an ST-Link session from VSCode directly. I get the same results on Windows and Mac.
Anyone know how to get PlatformIO to work? I could really do with having the debugger work!
8 days ago platform-ststm32 was updated to support core 2.2.0. Can you do a CLI → pio platform update ststm32 and rebuild the project, and make sure that the PLATFORM version in the output is 15.3.0?
and looking at i2c_master_write the local tickstart will be stuck at one value between pause/unpause - i.e. it looks like the underlying timer has stopped for some reason
That’s weird, remove the C:\Users\<user>\.platformio folder, then it should 100% be clean and recovered after a VSCode restart. Or it’s the C:\Users\<user>\.platformio\.cache folder.
o_O That can’t be. If you uninstalled the PlatformIO VSCode extension, removed the .platformio folder, reinstalled the VSCode extension you should be back to a clean PlatformIO installation that can at least build an Arduino Uno blinky firmware.
In your Arduino IDE, can you go File → Preferences → Tick “Verbose Compilation” + “Verbose Upload”, then recompile the sketch. (Might need cleaning out %TEMP% files to trigger rebuild).
Then copy all compiler output in a textfile and upload it somewhere (pastebin.com, github,…).