Difference between pages "BPI-Leaf-S3 开发板" and "StarFive VisionFive JH7100 RISC-V Single Board Computer"

From Banana Pi Wiki
(Difference between pages)
Jump to: navigation, search
(MicroPython 开发)
 
(=References)
 
Line 1: Line 1:
[[en:BPI-Leaf-S3]]
+
=Introduction=
 +
[[File:VisionFive_risc-v_sbc_1.jpg|thumb|[[StarFive VisionFive JH7100 RISC-V Single Board Computer]]]]
 +
[[File:VisionFive_risc-v_sbc_interface_4.jpg|thumb|[[StarFive VisionFive JH7100 RISC-V Single Board Computer]]]]
  
= 开发板介绍 =
+
[[File:BPI-K210_1.JPG|thumb|[[BPI-K210 RISC-V AIoT board]] for AIoT design]]
 +
[[File:BPI-AI_1.JPG|thumb|[[BPI-AI]] Kendryte K210 RISC-V]]
 +
[[File:BPi-QCar_1.jpg|thumb|[[BPI Q-Car kit]] with BPI:AI board]]
  
[[File:Leaf-S3-incline-front.jpg|thumb|[[BPI-Leaf-S3]] with ESP32-S3]]
 
  
[[File:Leaf-S3-incline-back.jpg|thumb|[[BPI-Leaf-S3]] with ESP32-S3]]
+
[[File:VisionFive_risc-v_sbc_3.jpg]]
  
香蕉派Leaf系列是专为物联网设计的低功耗微控制器。
+
StarFive VisionFive JH7100 is world‘s first generation of affordable RISC-V boards designed to run Linux. Based on RISC-V architecture, VisionFive pushes open-source to the next level and gives developers more freedom and power to innovate and design industry-leading solutions. This is not an official development board for the Banana Pi community, but the Banana Pi open Source community and StarFive work closely together to advance risC-V open source hardware.
  
此款Leaf-S3板载的ESP32-S3芯片搭载 Xtensa® 32 位 LX7 双核处理器,主频高达 240 MHz。
+
VisionFive is the first generation of affordable RISC-V computers designed to run Linux. It is fully open-source with open-source software, open hardware design and RISC-V open architecture.It is powered by RISC-V SiFive U74 Dual-Core 64-bit RV64GC ISA SoC with 4GB/8GB LPDDR4 RAM variants and has rich I/O peripherals such as USB 3.0 ports, 40-pin GPIO header, Gigabit Ethernet Connector, Micro-SD card slot and much more.VisionFive also has rich AI features with Neural Network Engine and NVDLA Engine. It has onboard audio and video processing capabilities and has MIPI-CSI and MIPI-DSI connectors for video hardware. It has wireless capabilities with Wi-Fi and Bluetooth (BLE) and has a wide software compatibility including support for Fedora.
  
支持 2.4 GHz Wi-Fi 和低功耗蓝牙 (Bluetooth® LE) 双模无线通信,外围兼容低功耗硬件设计,深度睡眠模式下功耗仅为10uA。
+
=Features=
 +
* Truly open-source hardware, software and RISC-V open architecture
 +
* Powerful and rich AI features with Neural Network Engine and NVDLA Engine
 +
* Abundant I/O peripherals
 +
* Wireless connectivity with Wi-Fi and BLE
 +
* Onboard video and audio processing
 +
* Wide software compatibility including support for Fedora linux
  
主控器支持USB和外接3.7V锂电池两种供电方式,可实现双电源下自动切换电源功能,并支持USB充电方式。体积小巧,接口方便,上手简单,可直接应用于物联网低功耗项目。
+
=Hardware=
 +
==Hardware interface==
 +
[[File:VisionFive_risc-v_sbc_interface.jpg]]
  
Leaf-S3主板在编程方面,支持ESP-IDF、Arduino、MicroPython等多种方式进行编程开发 。
+
==Hardware spec==
 
