There are different cheap but powerful Chinese development boards with different STM32H7 chips.
- STM32H750VBT6 - 128K flash
- STM32H743VIT6 - 2048K flash
I recommend to use the STM32H743VIT6 with 2MB of flash memory. Please note that this is still only half of what you get with an ESP32 but you get an SD drive and 8MB SPI/QSPI Flash!
The STM32H7XX processors are based on the 32-bit Arm Cortex®-M7 core, running at up to 600 MHz. They have plenty of RAM and Flash Memory and have a FPU for fast double-precision floating calculations. In addition you also have plenty of pins (> 88) available!
I am not a big fan of the STM Cube IDE and find the approach of using generated code a bit "retro". Fortunately we can use Arduino. Because this not well documented, I am taking the oppurtunity to demonstrate how to use them with Arduino:
- Install Arduino (if not already done)
- Install the STMDuino Arduno Core
- Install the STMCubeProgrammer: This is needed to upload the compiled sketch
-
Common Arduino example sketches Flash, qspi, SD...
-
WeAct specific example Arduino sketches LED, buttons
-
Board specific example Arduino sketches LED, buttons
You can upload your sketch w/o any additional programmer:
- Connect the microcontroller with your computer via the USB cable
- Set the microcontroller into ISP mode: e.g. by connecting the BTO with the 3.3V pin
- In Arduino
- Select the Board "Generic STMH7 Series"
- in -> Tools -> Board Part Number select your board: e.g. DevEBox...
- in -> Tools -> Upload Method: Select DFU. This will use the USB cable
- in -> Tools -> USB Support - CDC generic supercedes Usart
- in -> Tools -> Usart Support - Enabled (generic serial)
With the help of these settings you will be able the to see the output of Serial.println() in the Arduino Serial Monitor.
You are ready now to compile and upload the sketch the regular way. Remove the connection between BTO and 3.3V and reboot.
I recommend to use a ST-Link Programmer: This allows you debug your code and you do not need to bother with the ISP mode, because this is handled automatically.
- Connect the GND, 3.3V, DIO and CLK pins from the board with the corresponging pins on the programmer
- In Arduino
- Select the Board "Generic STMH7 Series"
- in -> Tools -> Board Part Number select your board: e.g. DevEBox...
- in -> Tools -> Upload Method: Select SWD
- in -> Tools -> USB Support - CDC generic supercedes Usart
- in -> Tools -> Usart Support - Enabled (generic serial)
You are now ready to compile and upload the sketch the regular way. Please note that you still need the USB connection to see the Serial output!
- STM32H750VB on st.com
- STM32H750VBTx Pins
- STM32H743VI on st.com
- STM32H743VIT6 Pins
- STM32H7XX_M schematics
- External Loader
Licensed under the MIT License.