Hello.
I'm a little mocking CH32V307VCT6. The C code works without problems, but I want a lower level - assembler. And here is a complete failure. All my ARM developments turned out to be useless.
First, I want to deal with the startup file startup_ch32v30x_D8C.s .
The line "NMI_Handler: 1: j 1b" and below is of interest - I have not seen such a syntax, and I do not understand the purpose of the line.
.....
.weak DMA2_Channel9_IRQHandler /* DMA2 Channel 9 */
.weak DMA2_Channel10_IRQHandler /* DMA2 Channel 10 */
.weak DMA2_Channel11_IRQHandler /* DMA2 Channel 11 */
NMI_Handler: 1: j 1b
HardFault_Handler: 1: j 1b
Ecall_M_Mode_Handler: 1: j 1b
Ecall_U_Mode_Handler: 1: j 1b
Break_Point_Handler: 1: j 1b
.....