Problems in using the f_opendir(&dirs, f_mkdir(path) functio

All design tool related questions: compiler, assembler, linker. Embedded programming questions: assembler, C code.

Moderator: nferre

vikku2287
Posts: 1
Joined: Wed Dec 29, 2010 11:09 am

Problems in using the f_opendir(&dirs, f_mkdir(path) functio

Wed Dec 29, 2010 12:02 pm

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
jepa
Posts: 2
Joined: Fri Feb 10, 2012 7:19 pm

Re: Problems in using the f_opendir(&dirs, f_mkdir(path) fun

Fri Feb 10, 2012 8:38 pm

Did you find the solution of the problem you mention?. I encounter a similar problem and maybe you can help me with that. Thanks
CptTitanic
Posts: 871
Joined: Sat Oct 30, 2010 6:04 pm

Re: Problems in using the f_opendir(&dirs, f_mkdir(path) fun

Fri Feb 10, 2012 10:29 pm

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.

Return to “Development Tools”

Who is online

Users browsing this forum: No registered users and 2 guests