Open On-Chip Debugger 0.11.0+dev-02415-gfad123a16-dirty (2023-09-22-10:36)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'sdi'
Warn : Transport "sdi" was already selected
Ready for Remote Connections
Started by GNU MCU Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : WCH-Link-CH549? mode:RV version 2.10?
Error:? WCH-Link failed to connect with riscvchip
Error:? 1.Make sure the two-line debug interface has been opened. If not, set board to boot mode then use ISP tool to open it
Error:? 2.Please check your physical link connection
Error:? if your chip is CH32V00X,WCH-Link-CH549 does not support this chip, please use WCH-LinkE
提示這個
我也就是在中斷申明里面用了WCH優(yōu)化的說明?后面就整個不能進入調試模式了,?下面一種申明
void TIM2_IRQHandler(void) __attribute__((interrupt()));
//void TIM2_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
void TIM2_IRQHandler (void)? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? //
{
? ? if (TIM_GetITStatus(TIM2, TIM_IT_Update) != RESET) {? ? ? ?// 檢查指定的TIM中斷發(fā)生與否:TIM 中斷源
? ? ? ? TIM_ClearITPendingBit(TIM2, TIM_IT_Update);? ? ? ? ? ? // 清除TIMx的中斷待處理位:TIM 中斷源
? ? ? ? _fnct_timer_handler();
? ? }
}