Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new chips: CH32V317, CH564 #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions data/chips/CH32V317VCT6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: CH32V317VCT6
family: QingKe RISC-V-based, general-purpose MCU
subfamily: Interconnectivity (USB high-speed, CAN, Ethernet, DVP, SDIO, FSMC)
product_type: QingKe V4F floating-point core, main frequency <= 144M
device_id: 0x3170B508
keywords:
- USBHS
- CAN
- SDIO
- ETH
- I2S
packages:
- name: CH32V317VCT6
package: LQFP100
memory:
# FIXME: This can be configured as one of
# 192K FLASH+128K SRAM
# 224K FLASH+96K SRAM
# 256K FLASH+64K SRAM
# 288K FLASH+32K SRAM
- name: BANK_1
kind: flash
address: 0
size: 262144
settings:
erase_size: 1024
write_size: 256
erase_value: 255
- name: SRAM
kind: ram
address: 0x20000000
size: 65536
docs:
- type: homepage
title: Homepage
name: ""
url: http://www.wch.cn/products/CH32V317.html
cores:
- name: qingke-v4f
peripherals:
- name: RCC
address: 0x40021000
registers:
kind: rcc
version: v3_d8c
block: RCC
pins:
- pin: PA8
signal: MCO
include_peripherals:
- "../family/CH32V3.yaml"
- "../peripherals/FV2x_V3x_USART1.yaml"
- "../peripherals/FV2x_V3x_USART2.yaml"
- "../peripherals/FV2x_V3x_USART3.yaml"
- "../peripherals/FV2x_V3x_USART4.yaml"
- "../peripherals/FV2x_V3x_USART5.yaml"
- "../peripherals/FV2x_V3x_USART678.yaml"
- "../peripherals/FV2x_V3x_ADV_TIM1.yaml"
- "../peripherals/FV2x_V3x_GP16_TIM234.yaml"
- "../peripherals/FV2x_V3x_GP16_TIM5.yaml"
- "../peripherals/FV2x_V3x_BASIC_TIM67.yaml"
- "../peripherals/FV2x_V3x_ADV_TIM8910.yaml"
- "../peripherals/FV2x_V3x_ADC1.yaml"
- "../peripherals/FV2x_V3x_ADC2.yaml"
- "../peripherals/FV2x_V3x_SPI1.yaml"
- "../peripherals/FV2x_V3x_SPI2.yaml"
- "../peripherals/FV2x_V3x_SPI3.yaml"
- "../peripherals/FV2x_V3x_I2C1.yaml"
- "../peripherals/FV2x_V3x_I2C2.yaml"
- "../peripherals/FV2x_V3x_RNG.yaml"
- "../peripherals/FV2x_V3x_USBHS.yaml"
- "../peripherals/FV2x_V3x_USB_OTG_FS.yaml"
- "../peripherals/FV2x_V3x_DAC.yaml"
- "../peripherals/FV2x_V3x_SDIO.yaml"
- "../peripherals/FV2x_V3x_CAN1.yaml"
- "../peripherals/FV2x_V3x_CAN2.yaml"

include_interrupts: "../interrupts/CH32V3.yaml"
include_dma_channels:
DMA1: "../dma/CH32V_V4F_DMA1.yaml"
DMA2: "../dma/CH32V_V4F_DMA2.yaml"

_raw:
url: http://www.wch.cn/products/CH32V317.html
84 changes: 84 additions & 0 deletions data/chips/CH32V317WCU6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: CH32V317WCU6
family: QingKe RISC-V-based, general-purpose MCU
subfamily: Interconnectivity (USB high-speed, CAN, Ethernet, DVP, SDIO, FSMC)
product_type: QingKe V4F floating-point core, main frequency <= 144M
device_id: 0x3173B508
keywords:
- USBHS
- CAN
- SDIO
- ETH
- I2S
packages:
- name: CH32V317WCU6
package: QFN68
memory:
# FIXME: This can be configured as one of
# 192K FLASH+128K SRAM
# 224K FLASH+96K SRAM
# 256K FLASH+64K SRAM
# 288K FLASH+32K SRAM
- name: BANK_1
kind: flash
address: 0
size: 262144
settings:
erase_size: 1024
write_size: 256
erase_value: 255
- name: SRAM
kind: ram
address: 0x20000000
size: 65536
docs:
- type: homepage
title: Homepage
name: ""
url: http://www.wch.cn/products/CH32V317.html
cores:
- name: qingke-v4f
peripherals:
- name: RCC
address: 0x40021000
registers:
kind: rcc
version: v3_d8c
block: RCC
pins:
- pin: PA8
signal: MCO
include_peripherals:
- "../family/CH32V3.yaml"
- "../peripherals/FV2x_V3x_USART1.yaml"
- "../peripherals/FV2x_V3x_USART2.yaml"
- "../peripherals/FV2x_V3x_USART3.yaml"
- "../peripherals/FV2x_V3x_USART4.yaml"
- "../peripherals/FV2x_V3x_USART5.yaml"
- "../peripherals/FV2x_V3x_USART678.yaml"
- "../peripherals/FV2x_V3x_ADV_TIM1.yaml"
- "../peripherals/FV2x_V3x_GP16_TIM234.yaml"
- "../peripherals/FV2x_V3x_GP16_TIM5.yaml"
- "../peripherals/FV2x_V3x_BASIC_TIM67.yaml"
- "../peripherals/FV2x_V3x_ADV_TIM8910.yaml"
- "../peripherals/FV2x_V3x_ADC1.yaml"
- "../peripherals/FV2x_V3x_ADC2.yaml"
- "../peripherals/FV2x_V3x_SPI1.yaml"
- "../peripherals/FV2x_V3x_SPI2.yaml"
- "../peripherals/FV2x_V3x_SPI3.yaml"
- "../peripherals/FV2x_V3x_I2C1.yaml"
- "../peripherals/FV2x_V3x_I2C2.yaml"
- "../peripherals/FV2x_V3x_RNG.yaml"
- "../peripherals/FV2x_V3x_USBHS.yaml"
- "../peripherals/FV2x_V3x_USB_OTG_FS.yaml"
- "../peripherals/FV2x_V3x_DAC.yaml"
- "../peripherals/FV2x_V3x_SDIO.yaml"
- "../peripherals/FV2x_V3x_CAN1.yaml"
- "../peripherals/FV2x_V3x_CAN2.yaml"

