My current application(STM32f777NI) is using USB host library for USB flash stick. I am using stm32cubef7 V1.12.0, now the appellation is stack after call "USBH_MSC_BOT_REQ_GetMaxLUN", and it appears that the usb stick is not response for thi...
Try to increase heap size and try.The first USB have 2 LUN, which means the first one will malloc twice.Your working USB stick only have 1 LUN, maybe the heap size just enough to hold 1 LUN
It is turns out is my fault, The USB stack use heap, and my linker script have set heap size as 0, interestingly enough, there are no warning/error during the build.After I have enable the heap, the stack works fine.
/* Issue GetMaxLUN request */ status = USBH_MSC_BOT_REQ_GetMaxLUN(phost, (uint8_t *)(void *)&MSC_Handle->max_lun); /* When devices do not support the GetMaxLun request, this should be considred as only one logical unit is supported */...