Skip to content

Instantly share code, notes, and snippets.

@C47D
Created February 23, 2019 17:43
Show Gist options
  • Save C47D/63faeed6431d2f2945dbca0f3ed0c6ce to your computer and use it in GitHub Desktop.
Save C47D/63faeed6431d2f2945dbca0f3ed0c6ce to your computer and use it in GitHub Desktop.
fatfs test on Cortex M0 based microcontroller
// 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