my “s32k148 flexCan with fifo and DMA” Entry "Callback func" only one time

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

my “s32k148 flexCan with fifo and DMA” Entry "Callback func" only one time

519 Views
Gavin1
Contributor I

my “s32k148 flexCan with fifo and DMA” Entry "flexcancom_Callback func" only one time

sdk3.0.0 

 

void flexcancom1_Callback(uint8_t instance, flexcan_event_type_t eventType,
uint32_t buffIdx, flexcan_state_t *flexcanState)
{

......

if(eventType == FLEXCAN_EVENT_DMA_COMPLETE)
{

FLEXCAN_DRV_RxFifo(INST_CAN_CH0, &recvBuff051);

........

}

Labels (1)
0 Kudos
4 Replies

517 Views
Gavin1
Contributor I

Tips: 

if(eventType == FLEXCAN_EVENT_DMA_COMPLETE)
{
;//////////// I mean in here only one time

if(instance == INST_CAN_CH0)
{

FLEXCAN_DRV_RxFifo(INST_CAN_CH0, &recvBuff051)

}

0 Kudos

449 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Sorry for the late reply.
Please refer to the discussion issue:s32k144 CAN0 Rx With Fifo DMA

0 Kudos

382 Views
Gavin1
Contributor I

I've solved the problem,In Can Callback  func can't use "FLEXCAN_DRV_RxFifo()",thinkyou!

0 Kudos

492 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Can you share the project so I can debug it on my side?

Best Regards,
Robin

0 Kudos