My Board Flashing ScriptΒΆ

This is the script I used to flash the board. It was run from ports/stm32 in the Micropython source tree (GitHub Link)

It makes use of an initial filesystem I created by copying the files to a board, then dumping the relevant section of flash. I then used the fatlabel utility to relabel it as CCARD2020

I used an STLink V2 for the flashing.

#!/bin/bash

make BOARD=CHRISTMAS_CARD2020 deploy-openocd
openocd -f interface/stlink-v2.cfg -f target/stm32f4x_stlink.cfg -c "init" -c "reset halt"  -c "flash write_image erase init_fs.bin 0x8004000" -c "reset" -c "shutdown"