cancel
Showing results for 
Search instead for 
Did you mean: 

How to interface my own disk on STM32CubeMx FatFs ?

antonius
Senior
Posted on January 29, 2016 at 14:53

Guys,

It's  been a few days for me trying to interface user_diskio.c and I read from UM1721...

page 16 saying :

.....

2.8 Interface your own disk to FatFs

If a working storage control module is available, it should be attached to the FatFs via a glue

function rather than modifying it. User can interface any new disk by developing the

appropriate disk I/O low level driver (mynewdisk_diskio.c/.h), and save these driver files

under: \Middlewares\Third_Party\FatFs\src\drivers.

It is worth noting that the provided FatFs disk I/O low level drivers are dependent on the

board BSP drivers. To remove this BSP dependency the user can just replace “BSP_...�

 

APIs' calls by his own code ensuring the appropriate functionality.

To develop a disk I/O low level driver from scratch, the user can start from the skeleton of

glue functions below to attach the existing storage control module to the FatFs with a

defined API.

Low level disk I/O module skeleton for FatFs.....

My question is :

Where can I find BSP's API calls ? Which line or statement should I replace, so I can call my function which has been created on user_diskio.c ?

Thanks

1 REPLY 1
Posted on January 29, 2016 at 18:10

You leave a trail of related and abandon threads about materially the same topic. Stop doing this, it is becoming annoying..

[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/How%20can%20I%20interface%20STM32Cube_FW_F1_V1.0.0%20FatFs_uSD%20with%20SPI2%20on%20STM32F107&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/AllItems.aspx&currentviews=10]https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fSTM32Java%2fHow%20can%20I%20interface%20STM32Cube_FW_F1_V1.0.0%20FatFs_uSD%20with%20SPI2%20on%20STM32F107&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&TopicsView=https%3A%2F%2Fmy.st.com%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2FSTM32Java%2FAllItems.aspx¤tviews=10

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..