Software › SysTick + FPU
SysTick + FPU
demo Open · freely redistributable
An original CC0 bare-metal CH32V307 program compiled with clang for rv32imafc, so it emits real single-precision F instructions (fmul.s/fadd.s/fcvt.*). It enables USART1, programs the SysTick (STK) compare register and enables the counter, then each period grows a circle radius and computes the circumference (2*pi*r) and area (pi*r*r) in the Qingke V4F FPU, prints them, and toggles the LED. Open the debugger to watch the f0-f31 float registers change. Exercises the real FPU + SysTick.
Format: CH32V307 flash image (bare-metal, compiled C) · By: emulators.org · Licence: Public domain (CC0)