mcauser / MCUDEV_DEVEBOX_F407VGT6

MicroPython board definition for the MCUDev DevEBox STM32F407VGT6 board
MIT License
68 stars 32 forks source link

Can I build CircuitPython with MCUDEV_DEVEBOX_F407VGT6? #4

Open water5 opened 4 years ago

water5 commented 4 years ago

I try to flash CircuitPython STM32F407 Discovery kit firmware https://downloads.circuitpython.org/bin/stm32f4_discovery/en_US/adafruit-circuitpython-stm32f4_discovery-en_US-5.3.1.bin to MCUDEV_DEVEBOX_F407VGT6 (use same STM32F407VGT6), use ST-Link SWD interface write to 0x08000000, or generate .dfu file from adafruit-circuitpython-stm32f4_discovery-en_US-5.3.1.bin with address 0x08000000 (use dfu file manager), and use DfuSeDemo to upgrade the .dfu firmware, but it not work, please give some suggestion to build and run CircuitPython on MCUDEV_DEVEBOX_F407VGT6 .

reppad commented 3 years ago

My comment may come a little late, I just discovered this repo, but it's better late than never !

Although the microcontroller is the same, the boards are different, notably the pinout and the on-board peripherals (HSE oscillator, SPI flash, LEDs...). This means that it is not possible to use the STM32F4DISCOVERY firmware for the MCUDEV_DEVEBOX_F407VGT6 board.

The good news is that the port for this microcontroller already exists so you just have to write the board definition (the equivalent of this repo, but for CircuitPython instead of MicroPython).

And as often with Adafruit, there is a doc for that: https://learn.adafruit.com/how-to-add-a-new-board-to-circuitpython

If you start from a copy of the STM32F4DISCOVERY board definition, you will therefore need to

Since CircuitPython is a fork of MicroPython, there will probably be some useful code to get here.