+
{| class="wikitable"
Leaf-S3主板上标记了与芯片对应的所有IO管脚,降低了使用的门槛。
 
 
 
== 关键特性 ==
 
 
 
* ESP32-S3,Xtensa® 32 bit LX7
 
* 片外 PSRAM , FLASH
 
* Ultra-low power 10uA
 
* 2.4G WIFI ,Bluetooth 5 ,Bluetooth mesh
 
* GPIO , ADC , TOUCH , PWM , I2C , SPI , RMT , I2S , UART , LCD,CAMERA ,USB , JTAG
 
* 1* 4pin I2C连接座
 
* 1 * USB Type-C
 
* 1 * 2pin 电池连接座,支持充电
 
* 1 * 彩色LED
 
 
 
= 硬件 =
 
 
 
== 硬件接口示意图 ==
 
 
 
[[File:Leaf-S3_board.png|250px]]
 
 
 
== 硬件规格 ==
 
 
 
{| class="wikitable"  
 
|-
 
! colspan="2" style="background-color:#ffcb2f;" | BPI-Leaf-S3 规格表
 
|-
 
| SoC主控芯片
 
| ESP32-S3,Xtensa® 32 位 LX7 双核处理器
 
|-
 
| 主频
 
| 240MHz MAX
 
|-
 
| 工作温度
 
| -40℃~+85℃
 
|-
 
| 片上 ROM
 
| 384 KB
 
|-
 
| 片上 SRAM
 
| 320 KB
 
|-
 
| 片外 FLASH ROM
 
| 8MB
 
|-
 
| 片外 PSRAM
 
| 8MB
 
|-
 
| WIFI
 
| IEEE 802.11 b/g/n ,2.4Ghz频带,150Mbps
 
|-
 
| 蓝牙
 
| Bluetooth 5 ,Bluetooth mesh
 
|-
 
| GPIO
 
| BPI-Leaf-S3已引出36个可用GPIO
 
|-
 
| ADC
 
| 2 × 12 位 SAR ADC,支持 20 个模拟通道输入
 
|-
 
| TOUCH 电容式触摸传感器
 
| 14
 
|-
 
| SPI
 
| 4
 
|-
 
| I2C
 
| 2,支持主机或从机模式
 
|-
 
| I2S
 
| 2,串行立体声数据的输入输出
 
|-
 
| LCD
 
| 1,支持 8 位 ~16 位并行 RGB、I8080、MOTO6800 接口
 
|-
 
| CAMERA
 
| 1,支持 8 位 ~16 位 DVP 图像传感器接口
 
 
|-
 
|-
| UART
+
|Specificationc  ||Details
| 3 ,支持异步通信(RS232 和RS485)和 IrDA
 
 
|-
 
|-
| PWM
+
|Processor  ||-RISC-V SiFive U74 Dual-Core 64-bit RV64GC ISA SoC with 2MB L2 cache @ 1.0GHz
| 8 路独立通道,14位精度
 
 
|-
 
|-
| MCPWM
+
| ||-Vision DSP Tensilica-VP6 for computing vision @ 600MHz
| 2
 
 
|-
 
|-
| USB
+
| ||-NVDLA Engine (configuration 2048 MACs @ 800MHz)
| 1 × 全速USB 2.0 OTG,Type-C母口
 
 
|-
 
|-
| USB Serial/JTAG 控制器
+
| ||-Neural Network Engine (1024MACs @ 500MHz)
| 1,USB 全速标准,CDC-ACM ,JTAG
 
 
|-
 
|-
| 温度传感器
+
|Memory || 8GB LPDDR4
| 1,测量范围为–20 °C 到 110 °C,用于监测芯片内部温度
 
 
|-
 
|-
| SD/MMC
+
|Wireless Connectivity || -2.4 GHz Wi-Fi (IEEE 802.11b/g/n),-Bluetooth 4.2 (BLE)
| 1 × SDIO主机接口,具有2个卡槽,支持SD卡3.0和3.01,SDIO 3.0,CE-ATA 1.1,MMC 4.41,eMMC 4.5和4.51
 
 
|-
 
|-
| TWAI® 控制器
+
|Video Processing ||-2 x MIPI-CSI (up to 4K@30fps), 1 x MIPI-DSI (up to 4K@30fps)
| 1 ,兼容 ISO11898-1(CAN 规范 2.0)
 
 
|-
 
|-
| 通用 DMA 控制器
+
| ||-1 x HDMI 1.4 (up to 1080p@60fps display)
| 5 个接收通道和 5 个发送通道
 
 
|-
 
|-
| RMT
+
| ||-Video Decoder (H264/H265) up to 4K@60fps; Support Dual stream decoding for 2K@30fps each
| 4 通道发射,4通道接收,共享 384 x 32-bit 的 RAM
 
 
|-
 
|-
| 脉冲计数器
+
| ||-Dual channels of ISP, each channel support up to 4K@30FPS
| 4个脉冲计数控制器(单元),每个单元有2个独立的通道
 
 
|-
 
|-
| 定时器
+
| ||-Support MIPI-CSI TX for video output after ISP and AI processing
| 4 × 54 位通用定时器,16 位时钟预分频器,1 × 52 位系统定时器,3 × 看门狗定时器
 
 
|-
 
|-
| 外部晶振
+
| ||-JPEG encoder/decoder
| 40Mhz
 
 
|-
 
|-
| RTC 和低功耗管理
+
|Dedicated Audio Processing||-Ultra-low power Voice Activity Detector for audio bit-stream as a Voice Trigger
| 电源管理单元 (PMU)+ 超低功耗协处理器 (ULP)
 
 
|-
 
|-
| 低功耗电流
+
| DSP and Sub-system ||-On-chip Audio DAC
| 10uA
 
 
|-
 
|-
| 工作电压
+
| ||-Support DMIC and AMIC, up to 4 channels
| 3.3V
 
 
|-
 
|-
| 输入电压
+
|Peripherals ||-4 x USB 3.0 ports
| 3.3V~5.5V
 
 
|-
 
|-
| 最大放电电流
+
| ||-40 Pin GPIO Header (28 x GPIO, I2C, I2S, SPI, UART)
 
 
|-
 
|-
| USB充电
+
| ||-Gigabit Ethernet Connector
| 支持
 
 
|-
 
|-
| 最大充电电流
+
| ||-3.5 mm Audio jack (4-pole stereo audio output)
| 500mA
 
 
|-
 
|-
| 可控全彩色LED
+
| ||-Micro-SD card slot for system boot and data storage
| 1
 
|}
 
 
 
== 硬件尺寸 ==
 
 
 
[[File:Leaf-S3_board_dimension.png | 700px]]
 
 
 
{| class="wikitable"
 
 
|-
 
|-
! colspan="2" style=" background-color:#ffcb2f;" | BPI-Leaf-S3 尺寸表
+
| ||-Support TRNG and OTP
 
|-
 
|-
| 管脚间距
+
| ||-Support DMAC, QSPI and other peripheral
| 2.54mm
 
 
|-
 
|-
| 安装孔间距
+
| ||-Reset button and Power Button
| 23mm/ 62.25mm
 
 
|-
 
|-
| 安装孔尺寸
+
|Power Supply||-Minimum: 5 V / 1.5 A,-Recommended: 5 V / 3 A
| 内径2mm/外径3mm
 
 
|-
 
|-
| 主板尺寸
+
|Power Connector|| -USB Type-C port or 40-pin GPIO header
| 26 × 65.25(mm)/1.02 x 2.57(inches)
 
 
|-
 
|-
| 板厚
+
|Dimensions ||100 mm x 72 mm
| 1.2mm
 
 
|}
 
|}
  
