This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

tms5703137 移植FreeModbus RTU ,正常运行一段时间之后死机

Other Parts Discussed in Thread: HALCOGEN

tms5703137 HDK上用SCI\LIN跑freeModbus RTU ,正常运行一段时间之后就死机,而且上电后看收发端口的LED闪烁频率越来越慢。有人遇到类似问题吗

开的是RTI 的compare1中断,20kHz;SCI2接收发送都用的IRQ中断,

调试的时候发现是停在exit.c 里的static void loader_exit(void),此时cpsr里的M是10010,感觉是在串口的中断里死掉的,不知道为啥?

每次都是正常通信252次之后开始出现这个问题。

  • modbus poll 里3137发送的最后一次的数据(下面标红的)丢了一个字节,CRC校验值也没有发送出来,然后程序就进入exit.c了,不知道这之前发什么了什么?

    000384-Tx:01 04 00 00 00 08 F1 CC
    000385-Rx:01 04 10 12 34 00 00 00 00 00 17 00 00 00 00 00 00 00 00 06 66
    000386-Tx:01 04 00 00 00 08 F1 CC
    000387-Rx:01 04 10 12 34 00 00 00 00 00 17 00 00 00 00 00 00 00

    Halcogen里我只配置了RTI和SCI2