I've been trying to get MicroPython to work on the NUCLEO-H743ZI ( https://www.st.com/b/en/evaluation-tool ... 743zi.html ). Unfortunately I'm not able to get a working REPL. Those are the steps performed:
Download/Build/Install the latest OpenOCD ( https://sourceforge.net/p/openocd/code/ ... 4038ab77c/ )
Code: Select all
git clone https://git.code.sf.net/p/openocd/code openocd
cd openocd/
./bootstrap
./configure
make -j8
sudo make install
Code: Select all
git clone https://github.com/micropython/micropython
cd micropython
make -C mpy-cross
cd ports/stm32
make BOARD=NUCLEO_H743ZI /* This step needs to be performed twice - due to linker errors on the first execution - probably the linker path not set correctly */
Code: Select all
source [find interface/stlink.cfg]
transport select hla_swd
source [find target/stm32h7x_dual_bank.cfg]
reset_config srst_only
proc stm_flash { BIN0 ADDR0 {BIN1 ""} {ADDR1 ""} } {
init
reset init
halt
adapter_khz 1000
sleep 100
flash write_image erase $BIN0 $ADDR0
sleep 100
verify_image $BIN0 $ADDR0
sleep 100
if {$BIN1 ne ""} {
flash write_image erase $BIN1 $ADDR1
sleep 100
verify_image $BIN1 $ADDR1
sleep 100
}
reset run
shutdown
}
Code: Select all
-OPENOCD_CONFIG ?= boards/openocd_stm32f4.cfg
+OPENOCD_CONFIG ?= boards/openocd_stm32h743.cfg
Code: Select all
make V=1 BOARD=NUCLEO_H743ZI deploy-openocd
Any insights/help appreciated.
Cheers, Alex