Closed git2fa closed 1 month ago
Ah - the Calc-Sheet can be uploaded when the file ending is jpg instead of ods. You must do a "save as" and then rename the file with the ending "ods" to use it.
You can decode comfortable 3 registers with it now. Additional you can document the pin assignment for a project in it.
One own evaluation board is crashing after about ten minutes, when the external crystal is activated with
#define FUNCONF_USE_HSE 1
in funconfig.hRTFM (CH32V003RM.PDF) and the debug output shows, that the clock security system is active but not working!
It seems that the NMI-Interrupt is occuring but no interrupt routine is defined, and so without a configured watchdog the controller is hanging.
The Register RCC-CTLR shows the actual status:
Sorry, github does not allow to upload the Calc-Sheet for decoding here.
The problem could be fixed with adding the following Interrupt routine now:
It is very interesting that after adding this routine to the source the controller does not crash any more and the crystal is running stable now (for more than 2 hours).