管脚间距兼容万能板(洞洞板、点阵板),面包板,便于调试应用。
+
==40 Pinout Diagram==
 +
[[File:VisionFive_risc-v_sbc_gpio.jpg]]
  
== 外设GPIO管脚分配 ==
+
Notes:
 +
*Each GPIO pin can safely draw a maximum current of 39 mA, whereas the maximum current draw when all GPIOs are combined should be less than 100 mA. Please take this into account or otherwise you will end up destroying the GPIO pins.
 +
*All GPIOs can be configured to support different functions including but not limited to SDIO, Audio, SPI, I2C, UART and PWM.
  
{| class="wikitable"
+
=software=
|-
+
==Source code==
! colspan="3" style=" background-color:#ffcb2f;" | BPI-Leaf-S3 外设GPIO管脚分配
 
|- style="background-color:#32cb00;"
 
| 外设接口
 
| 信号
 
| 管脚
 
|-
 
| rowspan="2" | ADC
 
| ADC1_CH0~9
 
| GPIO 1~10
 
|-
 
| ADC2_CH0~9
 
| GPIO 11~20
 
|-
 
| 触摸传感器
 
| TOUCH1~14
 
| GPIO 1~14
 
|-
 
| rowspan="4"|JTAG
 
| MTCK
 
| GPIO 39
 
|-
 
| MTDO
 
| GPIO 40
 
|-
 
| MTDI
 
| GPIO 41
 
|-
 
| MTMS
 
| GPIO 42
 
|-
 
| rowspan="14" | UART
 
| colspan="2" style="font-style:italic;color:#9b9b9b;" | 默认分配管脚,可重定义为任意GPIO
 
|-
 
| style="background-color:#ffffc7;" | U0RXD_in
 
| style="background-color:#ffffc7;" | GPIO 44
 
|-
 
| U0CTS_in
 
| GPIO 16
 
|-
 
| U0DSR_in
 
| 任意GPIO
 
|-
 
| style="background-color:#ffffc7;" | U0TXD_out
 
| style="background-color:#ffffc7;" | GPIO43
 
|-
 
| U0RTS_out
 
| GPIO 15
 
|-
 
| U0DTR_out
 
| 任意GPIO
 
|-
 
| style="background-color:#ffffc7;" | U1RXD_in
 
| style="background-color:#ffffc7;" | GPIO 18
 
|-
 
| U1CTS_in
 
| GPIO 20
 
|-
 
| U1DSR_in
 
| 任意GPIO
 
|-
 
| style="background-color:#ffffc7;" | U1TXD_out
 
| style="background-color:#ffffc7;" | GPIO 17
 
|-
 
| U1RTS_out
 
| GPIO 19
 
|-
 
| U1DTR_out
 
| 任意GPIO
 
|-
 
| style="background-color:#9aff99;" | U2
 
| style="background-color:#9aff99;" | 任意GPIO
 
|-
 
| I2C
 
| colspan="2" | 任意GPIO
 
|-
 
| PWM
 
| colspan="2" | 任意GPIO
 
|-
 
| I2S
 
| colspan="2" | 任意GPIO
 
|-
 
| LCD
 
| colspan="2" | 任意GPIO
 
|-
 
| CAMERA
 
| colspan="2" | 任意GPIO
 
|-
 
| RMT
 
| colspan="2" | 任意GPIO
 
|-
 
| SPI0/1
 
| colspan="2" | 已用于FLASH与PSRAM
 
|-
 
| SPI2/3
 
| colspan="2" | 任意GPIO
 
|-
 
| 脉冲计数器
 
| colspan="2" | 任意GPIO
 
|-
 
| rowspan="8" | USB OTG
 
| D-
 
| GPIO 19(内部 PHY)
 
|-
 
| D+
 
| GPIO 20(内部 PHY)
 
|-
 
| VP
 
| GPIO 42(外部 PHY)
 
|-
 
| VM
 
| GPIO 41(外部 PHY)
 
|-
 
| RCV
 
| GPIO21(外部 PHY)
 
|-
 
| OEN
 
| GPIO 40(外部 PHY)
 
|-
 
| VPO
 
| GPIO 39(外部 PHY)
 
|-
 
| VMO
 
| GPIO38(外部 PHY)
 
|-
 
| rowspan="7" | USB Serial/JTAG
 
| D-
 
| GPIO 19(内部 PHY)
 
|-
 
| D+
 
| GPIO 20(内部 PHY)
 
|-
 
| VP
 
| GPIO 42(外部 PHY)
 
|-
 
| VM
 
| GPIO 41(外部 PHY)
 
|-
 
| OEN
 
| GPIO 40(外部 PHY)
 
|-
 
| VPO
 
| GPIO 39(外部 PHY)
 
|-
 
| VMO
 
| GPIO38(外部 PHY)
 
|-
 
| SD/MMC
 
| colspan="2" | 任意GPIO
 
|-
 
| MCPWM
 
| colspan="2" | 任意GPIO
 
|-
 
| TWAI
 
| colspan="2" | 任意GPIO
 
|-
 
| 彩色LED
 
| colspan="2" | GPIO 48
 
|}
 
  
= 软件 =
+
StarFive firmware:
 +
