openwch / ch32v003

CH32V003 is an ultra-cheap RISC-V MCU with 2KB SRAM, 16KB flash, and up to 18 GPIOs that sells for under $0.10
386 stars 56 forks source link

Documentation errors #26

Closed mrx23dot closed 10 months ago

mrx23dot commented 1 year ago

wrong POR register values: On handle_reset RCC->CFGR0 is 32 not 0 as stated in datasheet!

This means SYSCLK divided by 3 on startup for PLL!

What else is wrong??

mrx23dot commented 1 year ago

also MPP:3 in mstatus

mrx23dot commented 1 year ago

TIM1_CH3CVR is 16bit in datasheet, but defined as __IO uint32_t CH3CVR;

mrx23dot commented 1 year ago

"Set the STAT bit of FLASH_CTLR register to '1' to initiate a fast page erase (64 bytes) action" But there is no STAT in FLASH_CTLR, only FTER

basilhussain commented 10 months ago

But there is no STAT in FLASH_CTLR, only FTER

This is a typo. It is referring to the STRT bit.

mrx23dot commented 10 months ago

Is everything fixed in the new datasheet? What's the version of the new datasheet?