-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix/zynq mount fix2 #48
Conversation
…ments related to (FreeRTOS#35)
a modified xsdps driver that requires it.
…ed code for removing failure in 2032 due to uint32_t used for time.
Hi @phelter, this is the code where
So when mounting the drive fails, it is possible to keep the i/o manager and use it for formatting. In your case, can you tell why mounting fails? Is the drive already formatted?
|
Hello @htibosch. I am responding to your questions since @phelter had created this PR on my behalf. The mounting fails exactly because of your comment in the code:
When the system boots up, it runs the
None of this works if Thank you! |
Hello @sidmodi-mw, thank you for explaining the situation.
Ah yes, I recognise this problem, Let's make an option that controls |
Thanks @htibosch , Would strongly lobby for: adding an init function that allows that in lieu of a precompiler defines which are very problematic for both testing and integration. Change to: FF_Disk_t * FF_SDDiskInit( const char * pcName )
{
return FF_SDDiskInitWithSettings(pcName, pdFALSE, 0);
}
/**
* Initialize the SD Disk with configurable settings
* @param[in] xMountFailIgnore ignore fails on mount, set to true when have systems where may not have initialized mount
* @param[in] xDiskPartition the disk partition number to use
*/
FF_Disk_t * FF_SDDiskInitWithSettings( const char * pcName, BaseType_t xMountFailIgnore, BaseType_t xDiskPartition ) And in the header support the new declaration of the InitWithSettings() API. |
I like the approach @phelter suggested above. Would @sidmodi-mw or @phelter like to take a stab at modifying the current PR? |
@AniruddhaKanhere wrote:
Me too 👍 |
Since PR #51 has been merged which does the exact same thing as this PR, I shall close this. Thank you for taking the time to notice, discuss and contribute to FreeRTOS+FAT @phelter and @sidmodi-mw. |
Description
Fixing Mounting issues - when mounting with zynq.
Test Steps
Won't mount unless the mountFailIgnore is set. Should this be an option/configuration?
Checklist:
Note Unable to add unit tests as this needs to be tested with Zynq.
Related Issue
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.