SDHC/FATfs stack is not working with FlexCan (CAN 0) together in MPC5748G

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

SDHC/FATfs stack is not working with FlexCan (CAN 0) together in MPC5748G

828 Views
arohanekar
Contributor I

Hi All,

Currently I am using MPC5748G DEV-KIT (NXP) board.

I am using sdhc interface for SD card using library component (SDHC/FATfs stack). And i am able to read and write data on sd card.
In my use case, i am getting data from CAN. So i have added FlexCan component from library. And configured CAN 0 channel.
But after that, My existing sd card related Fatfs code stop working. my code get stuck in erase test.
So Is there any dependency of CAN and SDHC/FATfs stack module?
 
Please help me to sort out this issue.
 
Thanks
Aniket.
Labels (2)
0 Kudos
1 Reply

652 Views
ToHoangLinh
NXP Employee
NXP Employee

Hi Aniket,

Your code is stuck at erase test. Can you post the log output so I can determine which line stopped it?

There should be no dependency between SDHC and FlexCAN module.

Is your problem related to this issue? (https://community.nxp.com/message/1146137 )

Normally, if getting data from FlexCan and writing to SD card, we just do

- Format card (optional)

- Mount card

- Write data to card

- Unmount card when finishing

0 Kudos