项目介绍

dukeduck1984/BORINGTECH_STM32H743VIT6 是一个托管在 GitHub 上的开源项目,主要使用 C 编写,目前获得 8 个 Star、6 次 Fork。

仓库全名
dukeduck1984/BORINGTECH_STM32H743VIT6
Star 数
8
Fork 数
6

README 摘要

BoringTECH STM32H743VIT6 Board Definition for MicroPython Build the Firmware Install the dependencies Clone the official MicroPython repo Build cross compiler Create a folder under ports/stm32/boards/, e.g. ports/stm32/boards/BORINGTECHSTM32H743 Copy the definition files to the above folder Back to path ports/stm32 Build the firmware with command make BOARD=BORINGTECHSTM32H743 See here and here Flash the Firmware…

完整内容见 GitHub 原始 README 或本页 。

常见问题

BORINGTECH_STM32H743VIT6 用什么语言开发?

主要使用 C 编写,目前有 8 个 Star。

如何获取 BORINGTECH_STM32H743VIT6 的源码?

可以直接克隆仓库:git clone https://github.com/dukeduck1984/BORINGTECH_STM32H743VIT6.git,默认分支为 master;安装与运行步骤见仓库 README。

BORINGTECH_STM32H743VIT6 最近还在维护吗?

仓库最近一次更新为 2021年1月21日,当前没有未关闭的 Issue;Star 数为 8,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Board definition for building MicroPython firmware for dev board Boring_TECH STM32H743VIT6

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
22
价值分
6
活跃状态
活跃

语言占比

C
Makefile

贡献者

README

Boring_TECH STM32H743VIT6 Board Definition for MicroPython

Build the Firmware

  • Install the dependencies
  • Clone the official MicroPython repo
  • Build cross compiler
  • Create a folder under ports/stm32/boards/, e.g. ports/stm32/boards/BORINGTECH_STM32H743
  • Copy the definition files to the above folder
  • Back to path ports/stm32
  • Build the firmware with command make BOARD=BORINGTECH_STM32H743
  • See here and here

Flash the Firmware

  • Install STM32CubeProgrammer
  • Keep pressing the BOOT button on the board, then connect the USB cable.
  • Release the BOOT button.
  • Click refresh button on the right panel of the STM32CubeProgrammer.
  • Select the port from the dropdown menu and click ‘Connect’.
  • Click ‘Open file’ tab to select the firmware.hex.
  • Click ‘Download’ to flash the firmware, wait until it finishes.
  • Press RST button on the board to reset.

Exposed Port Pins

  • PA0-PA15
  • PB0-PB15
  • PC0-PC13 (PC14 OSC32_IN and PC15 OSC32_OUT not broken out)
  • PD0-PD15
  • PE0-PE15

Peripherals

RGB LED - common anode, low active
  • LED_R: PC0
  • LED_G: PC1
  • LED_B: PC2
User Button
  • PC13
QSPI Flash W25Q64 (8MB)
  • QSPI_BK1_IO0: PD11
  • QSPI_BK1_IO1: PD12
  • QSPI_BK1_IO2: PE2
  • QSPI_BK1_IO3: PA1
  • QSPI_BK1_NCS: PB10
  • QSPI_CLK: PB2
SPI Flash W25Q64 (8MB) - not used in this definition
  • SPI2_CS: PB12
  • SPI2_SCK: PB13
  • SPI2_MISO: PB14
  • SPI2_MOSI: PB15
MicroSD Slot - there’s no card detect pin
  • SDMMC1_D0: PC8
  • SDMMC1_D1: PC9
  • SDMMC1_D2: PC10
  • SDMMC1_D3: PC11
  • SDMMC1_CK: PC12
  • SDMMC1_CMD: PD2
USB
  • USB_DM: PA11
  • USB_DP: PA12

Bus Pinouts

Dummy SD Card detect pin
SD_SW
PC3
UART
UART1 UART2 UART3 UART4 UART7 UART8
TX PA9 PD5 PD8 PD1 PE8 PE1
RX PA10 PD6 PD9 PD0 PE7 PE0
I2C
I2C1 I2C4
SCL PB6 PB8
SDA PB7 PB9
SPI
SPI1 SPI2 SPI4 SPI6
CS PA4 PB12 PE11 PA15
SCK PA5 PB13 PE12 PB3
MISO PA6 PB14 PE13 PB4
MOSI PA7 PB15 PE14 PB5
CAN - pins are same as UART4
CAN1
TX PD1
RX PD0

SD Card

The board does not have a “detect SD card present” pin. Manually write 0 to pyb.Pin.board.SD_SW to force pyb.SDCard().present() True.

>>> import pyb
>>> import os
>>> pyb.SDCard().present()
False
>>> from machine import Pin
>>> sd_sw = Pin(pyb.Pin.board.SD_SW, Pin.OUT)
>>> sd_sw.value()
0
>>> pyb.SDCard().present()
True
>>> sd_sw.value(1)
>>> pyb.SDCard().present()
False
>>> sd_sw.value(0)
>>> pyb.SDCard().present()
True
>>> os.mount(pyb.SDCard(), '/sd')
>>> os.listdir('/sd')
['bmp.py']

Put the SD card’s filesystem in the path list so Python scripts can be imported from the SD card.

>>> import sys
>>> sys.path
['', '/flash', '/flash/lib']
>>> sys.path.append('/sd')
>>> sys.path.append('/sd/lib')
>>> sys.path
['', '/flash', '/flash/lib', '/sd', '/sd/lib']

Reference

评论

暂无评论