Author Topic: STM32 USB Mass Storage Class issue  (Read 799 times)

0 Members and 1 Guest are viewing this topic.

Offline Red_MicroTopic starter

  • Regular Contributor
  • *
  • Posts: 122
  • Country: ca
STM32 USB Mass Storage Class issue
« on: November 01, 2024, 02:50:27 pm »
I'm testing the STM32 USB MSC using FATFS. I'm using two different flash drives, one generic 128GB and one 8GB encrypted. When using the 128GB one, things work well. See picture "generic.PNG". However, with the encrypted one, I get fatal error. When the stack resets the USB port, then the device stops responding. This encrypted flash drive works well in any computer that I connect it to. I just enter the password via the hardware keypad and that's it. Does anyone know about the issue I could be facing? I would expect the encrypted flash to be more problematic obviously but I'd like to understand if I need to set up things differently on the STM32 end to make it work.
 

Online voltsandjolts

  • Supporter
  • ****
  • Posts: 2476
  • Country: gb
Re: STM32 USB Mass Storage Class issue
« Reply #1 on: November 02, 2024, 09:41:20 am »
I see you also posted this question on the STM32 forums and ST said they'll contact you directly. Hopefully they can help.

https://community.st.com/t5/stm32-mcus-embedded-software/stm32h745-usb-msc-with-encrypted-flash-drive/td-p/738089
 

Offline peter-h

  • Super Contributor
  • ***
  • Posts: 4256
  • Country: gb
  • Doing electronics since the 1960s...
Re: STM32 USB Mass Storage Class issue
« Reply #2 on: November 03, 2024, 06:19:01 pm »
The ST code for USB MSC, and FatFS, is nothing to do with encryption. It is just implementing a block device.

Where is the encryption done?
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf