Patch SM - Arduino examples don't work. VS does work

Hi, thx for helping out.
I’ve bought the Patch.Init() panel with the Patch Submodule.
This works fine with web-uploaded code.
The Patch_SM reverb as well as the Audio_settings from the Patch_SM_gettingstarted worked fine.
Now I want to follow up with Arduino.

I’m familiar with Arduino for multiple years, but in this case I’m stuck and in need for help.
I’ve started with the windows store version 1.8.19, which I used for a long time.
As this didn’t worked I set up a clean portable version 1.8.19 instance with

  • added board manager in preference, and installed the stm32 boards
  • Installed the library
  • already installed the STM32Duino

In arduino ‘Tools’ menu I select
Board : STM32H7
Board part : Daisy Patch SM
Generic Serial
USB Support None
USB Speed Low/Full
Optimize Smallest-default
Debug Symbols None
C Runtime NewLibe Nano
Upload STM32Cube DFU

I’m able to upload code to the PatchSM board.
Flashing the blink program does blink the led on the Patch SM.
I can change the blink speed, so I’m sure I can upload different code.

Using the PatchSM Momentary_Switch example code:
Using the button on the front panel: PIN_PATCH_SM_B7
I can blink via LED_BUILTIN the LED on the patch sm board on the back
And via PIN_PATCH_SM_C1 the LED on the front of the patch.init() board
I’ve read on this forum, the LED_BUILTIN should point to the user LED (on the front).

I can upload any example, except, there is no audio.
Reading the LED_BUILTIN should light up the front panel LED, this steers me in the direction the pins are not correctly assigned or I selected a wrong board / part nr ?

Any help in how to proceed further is much appreciated

Using Visual Studio Code, the example code works perfect.
Big thanks to the Electro Smith wiki and companion YT video on how to set-up a development environment.

Does anyone use Arduino I wonder?

Hi @SPRK

I’m stuck at the same point. If I turn the audio on my output module ALL the way up and risk a listen in the headphones, I can barely hear the signal coming through. Shame that even the examples don’t work. I may need to switch to VS Code as well. Do you have a link to the YT video you mentioned?

EDIT: Found the answer! There’s a bug in DaisyDuino 1.6.0 and they fixed it with 1.6.1, but you have to update to it manually. Thread with download link is here: DaisyDuino no Audio - #10 by Pete

Find your arduino libraries and delete the existing DaisyDuino.
Rename DaisyDuino-Master.zip to DaisyDuino.zip
Then go to Sketch > Import Library > Zip and select the DaisyDuino.zip
Might need to restart Arduino IDE to use it.

1 Like