@far @interrupt void TIM4IRQHandler(void){ gg_timer_base++; //5ms if((gg_timer_base % 5) == 0) { gg_flag5ms = 1; } } #error clnk Debug\safety.lkf:1 symbol c_smodx not defined (Debug\stm8_interrupt_vector.o ) The command: "clnk -m Debug\safety.map -l"C:\Program Files (x86)\COSMIC\CXSTM8_32K\Lib" -o Debug\safety.sm8 Debug\safety.lkf " has failed, the returned value is: 1 exit code=1. 中断里面加了如上的语句,编译会提示出错。 |