When running the program I created, for some reason, after branching at $$brk_reset,$$error in the startup file (*.ASM), it enters a WDT interrupt and eventually reset.Why does it behave this way?
Transition to $$brk_reset,$$error in the startup file (*.ASM) occurs when the BRK instruction (0xFFFF) is executed. Addresses to which no instruction is assigned are filled with 0xFFFF, so it seems that for some reason this address was executed and transitioned to $$brk_reset, $$error. As a possible cause, ・Interrupt vector is not defined ・A branch destination (function) such as an indirect call is not defined ・Interrupts are enabled within interrupt functions that disable multiple interrupts ・Stack overflow occurs And so on. Please check if any of the above apply. Transitions can be easily checked using the branch trace function of the on-chip emulator.