9 years, 6 months ago.  This question has been closed. Reason: Off Topic

.

.

Hi Elik,

What platform are you using? Also, could you publish your program/post your code so we can help you fix the issue?

Thanks, Brian

posted by Brian Daniels 27 May 2015

Hello Brian,

Thanks for reply.

I'm using mbed LPC 1768 board. My program includes mbed library, RTC, keypad and TextLCD libraries. Everything works fine.

However after I tried to include the latest USBhost library I get errors that I described in my question.

posted by Elianco S 27 May 2015

Hi Elik,

I think I found the issue. Can you update the "mbed-rtos" and "FATFileSystem" libraries inside the USBHost library?

That fixed the problem for me. Let me know how it goes!

Thanks for being patient!

-Brian

posted by Brian Daniels 27 May 2015

Hello Brian,

Thanks for our help.

I just updated the "mbed-rtos" and "FATFileSystem" libraries inside the USBHost library and the program compiled with no errors.

There is only a warning message "Warning: Statement is unreachable in "USBHost/FATFileSystem/ChaN/ff.cpp", Line: 1689, Col: 13

w = (w << 8) + b; /* Create a DBC */"

But I think that it's OK.

Best Regards.

posted by Elianco S 27 May 2015

I get the same warning, but I wouldn't worry too much about it if everything is working. Glad that helped!

posted by Brian Daniels 27 May 2015

1 Answer

9 years, 6 months ago.

Reposting this here for better visibility:

Quote:

Hi Elik,

I think I found the issue. Can you update the "mbed-rtos" and "FATFileSystem" libraries inside the USBHost library?

That fixed the problem for me. Let me know how it goes!

Thanks for being patient!

-Brian

Accepted Answer

I've now updated the USBHost library to use the latest version mbed-rtos and FATFileSystem, so it should work now if you just update USBHost

posted by Brian Daniels 28 May 2015