STM32H745 HARD_FAULT when accessing either MMC or USB disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-23 4:30 AM
I configured 2 file storage devices on my STM32H745I-DISCO board.
USB_OTG_FS and SDMMC1 (for built in eMMC).
Both devices initialize properly without errors.
The USB host detects the device, it correctly identifies it as media storage class device.
It enters the state HOST_USER_CLASS_ACTIVE.
Then I start the new RTOS task to mount the device.
On STM32H747I-DISCO it worked (although via USB_OTG_HS external).
On this board I get HARD_FAULT interrupt when the driver tries to read data.
The HARD_FAULT occurs both when trying to read or write from USB disk or MMC.
Solved! Go to Solution.
- Labels:
-
STM32H7 Series
-
USB
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-23 7:15 AM
OK, the reason was not enough stack memory allocated. USB works. MMC doesn't, but no HARD_FAULT.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-23 7:15 AM
OK, the reason was not enough stack memory allocated. USB works. MMC doesn't, but no HARD_FAULT.
