|
将Azure_RTOS_6.1_STM32F746G-DISCO_IAR_Samples_2020_10_10里面的sample_usbx_host_mass_storage历程移植到STM32F429,插入U盘无法识别,status = ux_host_stack_class_instance_get(class, 0, (void **) &storage);函数一直返回UX_HOST_CLASS_INSTANCE_UNKNOWN;;;最终找到问题是_ux_hcd_stm32_interrupt_handler中断处理函数中 /* This channel is busy. Read its corresponding HCINT register. */ host_channel_interrupt_status = _ux_hcd_stm32_register_read(hcd_stm32, UX_HCD_STM32_OTG_FS_HCINT + (channel_index * UX_HCD_STM32_ENDPOINT_CHANNEL_SIZE)); 返回的host_channel_interrupt_status标明TXERR错误,请问有哪位大神STM32F4系列移植成功过吗?
|
|