*Boot_recovery, Binary for recovering SPI flash:https://github.com/starfive-tech/bootloader_recovery
 +
*secondboot,First stage bootloader:https://github.com/starfive-tech/JH7100_secondBoot
 +
*ddrinit,First stage bootloader:https://github.com/starfive-tech/JH7100_ddrinit
  
== MicroPython 开发 ==
+
RISC-V SBI:
 +
*openSBI,RISC-V specific:https://github.com/riscv-software-src/opensbi
  
[[File:Mircopython.png]]
+
Bootloader
 +
*u-boot,Universal boot loader:https://github.com/starfive-tech/u-boot
  
MicroPython实现了大部分Python 3 特性和语法,易学易上手,验证程序效果无需编译直接下载进芯片运行。
+
Kernel
 +
*Linux,Linux Kernel : https://github.com/starfive-tech/linux
  
无论是否有编程基础,MicroPython的上手难度绝对远低于其他编程语言,其代码易读性高,理解快,在开源社区有多年积累的丰富资源,就如同Python一样拥有极强的生命力与应用价值。
+
Distro:
 +
*Fedora Image,Fedora 33 image:https://github.com/starfive-tech/Fedora_on_StarFive
  
* [[ BPI-Leaf-S3_micropython_快速上手 | MicroPython快速上手 ]]
+
==References ==
 +
*VisionFive RISC-V Linux SBC:https://www.youtube.com/watch?v=4PoWAsBOsFs
  
* [[ micropython_运行环境搭建 | MicroPython运行环境搭建 ]]
+
==Start Guide==
  
* [[ micropython_固件下载与烧录 | MicroPython固件下载与烧录 ]]
+
VisionFive Single Board Computer Quick Start Guide :https://wiki.rvspace.org/en/Product/VisionFive/Technical_Documents/VisionFive_Single_Board_Computer_Quick_Start_Guide
  
= 资源 =
+
=Easy to buy sample=
  
* [[https://github.com/BPI-STEAM/BPI-Leaf-S3-Doc/blob/main/sch/BPI-Leaf-S3-Chip-V0.1A.pdf GitHub:BPI-Leaf-S3 开发板原理图PDF]]
+
Banana Pi official Aliexpress shop:https://m.pt.aliexpress.com/item/1005003990869396.html?gatewayAdapt=Pc2Msite

Latest revision as of 03:03, 22 June 2022

Introduction

BPI-AI Kendryte K210 RISC-V
BPI Q-Car kit with BPI:AI board


VisionFive risc-v sbc 3.jpg

StarFive VisionFive JH7100 is world‘s first generation of affordable RISC-V boards designed to run Linux. Based on RISC-V architecture, VisionFive pushes open-source to the next level and gives developers more freedom and power to innovate and design industry-leading solutions. This is not an official development board for the Banana Pi community, but the Banana Pi open Source community and StarFive work closely together to advance risC-V open source hardware.

VisionFive is the first generation of affordable RISC-V computers designed to run Linux. It is fully open-source with open-source software, open hardware design and RISC-V open architecture.It is powered by RISC-V SiFive U74 Dual-Core 64-bit RV64GC ISA SoC with 4GB/8GB LPDDR4 RAM variants and has rich I/O peripherals such as USB 3.0 ports, 40-pin GPIO header, Gigabit Ethernet Connector, Micro-SD card slot and much more.VisionFive also has rich AI features with Neural Network Engine and NVDLA Engine. It has onboard audio and video processing capabilities and has MIPI-CSI and MIPI-DSI connectors for video hardware. It has wireless capabilities with Wi-Fi and Bluetooth (BLE) and has a wide software compatibility including support for Fedora.

Features

  • Truly open-source hardware, software and RISC-V open architecture
  • Powerful and rich AI features with Neural Network Engine and NVDLA Engine
  • Abundant I/O peripherals
  • Wireless connectivity with Wi-Fi and BLE
  • Onboard video and audio processing
  • Wide software compatibility including support for Fedora linux

Hardware

Hardware interface

VisionFive risc-v sbc interface.jpg

Hardware spec

Specificationc Details
Processor -RISC-V SiFive U74 Dual-Core 64-bit RV64GC ISA SoC with 2MB L2 cache @ 1.0GHz
-Vision DSP Tensilica-VP6 for computing vision @ 600MHz
-NVDLA Engine (configuration 2048 MACs @ 800MHz)
-Neural Network Engine (1024MACs @ 500MHz)
Memory 8GB LPDDR4
Wireless Connectivity -2.4 GHz Wi-Fi (IEEE 802.11b/g/n),-Bluetooth 4.2 (BLE)
Video Processing -2 x MIPI-CSI (up to 4K@30fps), 1 x MIPI-DSI (up to 4K@30fps)
-1 x HDMI 1.4 (up to 1080p@60fps display)
-Video Decoder (H264/H265) up to 4K@60fps; Support Dual stream decoding for 2K@30fps each
-Dual channels of ISP, each channel support up to 4K@30FPS
-Support MIPI-CSI TX for video output after ISP and AI processing
-JPEG encoder/decoder
Dedicated Audio Processing -Ultra-low power Voice Activity Detector for audio bit-stream as a Voice Trigger
DSP and Sub-system -On-chip Audio DAC
-Support DMIC and AMIC, up to 4 channels
Peripherals -4 x USB 3.0 ports
-40 Pin GPIO Header (28 x GPIO, I2C, I2S, SPI, UART)
-Gigabit Ethernet Connector
-3.5 mm Audio jack (4-pole stereo audio output)
-Micro-SD card slot for system boot and data storage
-Support TRNG and OTP
-Support DMAC, QSPI and other peripheral
-Reset button and Power Button
Power Supply -Minimum: 5 V / 1.5 A,-Recommended: 5 V / 3 A
Power Connector -USB Type-C port or 40-pin GPIO header
Dimensions 100 mm x 72 mm

40 Pinout Diagram

VisionFive risc-v sbc gpio.jpg

Notes:

  • Each GPIO pin can safely draw a maximum current of 39 mA, whereas the maximum current draw when all GPIOs are combined should be less than 100 mA. Please take this into account or otherwise you will end up destroying the GPIO pins.
  • All GPIOs can be configured to support different functions including but not limited to SDIO, Audio, SPI, I2C, UART and PWM.

software

Source code

StarFive firmware:

RISC-V SBI:

Bootloader

Kernel

Distro:

References

Start Guide

VisionFive Single Board Computer Quick Start Guide :https://wiki.rvspace.org/en/Product/VisionFive/Technical_Documents/VisionFive_Single_Board_Computer_Quick_Start_Guide

Easy to buy sample

Banana Pi official Aliexpress shop:https://m.pt.aliexpress.com/item/1005003990869396.html?gatewayAdapt=Pc2Msite