i'm unable to write more than 15 characters in fatfs file system. how to configure for a 1kb file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-09-13 3:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-09-13 4:37 AM
Are we talking about length of file name, or f_write()?
The latter should just work.​
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-09-13 7:11 AM
We are talking about the length of the file . i can't able to write more than 15 characters by FATFS .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-09-13 8:10 AM
You're doing something gravely wrong, should I try to guess?
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-09-13 8:43 AM
Clearly the problem is on line 37. ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-09-13 9: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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-09-14 2:21 AM
thank you @Andrew Neil​
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-09-14 9: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);
}
Up vote any posts that you find helpful, it shows what's working..
