mcauser / BLACK_F407ZG

MicroPython board definition for the MCUDev Black STM32F407ZGT6 board
MIT License
28 stars 11 forks source link
micropython micropython-board stm32f4 stm32f407zg

MCUDev Black STM32F407ZGT6

MicroPython board definition files for the MCUDev black STM32F407ZGT6 dev board.

Brand: MCUDev

Markings: STM32F4XX STM32_F4XX V3.0 1606

Note: this is a variant of the MCUDev Black STM32F407ZET6 board. This board has a STM32F407ZG MCU instead of a STM32F407ZE and 1024 Kb of flash memory instead of 512 Kb.

board

board

You can buy one for around $22 AUD (Oct 2019) on AliExpress.

Build the firmware

Clone the board definitions to your MicroPython ports/stm32/boards folder.

cd micropython/ports/stm32/boards
git clone https://github.com/mcauser/BLACK_F407ZG.git

cd ..
make BOARD=BLACK_F407ZG

Flashing via DFU

This board can be flashed using DFU. To put the board in DFU mode, disconnect USB, set BOOT0 to ON by connecting pin BT0 to 3V3 and reconnect USB.

Now you can flash the board using USB with the command:

make BOARD=BLACK_F407ZG deploy

Once the upload is complete, disconnect USB, set BOOT0 to OFF by connecting pin BT0 to GND and reconnect USB.

Alternatively, you can use the MicroPython command pyb.bootloader() to get into DFU mode without needing to use the switch.

Currently, you need to unplug and replug the board in order to switch from DFU mode back to regular mode.

Accessing the board

Once built and deployed, you can access the MicroPython REPL (the Python prompt) via USB serial.

screen /dev/tty.usbmodem1422 115200
# or
screen /dev/ttyACM0 115200

Specifications

Exposed Port Pins

Peripherals

TFT (J6)

SPI Flash W25Q16 (U3)

JTAG/SWD debug (J1)

ISP (J5)

USB (J4)

Micro SD (U5)

NRF24L01 (J8)

User Button (K0)

User Button (K1)

User Button (WK_UP)

User LED (D1)

User LED (D2)

Battery (Q1)

SDRAM (U2)

Links

Related boards

License

Licensed under the MIT License.