Home > other >  Unable to trigger STM32F407 CAN receive interrupt
Unable to trigger STM32F407 CAN receive interrupt

Time:12-29

Normal mode, CAN1 sends the interrupt can be set out, but in the breakpoint debugging finish loading data, into TIR |=TMIDx_TXRQ requests the data, the ESR register error, LEC shows a value of 0 x03, ACK response error is found by the query,
CAN loopback mode, not an error, send and receive there is data in the register, silent silent mode are tried, I think CAN configuration should be no problem, because be refactoring, old programs CAN run normally, shows the hardware there is no problem,
Now there is something wrong with the most suspicion is interrupted,
之前copy老程序的SysTick滴答计时器也不能往下计数,但是又找不到问题所在,启动文件里也有同名的[weak]标志的函数名,我是刚入职的菜鸡,希望大佬们出出注意,(CAN1 CAN2都一样的问题)

CodePudding user response:

Debugging, to check whether there is open the SysTick interrupt control bit

CodePudding user response:

The
reference 1/f, worldy response:
debugging, to check whether there is open the SysTick interrupt control bit

Is the SysTick - & gt; CTRL |=SysTick_CTRL_ENABLE_Msk?

CodePudding user response:

refer to the second floor of sichuan wheat reply:
Quote: refer to 1st floor worldy response:
debugging, to check whether there is open the SysTick interrupt control bit

Is the SysTick - & gt; CTRL |=SysTick_CTRL_ENABLE_Msk?

Just tried, no effect, I now is to use TIM4 common alternative systick timer, serial port interrupt and DMA interrupt, external interrupt is no problem,

CodePudding user response:

The
reference 1/f, worldy response:
debugging, to check whether there is open the SysTick interrupt control bit

Systick_handler this interruption into, I will use common timer replacement,
  • Related