Hello, the fs2400 works as Debug mode. when i wake up it via CAN from LPOFF mode, can doesn't work. I tried to clear the CAN_WU_I flag following the data sheet, but it can not take effect. How to clear the CAN_WU_I flag?
After i dId power reset , CAN works.
I have also tried write the whole reg to 0x0 and write CAN_WU_I bit to 0, the flag can not be cleared.
fs2400_write_register(&l_xDev, FS2400_REG_M_WU1_FLG, 0x0)
fs2400_write_bit(&l_xDev, FS2400_REG_M_WU1_FLG, FS2400_REG_M_WU1_FLG_CAN_WU_I, 0)
Any other registers should be re-init after a CAN wake-up pattern?
Hello Kun,
When the FS2400 is in Debug mode, the CAN transceiver is active regardless of the CAN_MODE[1:0] bits state of the M_CAN register.
To clear the CAN_WU_I flag, write 0 to bit 0 of the M_WU1_FLG register.
BRs, Tomas