| Welcome to AT91SAM Community Forum http://www.at91.com/samphpbb/ |
|
| Problems in using the f_opendir(&dirs, f_mkdir(path) functio http://www.at91.com/samphpbb/viewtopic.php?f=8&t=19807 |
Page 1 of 1 |
| Author: | vikku2287 [ Wed Dec 29, 2010 12:02 pm ] |
| Post subject: | Problems in using the f_opendir(&dirs, f_mkdir(path) functio |
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 |
|
| Author: | jepa [ Fri Feb 10, 2012 8:38 pm ] |
| Post subject: | Re: Problems in using the f_opendir(&dirs, f_mkdir(path) fun |
Did you find the solution of the problem you mention?. I encounter a similar problem and maybe you can help me with that. Thanks |
|
| Author: | CptTitanic [ Fri Feb 10, 2012 10:29 pm ] |
| Post subject: | Re: Problems in using the f_opendir(&dirs, f_mkdir(path) fun |
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. |
|
| Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|



Forum