Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Problems in using the f_opendir(&dirs, f_mkdir(path) functio
PostPosted: Wed Dec 29, 2010 12:02 pm 
Offline

Joined: Wed Dec 29, 2010 11:09 am
Posts: 1
Hi
I am using the AT91SAM9G20 Microcontroller. Here i am trying to interface this controller to a SDCARD and store in some information in the for of files which are timestamped inside directories. I downloaded the ff.c ( FatFs - FAT file system module R0.07c (C)ChaN, 2009). In my main.c, if i called the function say a f_mkdir(path) or f_opendir, the control is not returning back to the line after the function call. Very weird things happen like a software reset and even on a software reset it stops execution after executing just a few lines.
(Note: This problem started after i separated the functions to handle ff.c intoa different folder(called it file management.c) and try linking it from there)
Some please help me with this problem.
Regards,
vignesh


Top
 Profile  
 
 Post subject: Re: Problems in using the f_opendir(&dirs, f_mkdir(path) fun
PostPosted: Fri Feb 10, 2012 8:38 pm 
Offline

Joined: Fri Feb 10, 2012 7:19 pm
Posts: 2
Did you find the solution of the problem you mention?. I encounter a similar problem and maybe you can help me with that. Thanks


Top
 Profile  
 
 Post subject: Re: Problems in using the f_opendir(&dirs, f_mkdir(path) fun
PostPosted: Fri Feb 10, 2012 10:29 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 784
Make sure structures are correctly initialized.
Make sure your stack size is sufficient to handle any local allocations, or those used by scanf/printf/etc.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: