-
1. Re: Adding USB Host to a CY8C52xx circuit
user_1377889 Oct 11, 2012 1:51 AM (in response to norman.chahuares.collantes)There are components already made for this purpose, the Bootloader can be adapted to use USBFS as communication interface.
I didn't try yet, but the datasheet and the configuration dialog of the Bootloader component differ a bit (or Byte). The datasheet tells about I²C and USB beeing supported while the configuration dialog offers the USBFS component as well when it was dropped onto the schematic already.
Happy coding
Bob
-
2. Re: Adding USB Host to a CY8C52xx circuit
user_14586677 Oct 11, 2012 5:14 AM (in response to norman.chahuares.collantes)These should help -
http://www.cypress.com/?rID=56014
http://www.cypress.com/?rID=57561
Regards, Dana.
-
3. Re: Adding USB Host to a CY8C52xx circuit
norman.chahuares.collantes Oct 11, 2012 8:44 AM (in response to norman.chahuares.collantes)I think I have not made me clear, or am I completelly off?. USBFS implements device support to the PSOC so a bootloader using USBFS updates firmware when it is pluged to a USB host (like a computer).
What I want is to have the PSOC acting as a USB host so it can read the contents of a usb flash drive.
-
4. Re: Adding USB Host to a CY8C52xx circuit
akshay.phatak Oct 11, 2012 9:37 AM (in response to norman.chahuares.collantes)zeta,
There could be a couple of approaches. If you have enough flash left with you so that you can write the drivers for mass storage device within PSoC5, maxim's MAX3421E seems to be your best bet. It would need one SPI master and one interrupt that would give you host functionality for PSoC5. Only downside as I already pointed out is that you need to have all the host drivers to communicate with mass storage device within PSoC flash.
On the other hand, if there is not enough memory left within PSoC5, you could go with EZ-Host™ from Cypress. It seems that it has ability to store necessary drivers on external EEPROMs so that you potentially save a lot of memory space within PSoC5.
Irrespective of whatever option you choose, you will need a custom bootloader which can read by itself from the mass storage device and upgrade the flash. But from what I can interpret from your first post, you already have something similar which reads code from SD card and upgrades the flash.
-
5. Re: Adding USB Host to a CY8C52xx circuit
norman.chahuares.collantes Oct 11, 2012 12:38 PM (in response to norman.chahuares.collantes)QuickSilver, Thanks for the info, I'll check it out.
-
6. Re: Adding USB Host to a CY8C52xx circuit
norman.chahuares.collantes Oct 12, 2012 9:28 AM (in response to norman.chahuares.collantes)I took a look at the devices and I think using the maxim part software development will take a while. While using the EZ-HOST seems easier but hardware will cost almost double the current alternative, I can't believe it would take so much to just add a feature like this. had the client specified from the beggining that USB host embeded host was required it would have been easier to choose an MCU with USB host built in.
-
7. Re: Adding USB Host to a CY8C52xx circuit
user_193124556 Mar 10, 2014 6:32 PM (in response to norman.chahuares.collantes)Wait, the PSoC5LP can act as a USB host, provided the device driver can be written? Is there any example of the PSoC5LP acting as a host for a HID device such as a keyboard?
-
8. Re: Adding USB Host to a CY8C52xx circuit
user_14586677 Mar 10, 2014 8:49 PM (in response to norman.chahuares.collantes)Here are somne projects that may be usable -
http://www.cypress.com/?rID=40103 AN58726
Regards, Dana.
-
9. Re: Adding USB Host to a CY8C52xx circuit
user_193124556 Mar 11, 2014 10:20 AM (in response to norman.chahuares.collantes)AN58726 describes the PSoC as an advanced HID device. Your earlier comment suggested that the PSoC could be a USB host and talk to USB HID devices. This is normally implemented with a USB 2.0 OTG controller, which the PSoC does not have (it implements a USB 2.0 device, not host). This is the source of my confusion.
Can the PSoC be used with a USB keyboard? i.e. is it possible for me to connect a USB keyboard or mouse to the PSoC? I'm pretty sure that this is not possible.
-
10. Re: Adding USB Host to a CY8C52xx circuit
user_14586677 Mar 11, 2014 11:55 AM (in response to norman.chahuares.collantes) -
11. Re: Adding USB Host to a CY8C52xx circuit
user_14586677 Mar 11, 2014 12:06 PM (in response to norman.chahuares.collantes)Even the TRM seems to confirm host mode not supported -
-
12. Re: Adding USB Host to a CY8C52xx circuit
user_193124556 Mar 12, 2014 2:36 AM (in response to norman.chahuares.collantes)This is what I had suspected. It's not a bad thing, but I wanted to make sure I wasn't missing out on an opportunity to use USB devices with the PSoC for a particular design.
Thank you for taking the time to research the answer and let us know!
-A.
-
13. Re: Adding USB Host to a CY8C52xx circuit
unny.sreeram_1704331 Sep 8, 2016 9:16 PM (in response to user_193124556)Hey, I too am looking for a way to connect PSOC 5 with a Flash Drive. Did you find any possible way to make the PSOC 5 act as a USB Host?
-
14. Re: Adding USB Host to a CY8C52xx circuit
user_1377889 Sep 9, 2016 6:41 AM (in response to norman.chahuares.collantes)There is no way to teach a PSoC5 to be a USB host.
Bob