canfestival-rtt icon indicating copy to clipboard operation
canfestival-rtt copied to clipboard

canfstvl_timer_sem有概率出现问题,接收线程和时间线程会锁死

Open andypengzai opened this issue 1 year ago • 1 comments

作者您好,现在遇到个问题canfestival 做从机 当主机不停的重启 会造成从机canfstvl_timer_sem这个信号上的cf time线程被移除。然后canfestival接收线程和时间线程全部卡在互斥量上

andypengzai avatar Nov 29 '23 10:11 andypengzai

https://github.com/gbcwbz/canfestival-rtt/blob/a95f86e6659983c843b4b7d84a5ab63a11904b80/src/timer_rtthread.c#L49-L64

  • 如果是 cf_timer 线程退出了,你可以看一下有没有报错,报错原因是什么
  • 我没用这个做过从站,可能哪里处理的有问题,你可以查一下,欢迎PR

gbcwbz avatar Dec 04 '23 01:12 gbcwbz