cancel
Showing results for 
Search instead for 
Did you mean: 

nucleof103rbt6 HAL CAN receiver interrupt not firing

Hp.14
Associate II

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

2 REPLIES 2
Jack Peacock_2
Senior III

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
Associate II

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.