ok here is it
0. u'd need to figure out where your stm32duino STM core files lives on your setup.
1. I've attached the variant files that I'm using currently.
The files variant_BLACK_H743VITX.cpp and variant_BLACK_H743VITX.h should probably live in
Arduino_Core_STM32/variants/H742V(G-I)(H-T)_H743V(G-I)(H-T)_H750VBT_H753VI(H-T)
where your core is installed
2. next find and edit boards.txt (make a backup of it just in case you have to restore it).
search for an existing entry to copy e.g. this entry
Code: Select all
# Generic H743VITx
GenH7.menu.pnum.GENERIC_H743VITX=Generic H743VITx
GenH7.menu.pnum.GENERIC_H743VITX.upload.maximum_size=2097152
GenH7.menu.pnum.GENERIC_H743VITX.upload.maximum_data_size=524288
GenH7.menu.pnum.GENERIC_H743VITX.build.board=GENERIC_H743VITX
GenH7.menu.pnum.GENERIC_H743VITX.build.product_line=STM32H743xx
GenH7.menu.pnum.GENERIC_H743VITX.build.variant=STM32H7xx/H742V(G-I)(H-T)_H743V(G-I)(H-T)_H750VBT_H753VI(H-T)
copy that and make a new set e.g.
Code: Select all
# Generic BLACK H743VITx
GenH7.menu.pnum.BLACK_H743VITX=Black H743VITx
GenH7.menu.pnum.BLACK_H743VITX.upload.maximum_size=2097152
GenH7.menu.pnum.BLACK_H743VITX.upload.maximum_data_size=524288
GenH7.menu.pnum.BLACK_H743VITX.build.board=BLACK_H743VITX
GenH7.menu.pnum.BLACK_H743VITX.build.product_line=STM32H743xx
GenH7.menu.pnum.BLACK_H743VITX.build.variant=STM32H7xx/H742V(G-I)(H-T)_H743V(G-I)(H-T)_H750VBT_H753VI(H-T)
GenH7.menu.pnum.BLACK_H743VITX.build.variant_h=variant_{build.board}.h
Note, I've not yet tested out this step as I'm using a Makefile, but I'd think it should be about there. You'd need to experiment with it.
It would be good to keep a backup of the updated boards.txt and the variant files as well, just in case a core update overwrite them.
3. restart Arduino IDE, search for the board, make a blink sketch etc and test
Code: Select all
void setup() {
pinMode(LED_BUILTIN,OUTPUT);
}
void loop() {
digitalToggle(LED_BUILTIN);
delay(1000);
}
I installed the sketch/firmware using the on-chip USB DFU bootloader (press both reset and boot0, hold boot0 and release reset, release boot0 1 sec later). Then use something like stm32cubeprogrammer or dfu-util to install it. It probably 'just works' from within the Arduino IDE.
oh and clone this repository, WeAct is nice to collect the relevant stuff and documents and put it there. The schematics are there too.
https://github.com/WeActTC/MiniSTM32H7xx
for more 'formal' purpose, this board should probably be named after WeAct and their name for it MiniSTM32H743VI etc. For now I'd just call it 'black'
this is a good board, maybe it is the new black
oh and for these variant files, I've not checked everything in there, it is a 'fork' of the generic variant in the same directory.
I added clock configs that use HSE the onboard 25 MHz crystal, this is kind of 'alpha' or 'beta' codes till more people try it out.