AnsweredAssumed Answered

How to use FATFs in multiple functions of a program?

Question asked by Amit Kumar on Aug 21, 2014
Latest reply on Aug 22, 2014 by Amit Kumar


I am using K60 with cw10.6. I have created a project with multiple files .i.e for each functions there is a separate file. I wanted to implement FATFs in main.c and Events.c but it didn't work (I tried this many times earlier this year) but it didn't worked so I made a separate file for this.

I tried using the functions present in this file from main as well as events.c but my program hanged. on init function. kindly look into this where I am doing wrong.

If I tried to use extern FATFs fs; or extern FIL fp1; in events.c i got errors so i made these files to overcome this issues. I am using FAT SD card library of Erich Styger. using SPI.


Kind Regards

Amit Kumar

Original Attachment has been moved to:

Original Attachment has been moved to: