[M032] Using SPI Flash as USB MSC Device

Post Reply
chhsieh3
Posts: 309
Joined: 13 Mar 2020, 09:08

30 Jun 2023, 09:56

  • Application: This example code supports to program files to SPI Flash through mass storage interface.
  • BSP Version: M032_Series_BSP_CMSIS_V3.05.000
  • Hardware: NuMaker-M032KI V1.0
This example code uses the M032 series microcontroller as a SPI Flash programmer to update SPI Flash through the USB interface. The M032 connects to the computer via a USB port, plays
a role of a mass storage class device, and connects an external SPI Flash Memory as a medium. By using mass storage interface, it is not necessary to provide any tool or driver at PC to copy
a bin file to SPI Flash. When the user plugs in the device by USB cable, PC will recognize it as a mass storage disk and user just needs to copy a “Update.bin” file to the mass storage disk to
do “program file to SPI Flash”. The FAT information is saved to SRAM, and the FAT data will be lost after reset or power-off. So, in other words, the disk will also be reset to empty after the
example code restarts.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 1407062762
Nuvoton

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 116 guests