FlexCAN Interrupts

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FlexCAN Interrupts

698 Views
ivanrobles
Contributor III

Hi all.

I have a problem whit the interrupt Message buffer in FlexCAN.

I configured the interrupt as:

#define FLEXCAN_MB1_INT       1<<(37%32)

NVICICPR1 |= FLEXCAN_MB1_INT;
NVICISER1 |= FLEXCAN_MB1_INT;//Message buffer

then I set the flag in:

pFlexCANReg -> IMASK1 |= (1 << mailboxindex);  //for tansmit or receive

I use the Tower TWR-K60DN100M with other Microcontroller brand and I'm trying to comunnicate them.

When I transmit the message from the Tower to other device, it receives the message, the flag in IFLAG1 is setting,

but when I transmit from other device to TWR-K60DN100M, it doesn't receive the message , the Flag in IFLAG1 isn't setting. 

What's going on?

Labels (1)
0 Kudos
1 Reply

336 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Ivan,

How did you initialize the flexCAN? Seems you are using FlexCAN1 for transmission, would you please give me details on the initial code? Thanks for your patience!!

B.R

Kan

0 Kudos