Bit of a long rambling one this one but I was wondering if anyone could shed some light on some odd behaviour.
Been using the latest 4.1.4 SD File System lib, and everything seems to be generally working fine except when I attempt to use SD.Rename.
I keep getting "errNotFound" as the response when I know for sure the file exists (and can be checked and opened using the lib).
Just to be sure I have attempted to use the example code structure to be sure (most of the example code is included in the project to allow easy sd card debugging)
Code: Select all
Case "E" // Rename
Name = GetName("Rename - Enter Old File Name")
NewName = GetName("Rename - Enter New File Name")
CDC.Write("Got " + Name + " " + Newname)
DisplayResponse(SD.Rename(Name, NewName, sdFile))
Now, heres where my setup gets a bit odd. I am using an 18F87J50 device, and using the USB functionality. In order to utilise a bigger chunk of RAM, I have relocated the SD Shared buffer and StoredFiles buffers manually at $0C00 and $0E00 respectively. Like I said, everything else seems fine.
Looking at StrToFileDirName I can see a lot of FSR and register manipulation but to my untrained eye I can't see anything obviously wrong, but I suspect my odd setup has broken something here subtly and I was hoping someone might spot what it might be!
I have a work around for the minute of loading up the structure by hand so not desperate, just annoying to me!
Regards,
Nathan