This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

FAT File System on SPI External Flash and USB Host Interface

I have a system using STM32F205 with 512KB flash and 128KB RAM. I have external SPI Flash of 32 MB and USB as Host. The application need to upload from USB pen drive some files to SPI Flash on board to used by application.
As per details on KEIL and ST examples, there is MSC example which do the job with USB side, but I did not find any example or hint to store these files in SPI as file system so that application open these files and use them just like from USB pen drive.
1. Is it possible to have this type of combination, if yes, let me know or
2. Does it possible to have MSC class for Pen Drive and use Embedded Flash File system for SPI flash to store these uploaded file and use them. Does there any example or details for this type of system.

Regards
Mahabir Prasad

Parents
  • I'm not sure I suggested a different tool chain, perhaps you mean libraries?

    There are surely several ways to achieve what you've asked for, if you want it presented as a complete solution you might want to out source to a consultant.

    The most complicated portion would be porting a driver for your SPI memory device, and from the details provided I can't determine it's geometry or architecture. If the minimum erase size is bigger than a 512 byte sector, then you'll have to manage that. An MMC/SD type device/chip masks a lot of that ugliness.

Reply
  • I'm not sure I suggested a different tool chain, perhaps you mean libraries?

    There are surely several ways to achieve what you've asked for, if you want it presented as a complete solution you might want to out source to a consultant.

    The most complicated portion would be porting a driver for your SPI memory device, and from the details provided I can't determine it's geometry or architecture. If the minimum erase size is bigger than a 512 byte sector, then you'll have to manage that. An MMC/SD type device/chip masks a lot of that ugliness.

Children
  • I have working source code for SPI flash used by me, using embedded File system (KEIL), it is already working. That means, complete drivers and others things are available for SPI flash, same time, it is available for USB (example from KEIL, ST).

    Main question - how to configure the both things same time, impacted files so that I can go there correct them.