include_interrupts: "../interrupts/CH32V3.yaml"
include_dma_channels:
DMA1: "../dma/CH32V_V4F_DMA1.yaml"
DMA2: "../dma/CH32V_V4F_DMA2.yaml"

_raw:
url: http://www.wch.cn/products/CH32V317.html
46 changes: 46 additions & 0 deletions data/chips/CH564.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CH564
family: QingKe RISC-V-based MCU
subfamily: 480Mbps Hi-Speed USB and 100M Ethernet MCUs
product_type: QingKe V4J core
device_id: 1761607680
packages:
- name: CH564L
package: LQFP128
- name: CH564Q
package: LQFP64M
- name: CH564D
package: QFN26C3
memory:
- name: BANK_1
kind: flash
address: 0
size: 196608 # 192K
settings:
erase_size: 1024
write_size: 256
erase_value: 255
- name: RAMS
kind: ram
address: 536870912
size: 32768
- name: RAMX
kind: ram
address: 537001984
size: 65536
docs:
- type: homepage
title: 480Mbps高速USB和百兆以太网MCU CH564
name: Homepage
url: https://www.wch.cn/products/CH564.html
cores:
- name: qingke-v4j
peripherals:

interrupts:
- name: WWDG
number: 1
dma_channels:
- name: DMA1_CH1
dma: DMA1
channel: 0
_raw:
85 changes: 85 additions & 0 deletions data/chips/_CH32V317TCU6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: CH32V317TCU6
family: QingKe RISC-V-based, general-purpose MCU
subfamily: Interconnectivity (USB high-speed, CAN, Ethernet, DVP, SDIO, FSMC)
product_type: QingKe V4F floating-point core, main frequency <= 144M
device_id: 0x3175B508
keywords:
- USBHS
- CAN
- SDIO
- ETH
- I2S
packages:
- name: CH32V317TCU6
package: QFN36
memory:
# FIXME: This can be configured as one of
# 192K FLASH+128K SRAM
# 224K FLASH+96K SRAM
# 256K FLASH+64K SRAM
# 288K FLASH+32K SRAM
- name: BANK_1
kind: flash
address: 0
size: 262144
settings:
erase_size: 1024
write_size: 256
erase_value: 255
- name: SRAM
kind: ram
address: 0x20000000
size: 65536
docs:
- type: homepage
title: Homepage
name: ""
url: http://www.wch.cn/products/CH32V317.html
cores:
- name: qingke-v4f
peripherals:
- name: RCC
address: 0x40021000
registers:
kind: rcc
version: v3_d8c
block: RCC
pins:
- pin: PA8
signal: MCO
include_peripherals:
- "../family/CH32V3.yaml"
- "../peripherals/FV2x_V3x_USART1.yaml"
- "../peripherals/FV2x_V3x_USART2.yaml"
- "../peripherals/FV2x_V3x_USART3.yaml"
- "../peripherals/FV2x_V3x_USART4.yaml"
- "../peripherals/FV2x_V3x_USART5.yaml"
- "../peripherals/FV2x_V3x_USART678.yaml"
- "../peripherals/FV2x_V3x_ADV_TIM1.yaml"
- "../peripherals/FV2x_V3x_GP16_TIM234.yaml"
- "../peripherals/FV2x_V3x_GP16_TIM5.yaml"
- "../peripherals/FV2x_V3x_BASIC_TIM67.yaml"
- "../peripherals/FV2x_V3x_ADV_TIM8910.yaml"
- "../peripherals/FV2x_V3x_ADC1.yaml"
- "../peripherals/FV2x_V3x_ADC2.yaml"
- "../peripherals/FV2x_V3x_SPI1.yaml"
- "../peripherals/FV2x_V3x_SPI2.yaml"
- "../peripherals/FV2x_V3x_SPI3.yaml"
- "../peripherals/FV2x_V3x_I2C1.yaml"
- "../peripherals/FV2x_V3x_I2C2.yaml"
- "../peripherals/FV2x_V3x_RNG.yaml"
- "../peripherals/FV2x_V3x_USBHS.yaml"
- "../peripherals/FV2x_V3x_USB_OTG_FS.yaml"
- "../peripherals/FV2x_V3x_DAC.yaml"
- "../peripherals/FV2x_V3x_SDIO.yaml"
- "../peripherals/FV2x_V3x_CAN1.yaml"
- "../peripherals/FV2x_V3x_CAN2.yaml"

include_interrupts: "../interrupts/CH32V3.yaml"
include_dma_channels:
DMA1: "../dma/CH32V_V4F_DMA1.yaml"
DMA2: "../dma/CH32V_V4F_DMA2.yaml"

_raw:
url: http://www.wch.cn/products/CH32V317.html
comment: not found in datasheet
Loading