openmv_h7_bsp

Crates.ioopenmv_h7_bsp
lib.rsopenmv_h7_bsp
version0.1.2
sourcesrc
created_at2020-08-05 01:35:07.536604
updated_at2020-09-16 16:28:20.044897
descriptionBoard support crate for OpenMV H7 machine vision board
homepage
repositoryhttps://github.com/tstellanova/openmv_h7_bsp
max_upload_size
id273076
size59,863
Todd Stellanova (tstellanova)

documentation

README

openmv_h7_bsp

A board support package for experimenting with rust on the OpenMV H7 open hardware machine vision board.

Embedded Examples

The examples are designed to be used with a debug probe that supports J-Link / RTT. We provide a couple different ways to run these:

  • With the Segger tools (this is the default configuration for examples)
  • With probe-run (This may not yet work.)

With probe-run installed

  • Simply run the example (see below) with a JLink debug probe attached to your PX4FLOW
  • If you have problems, edit config to ensure that the probe-run runner is selected

With segger tools installed

  • Edit config to select the segger.gdb runner
  • In one shell run: ./start_gdb_server_jlink.sh
  • In another shell run: JLinkRTTClient
  • Then run your choice of examples

Running examples

cargo run  --example blinky 
cargo run  --example play --features  rttdebug,mt9v034

Status

This is work-in-progress

  • Interoperates with the default Micropython bootloader. You can reinstall the micropython firmware easily via USB from the OpenMV IDE.
  • Debug build runs on board
  • Example with LED blinky
  • Support for running examples with probe-run (WIP)
  • Camera reading example
  • SDIO card support

Clocks

  • 12 MHz high speed external (HSE) clock crystal

  • LSE TBD

Notes on buses

I2C Buses

Format: (SCL, SDA)

  • (PB8, PB9) I2C1 is used for configuring camera sensor
  • Other i2c TBD

SPI Buses

Format: (SCK, MISO, MOSI)

  • TBD

GPIO

  • TBD

USB OTG

  • TBD

LEDs

  • LEDs r,g,b = PC0, PC1, PC2 on OpenMV H7
  • IR led on PE2

UARTs / USARTs

Format: (RX, TX) , (CTS, RTS)

  • TBD

DCMI (Parallel Camera Data Interface)

  • Control pins: PA6 (DCMI_PIXCK), PA4 (DCMI_HSYNC), PB7 (DCMI_VSYNC)
  • Data Pins D0-D7: PC6, PC7, PE0, PE1, PE4, PB6, PE5, PE6
  • External clock provided to camera on PA8. This is required to enable the camera.

External Accessories Support

  • TBD

Resources

License

BSD-3-Clause, see LICENSE file.

Commit count: 12

cargo fmt