Hello,
can anybody explain me why I can find in the docs of LPC2387 and LPC2361: "USB 2.0 device/host/OTG with on-chip PHY ...."
and in the "UM10211 from nxp" (user manual for 23xx) in chapter 13, usb host controller: "The USB host controller is available on the LPC2388 _only_"
I want to boot from a usb stick for update the firmware of my application. Is there any solution to boot from usb stick with LPC2387 and LPC2361? If not: is it possible with sd-card?
Thank you very much for any links, code, hints whatever.
Greetings from germany, Treess
The version of the manual I have says: "An initial LPC2364/65/66/67/68/77/78/87/88 User manual revision"
NXP is merging quite a lot of chip variants into the same user manual, and you must then keep track of differences between 100 and 144 pin variants and what building blocks the different variants has.
One of the first sections "How to read this manual" enumerate the variants and what block diagrams and ordering options that are applicable.
Relevant summaries are: - On LPC2364/66/68, LPC2378, LPC2387, LPC2388: USB 2.0 device controller with on-chip PHY and associated DMA controller.
- On LPC2388: USB Host/OTG controller.
- On LPC2367/68, LPC2377/78, LPC2387, LPC2388: Secure Digital (SD) / MultiMediaCard (MMC) memory card interface.
I don't know what a LPC2361 is, but LPC2387 can't work as USB host - only device. The LPC2387 does have the SD interface.
But one thing to think about - you don't normally boot from USB or SD - the processor can't run instructions from such memory. You can write a boot loader that copies a program into RAM and run from there (but that seriously limits the allowed program size) or instead copies a program from the USB/SD into the internal flash. This can allow the processor to check on every boot if you have connected a USB memory or SD card with a more recent application that should be programmed.
hei wow, thank you for the very fast reply.
yes, nxp docs are a little bit confusing. But in the doument for the LPC2387_3.pdf in chapter7.10 "usb interface" I can read: "The LPC2387 USB interface includes a device, Host, and OTG Controller. Details on typical USB interfacing solutions can be found in Section 11.1." and in section 11.1 there are curcuits for host and otg and so on. On the other hand in the manual you mentioned, i read the description there is _no_ usb host.
Well, maybe a bug in the special document for the LPC2387.
The second question "boot from usb or sd card" was not correct. That's right. I mean a boot loader, that read from the sd card or usb stick, copy it, and then run normaly from the internal flash. Till now, i worked with atmel at91sam9263, this bootloader is very comfortable. Is there any example, for the bootloader, that reads from sd card or usb for LCP2378 or LCP2388?
Searched a while, but can't find something like this... Is it that difficult with the LCP23xx or why are there a lot more of atmel examples? Some days i think google 's not my friend...
Thanks once more, treess
hello again.
found out: 1. the lpc2387 document is the newer one. from october 2008, the user manual for 23xx series from march 2008.
2. there's a eval kit from keil with the 2387, but in the desciption I allways find "usb", not defined if host or device.
is there anybody knowing this LPC2387 or knows for sure if it is with or without usb host?!?
thanks a lot. treess
This note in the MCB2300 User's Guide might help:
Revision B LPC2387 devices with a date code of xxx0836xx or higher support USB-OTG. MCB2387 boards built with the these LPC2387 devices are populated with the USB "B" and mini-USB connectors. MCB2387 boards built with older LPC2387 devices will not have the USB "B" and mini-USB connectors installed.
See:
http://www.keil.com/support/man/docs/mcb2300/mcb2300_intro.htm
To add to prior comments, the LPC2387 silicon errata sheet version 1.1 from November 2008 (www.nxp.com/.../ES_LPC2387_2.pdf) states the following:
Note 2: Devices with a date code prior to 0836 (manufactured before week 36 in 2008) have USB 2.0 full-speed dual port device with on-chip PHY and associated DMA controller. Parts marked with date code 0836 or later have USB 2.0 full-speed dual port device/host/OTG controller with on-chip PHY and associated DMA controller. Please refer to page 2 of this document for details on how to identify the date code.
The date code is interpreted as follows: The typical LPC2387 devices have the following top-side marking: LPC2387xxx xxxxxxx xxYYWW R[x]