Hello
I use FreeRTOS + FAT with Renesas RA6M3.
ff_fopen() pcMode “W” “a” “a+” If the file does not already exist it will be created.
I was able to create the file.
Please tell me How to Create Folder.
Hello
I use FreeRTOS + FAT with Renesas RA6M3.
ff_fopen() pcMode “W” “a” “a+” If the file does not already exist it will be created.
I was able to create the file.
Please tell me How to Create Folder.
Are you looking for FF_MkDir?
Thank you for response.
I will try it.
I found ff_mkdir, so I ran ff_mkdir(“test”)
When I ran FF_KkDir in it, it jumped to Default_Handler
Details
When I ran FF_FlushCache(pxIOManager) line 3394, it jumped to Default_Handler
Do you know what the cause is?
No, I do not know but can you step through and see which line is causing it to go to Default_Handler. We need to figure out which interrupt/exception happened. One way is to update your startup code and install a different handler for each interrupt/exception.
Sorry for the late reply.
I will do a step run to see where to go to Default_Handler
I don’t know how to install different handlers
If you share your startup file where interrupt handlers are installed, I can try to provide an example.
Here is the updated one - startup.c (11.4 KB).
Note that I did not compile this file.
Thank you uploading ile.
I run with the file I received.
It jumped to Default_HardFault_Handler in FF_CountFreeClusters.
What could cause this?
This means you are getting a Hard Fault. Try to find the faulting instruction. This is a good resource to debug Hard Faults - https://www.keil.com/appnotes/files/apnt209.pdf.
What is the medium your file system resides on? Internal flash, external flash, RAM, SD card,…? Which low level driver are you using - manufacturer provided?
Thank you for reply.
I try to find the faulting instruction.
sorry.
I don’t understand.
What are low-level drivers and file systems?
well if you ask a question about file system middleware but do not understand the concept of a file system nor storage media and layered driver architectures… may I suggest you take a step back and familiarize with the basics.
I answer the following
low level driver - manufacturer provided
file system resides on - Internal flash
I start my study with the basics.
I suggest to also reach out to the manufacturer of your bsp with this question.
From my experience the FreeRTOS Plus FatFS is not as easy to integrate as the de facto standard FatFs from elm-chan http://elm-chan.org/fsw/ff/00index_e.html, which also has FreeRTOS support.
So maybe the best solution is to switch to that one (at least this is what I did some month ago).
please be careful with statements like that. Whether a file system is truly stable will prove only if the system has been massively and thoroughly tested, in particular under stress conditions. A customer of mine has spent (wasted) countless hours trying to pinpoint a problem in which an open source file system that many trusted crashed the entire volume with a certain cluster size when the file system was almost but not yet entiely full. If you have just been using that package a few months ago, you do not know anything yet about it. Trust me. Hacking out a file systen that somehow works is not rocket science, but if you need one that works reliably, you may have a serious problem with open source products.
Manufacturer: Renesas answer is follow.
For problems with using FreeRTOS,
Please consider using SUPPORT or COMMUNITY on the FreeRTOS page.