Created
February 23, 2019 17:43
-
-
Save C47D/63faeed6431d2f2945dbca0f3ed0c6ce to your computer and use it in GitHub Desktop.
fatfs test on Cortex M0 based microcontroller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This doesn't work (result in a halt handler) on a Cortex M0 based microcontroller, f_read expect an unsigned int as the last parameter | |
uint8_t bytesRead = 0; | |
res = f_read(&MyFile, &wav_test.riff, sizeof wav_test.riff, &bytesRead); | |
// But it does 'work' in the other Cortex M microcontrollers. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment