Closed
Description
Description
- Type: Bug
- Related issue: LocalFileSystem stop working in mbed_lib_rev138 #3983
- Priority: Major
- Reported: https://developer.mbed.org/questions/77631/LPC824SD/
Bug
Target
K64F, SSCI824, GR-PEACH
Toolchain:
ARM
Toolchain version:
armcc 5.06 (online compiler)
Expected behavior (Rev. 137 or older)
SDFileSystem_HelloWorld example works with log below:
Hello World!
Goodbye World!
Actual behavior (Rev. 138 or onward)
SDFileSystem_HelloWorld example fails with log below:
Hello World!
Could not open file for write
Steps to reproduce
- Import following example with check
Update all libraries to the latest revision
option.
https://developer.mbed.org/users/mbed_official/code/SDFileSystem_HelloWorld/ - Modify the definition of the SDFileSystem constructor below:
#if defined(TARGET_LPC1768)
SDFileSystem sd(p5, p6, p7, p8, "sd"); // the pinout on the mbed Cool Components workshop board
#elif defined(TARGET_SSCI824)
SDFileSystem sd(dp8, dp9, dp10, dp11, "sd");
#else // CI test shield
SDFileSystem sd(D11, D12, D13, D10, "sd");
#endif
- Compile and run
Notes
- The mbed library rev 137 or older revision works fine
- The mbed library rev 138 or onward generate warning messages in compile below:
Warning: Function "mbed::DirHandle::DirHandle()" (declared at <a href="#" onmousedown="mbed_doc_goto('/SDFileSystem_HelloWorld_Update//extras/mbed_093f2bd7b9eb/drivers/DirHandle.h', '48'); return false;">/extras/mbed_093f2bd7b9eb/drivers/DirHandle.h:48</a>) was declared "deprecated" in "SDFileSystem/FATFileSystem/FATDirHandle.cpp", Line: 28, Col: 55
Warning: Function "mbed::FileHandle::FileHandle()" (declared at <a href="#" onmousedown="mbed_doc_goto('/SDFileSystem_HelloWorld_Update//extras/mbed_093f2bd7b9eb/drivers/FileHandle.h', '45'); return false;">/extras/mbed_093f2bd7b9eb/drivers/FileHandle.h:45</a>) was declared "deprecated" in "SDFileSystem/FATFileSystem/FATFileHandle.cpp", Line: 28, Col: 39
Warning: Function "mbed::FileSystemLike::FileSystemLike(const char *)" (declared at <a href="#" onmousedown="mbed_doc_goto('/SDFileSystem_HelloWorld_Update//extras/mbed_093f2bd7b9eb/drivers/FileSystemLike.h', '47'); return false;">/extras/mbed_093f2bd7b9eb/drivers/FileSystemLike.h:47</a>) was declared "deprecated" in "SDFileSystem/FATFileSystem/FATFileSystem.cpp", Line: 45, Col: 62
Success: Success! in "<a href="#" onClick="mbed_navigate_to('/SDFileSystem_HelloWorld_Update', function() { theitf.controls.get('sidebar_tabs').activate(1); }); return false;">Build Details</a>"