CH32V307 : SPI & LCD


After tackling some riscv/clang issues, i can now say that the compatibility of the CH32V307 with the good old STM32F103 is pretty good. 

lnArduino works quite well so far,  the associated sample code is running okay-ish.

There are still some stuff to work on though :
- i2c is unstable
- the init code/linker script does not seem to be 100% correct
- rust binaries are really huge (they should be ~ 60 kB, they end up being 300kB, like if the clang LTO was not working).
- so called hardware fast interrupt seems to be doing nothing at all
- i still have to figure out how to enable the fpu without hammering the stack on interrupt/context switch

Overall, the CH323V307 seems to be a valid replacement for the GD32VF103 (which is going into oblivion or so it seems).

Mandatory pic-or-it-didnt-happen (the exact same driver/code is running also on stm32f103):




 

Comments

Popular posts from this blog

Component tester with STM32 : Part 1 ADC, Resistor

Fixing the INA3221

INA3221, weird wiring