Tuesday, November 21st 2017, 2:59pm UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

uLipe

Beginner

Date of registration: Apr 8th 2015

Posts: 5

1

Wednesday, May 27th 2015, 9:27pm

USBH Stopped to work

Hello,

I´m currently back to working on USB Host firmware, after to perform the initalizations according user guide so:

- call USBH_Init();
- install usbh task and isr
- call FS_Init();
- call USBH_MSD_Init()

Then I try to plug a flash drive in USB connector and set a breakpoint on device insertion callback function, but the program don´t reach here, apparently the code is the same, I´m using the BSP supplied by segger.

What I am missing to get the USB Host to work?

Regards.

Felipe

SEGGER - Yan

Super Moderator

Date of registration: Feb 28th 2014

Posts: 23

2

Thursday, June 11th 2015, 9:14am

Hello Felipe,

Have you tried using the supplied sample application - OS_USBH_MSD.c ?
Could you tell us which BSP and evalboard you are using?

Regards,

Yan

uLipe

Beginner

Date of registration: Apr 8th 2015

Posts: 5

3

Thursday, June 18th 2015, 7:28pm

Yan, thanks for response, I fixed up the problem.

Two issues was causing, the first the my USB Hal was not correctly configured. Second, I out application we use two devices on file system, and the other device (the SDCard) used the same AHB memory bank of USB, causing corruption of both devices file system. So the solution was create a memory pool used by SDCard Hal in a region outside of USB AHB RAM and now all is working fine.

Thanks again for help.

Felipe

SEGGER - Yan

Super Moderator

Date of registration: Feb 28th 2014

Posts: 23

4

Friday, June 19th 2015, 8:59am

Yan, thanks for response, I fixed up the problem.

Two issues was causing, the first the my USB Hal was not correctly configured. Second, I out application we use two devices on file system, and the other device (the SDCard) used the same AHB memory bank of USB, causing corruption of both devices file system. So the solution was create a memory pool used by SDCard Hal in a region outside of USB AHB RAM and now all is working fine.

Thanks again for help.

Felipe
Ah, I see.
Glad to hear that you could resolve this.

Regards,

Yan