Code Monkey home page Code Monkey logo

vcc_gnd_f407ve's Introduction

VCC GND STM32F407VET6 Mini

MicroPython board definition files for the STM32F407VET6 Mini board from VCC-GND.

board

You can buy one for around $15 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/VCC_GND_F407VE.git

cd ..
make BOARD=VCC_GND_F407VE

Flashing via DFU

This board can be flashed using DFU. To put the board in DFU mode, disconnect USB, slide the BOOT0 DIP switch to the ON position (towards USB) and reconnect USB.

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

make BOARD=VCC_GND_F407VE deploy

Once the upload is complete, disconnect USB, slide BOOT0 back to the original position 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

  • STM32f407VET6 ARM Cortex M4
  • 168MHz, 210 DMIPS / 1.25 DMIPS / MHz
  • 1.8V - 3.6V operating voltage
  • 25MHz system crystal (NX5032GA)
  • 32.768KHz RTC crystal
  • AT24C08 I2C EEPROM 1024 Byte x 8, 400KHz
  • 2.54mm pitch pins
  • JTAG/SWD header
  • 512 KByte Flash, 192 + 4 KByte SRAM
  • 3x SPI, 3x USART, 2x UART, 2x I2S, 3x I2C
  • 1x FSMC, 1x SDIO, 2x CAN
  • 1x USB 2.0 FS / HS controller (with dedicated DMA)
  • 1x USB HS ULPI (for external USB HS PHY)
  • Micro SD
  • 1x 10/100 Ethernet MAC
  • 1x 8 to 12-bit Parallel Camera interface
  • 3x ADC (12-bit / 16-channel)
  • 2x DAC (12-bit)
  • 12x general timers, 2x advanced timers
  • RT9193-3.3V: 3.3V LDO voltage regulator, max current 300mA
  • Micro USB for power and comms
  • User LED (PB9)
  • 2x DIP switch for bootloader selection
  • Reset button
  • 2x18 side pins + 2x10 top pins + 1x4 debug pins
  • Dimensions: 49.53mm x 39.37mm

Modifications

This board has a 25MHz system crystal oscillator.

  • change HSE_VALUE from 8000000 to 25000000
  • change PLL_M from 8 to 25

Exposed Port Pins

  • PA0-PA15
  • PB0-PB15
  • PC0-PC15
  • PD0-PD15
  • PE0-PE15

Peripherals

AT24C08 8K EEPROM (U1)

  • 1 GND PRE
  • 2 GND NC
  • 3 GND E
  • 4 GND
  • 5 PB7 SDA
  • 6 PB6 SCL
  • 7 GND MODE
  • 8 3V3 VCC

SWD debug (P4)

  • 1 GND
  • 2 PA14 SWCLK
  • 3 PA13 SWDIO
  • 4 3V3 VCC

USB (U3)

  • 1 VCC 5V
  • 2 PA11 USB_DM
  • 3 PA12 USB_DP
  • 4 GND ID
  • 5 GND

Micro SD

  • 1 PC10 SDIO_D2
  • 2 PC11 SDIO_D3
  • 3 PD2 SDIO_CMD
  • 4 3V3
  • 5 PC12 SDIO_SCK
  • 6 GND
  • 7 PC8 SDIO_D0
  • 8 PC9 SDIO_D1
  • 9 GND
  • 10 PA8 SW1

User LED

  • PB9 LED0

Links

Related boards

License

Licensed under the MIT License.

vcc_gnd_f407ve's People

Contributors

dhylands avatar mcauser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vcc_gnd_f407ve's Issues

MicroSD inserted on boot crashes

The same 4GB MicroSD card when inserted into a PyBoard mounts the SD on boot.

Should be using same PA8 as with the PyBoard.
https://github.com/mcauser/VCC_GND_F407/blob/master/mpconfigboard.h#L111
https://github.com/micropython/micropython/blob/master/ports/stm32/boards/PYBV10/mpconfigboard.h#L92

>>> import machine
>>> a8 = machine.Pin('A8')
>>> print(a8)
Pin(Pin.cpu.A8, mode=Pin.IN, pull=Pin.PULL_UP)
>>> a8.value()
1
# Insert MicroSD
>>> a8.value()
0
# Remove MicroSD
>>> a8.value()
1
>>> import os
>>> os.listdir()
['main.py', 'pybcdc.inf', 'boot.py']
>>> os.listdir('/sd')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 19] ENODEV
>>> os.listdir('/')
['flash']
>>> os.listdir('/flash')
['main.py', 'pybcdc.inf', 'boot.py']

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.