2018-09-13 03:04 AM
2018-09-13 04:37 AM
Are we talking about length of file name, or f_write()?
The latter should just work.
2018-09-13 07:11 AM
We are talking about the length of the file . i can't able to write more than 15 characters by FATFS .
2018-09-13 08:10 AM
You're doing something gravely wrong, should I try to guess?
2018-09-13 08:43 AM
Clearly the problem is on line 37. ;)
2018-09-13 09:02 AM
There should be dozens of working examples of FatFs under the HAL library trees, ones where I can readily write 32MB and 650MB files with no configuration or option changes.
Please present your issue in a way that allows for constructive analysis, and doesn't require us to live inside your head to understand the details.
2018-09-13 10:40 PM
i'm beginner to this, i'm learning things like to present my problems and i'm working on it. i feel your difficulty of understanding my statements. i'm not good at this, it takes time. you don't need to live inside my head, that's none of your business. if you doesn't understand my problems then leave, don't cross your limit. this is community i'm here clear my doubt's & learning things. if you are able to clear my doubt! do it. if you don't then it's not compulsion to you, just leave it as it is.:pouting_face: :pouting_face:
2018-09-14 12:18 AM
Think about it: nobody here knows anything about you, or your project, or the code you've written/copied.
So how can we possibly help you to find your problem?
It's like you saying, "My car won't go - what's wrong with it?" - how could anyone possibly answer that with no further information?
Debugging is a key skill in any form of development
How To Debug: https://www.avrfreaks.net/comment/2418156#comment-2418156
2018-09-14 02:21 AM
thank you @Andrew Neil
2018-09-14 09:43 AM
I just need you to lay out some context and provide specifics. You're trying to describe what you see from your perspective, as only you are present.
Here's a checklist
What chip and board are you using?
How is the SD Card socket connected to the board?
What software are you building?
Is it an existing example?
What have you tried?
Show the salient code
Show the output and error/status codes
Add code so you understand what is happening, use a USART
Is the issue with the FatFs or DISKIO levels of software?
How large is the SD Card?
Can you read, write or format on a PC?
FatFs code to add more than 15 characters to a file
if (f_open(&fil, "LOG.TXT", FA_OPEN_ALWAYS | FA_WRITE) == FR_OK)
{
UINT BytesWritten;
const char string[] = "Another line gets added\r\n";
f_lseek(&fil, f_size(&fil));
f_write(&fil, string, strlen(string), &BytesWritten);
f_close(&fil);
}