Building a MIDI controller with SMT32F1
Posted: Wed Feb 10, 2021 11:51 am
Hi
First post here, so hi everybody!
I have designed a MIDI controller that works fine with a Teensy (ARM based).
I decided to go beyond the prototype stage, and go into production (that'll probably go through a Kickstarter). I thought a SMT32 would be more convenient and more future proof for that. So I got myself a BLue Pill with an STM32F1C8 and a StLink and I could port some of my code to the STM32. Now I have a few basic questions that I'm not sure about:
- I want my device to be recognized as a USB MIDI controller. I managed to do that with the USB Composite library, but then some of the methods/libraries I use don't compile anymore because I have to use Maple. I'm not too sure what I'm doing here, and I don't know if there are workarounds. Is there an "easy" way to have USB MIDI and Arduino code ?
- let's say I go into mass production. Do I need to add a SWD connector to my PCB in order to program the MCU, or can it be done directly through USB?
- I'd like my product to remain "Open Source", so that people with Arduino skills could program it on their own, a bit like a Teensy. What would be the way to do this ?
The 3 questions are a bit linked to each other, I hope you can get the picture. What I am trying to do is actually kind of reproduce the behavior of a Teensy with an STM32.
First post here, so hi everybody!
I have designed a MIDI controller that works fine with a Teensy (ARM based).
I decided to go beyond the prototype stage, and go into production (that'll probably go through a Kickstarter). I thought a SMT32 would be more convenient and more future proof for that. So I got myself a BLue Pill with an STM32F1C8 and a StLink and I could port some of my code to the STM32. Now I have a few basic questions that I'm not sure about:
- I want my device to be recognized as a USB MIDI controller. I managed to do that with the USB Composite library, but then some of the methods/libraries I use don't compile anymore because I have to use Maple. I'm not too sure what I'm doing here, and I don't know if there are workarounds. Is there an "easy" way to have USB MIDI and Arduino code ?
- let's say I go into mass production. Do I need to add a SWD connector to my PCB in order to program the MCU, or can it be done directly through USB?
- I'd like my product to remain "Open Source", so that people with Arduino skills could program it on their own, a bit like a Teensy. What would be the way to do this ?
The 3 questions are a bit linked to each other, I hope you can get the picture. What I am trying to do is actually kind of reproduce the behavior of a Teensy with an STM32.