Skip to main content
Hp.14
Associate II
July 15, 2019
Question

nucleof103rbt6 HAL CAN receiver interrupt not firing

  • July 15, 2019
  • 2 replies
  • 772 views

Hi ,

i am notable to get the can receive interrupt to fire .

using hal libraries. code sample attached.

i have previously used the CAN on the bluepill with stdperipheral libraries.

Kindly help.

UPDATE:

i have checked the sfrs with ESR having REC=FF, EFVP & EWGF=1, LEC=101b ie. Bit dominant Error.

i have confirmed can message integrity using microchips can analyser.

i have been using extended IDs

no filtering as of yet..just hoping interrupt fires

tried loopback mode also.. can tx pin is always high(unable to get can message).... rx interrupt not working

could this be an issue with the hal drivers? using v 1.8

if it is a clocking problem how do i fix it.

can 500kbs, stm hsi 8mhz.

Thank you

This topic has been closed for replies.

2 replies

Jack Peacock_2
Associate II
July 15, 2019

Assuming you've already checked the status registers for bus errors the most likely scenario is a mismatch between your filtering and the messages being sent by the remote node. Check your object size (11 or 23), the RTR, and if you are masking the right bits on the object ID based on whatever CAN protocol you are using.

Are you using 16 or 32 bit filtering, and what object ID are you sending?

Jack Peacock

Hp.14
Hp.14Author
Associate II
August 20, 2019

hi,

i have checked the sfrs with ESR having REC=FF, EFVP & EWGF=1, LEC=101b ie. Bit dominant Error.

i have confirmed can message integrity using microchips can analyser.

i have been using extended IDs

no filtering as of yet..just hoping interrupt fires

tried loopback mode also.. can tx pin is always high(unable to get can message).... rx interrupt not working

could this be an issue with the hal drivers? using v 1.8

if it is a clocking problem how do i fix it.

can 500kbs, stm hsi 8mhz.