简体   繁体   中英

Error when runing USB_OTG_FS with RTOS for pendrive application

First of all I have run the project with STM32H745I + USB_OTG_FS + FATFS + MSHC for the pendrive application and it runs without any error, I am able to create a file, directrory & write into the file.

But when I add FreeRTOS in the same combination of existing project I can only mount the USB after that I stuck in HardFault handler. I don't know what the exact setting I have to do with FreeRTOS.

If anyone have idea please help me out.

Thanks!

Now, I want to run the pendrive in MSC mode with RTOS

First you need to find the location of the error. But the error may be returned because you are using the SysTick timebase. Try change it in the configuration menu to TIM1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM