How to reboot the Sipeed Longan Nano in C?

I’m new in this Forum and i hope you can help me.
I want to reboot the Sipeed Longan Nano in C. I’m using the gd32vf103-sdk framework in platformio.

I don’t want to connect the RESET Pin physically to another PIN. I’m searching a line of code with which i can reboot/reset the Longan Nano.

I’m not really experienced with microcontrollers. I hope you can help me.
Thank you really much :slightly_smiling_face:

As far as I remember it only has a physical reboot method…

I’ve heard you can reset it with Watchdog timer, but i dont know how.

Here is a link I saved some time ago to do that for a Uno. I haven’t read thru it lately OR tried it on a Uno OR know if it will work with other platforms. BUT reading your question made me think of it so I pass it along. Let us know if it’s brilliant or silly.