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优化的说明 后面就整个不能进入调试模式了, 下面一种申明
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中断发生与否:TIM 中断源
TIM_ClearITPendingBit(TIM2, TIM_IT_Update); // 清除TIMx的中断待处理位:TIM 中断源
_fnct_timer_handler();
}
}