We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I want someone to help me from where i can study the firmware part. Also the sample code with explanation a simple code to just display the charecters to lcd would be enough. Also i am going to wright the linux drivers for the same functionalities which i would be exporting.
Let me guess. There is a PC running Linux acting as USB host and there is an ARM7-powered device acting as a USB device connected to the PC. It appears that the device has at least an LCD capable of displaying characters. The linux driver part is no problem, it seems. Help is required to write new firmware or modify existing one in the USB device. That's it for now. My telepathic powers have run out.
Yes that's correct.... if you have samples code can you please help me with the code and the explanation or any source where i can find the relevent solution..
... what you mean by, "export its functionalities to usb" ?!
I have the arm7 Blue board kit LPC2148 and i want to use its functions such as LCD,LED and ADC through USB. I need the firmware part for this. After this i will wright the linux drivers to use this functions. I have no problem with the drivers right now.
I've got a red board and Fagin said the code won't work on a blue one.
So you know about USB, device classes, etc?
The first thing you need to decide, then, is how this functionality will appear to the host - will you use HID, or make it look like a COM port, or what...?
BTW: the word is "write"
"BTW: the word is "write""
Wright.
By the way - there are no such program in existence, so you can't request someone to post it.
You will have to define a large number of commands, and then implement a firmware that decodes the received data and processes commands and parameter data.
For the prcessing of commands, it doesn't matter much if the commands are received through a serial port or through USB. A serial port sends data a character at a time and requires you to define some framing for breaking the data into individual commands. USB sends messages. But that difference is marginal from your point of view.
To the OP:
Since you said that, you are capable to write the Linux drivers, I assume you are familiar with GNU Tool-chain. And you said the MCU is LPC2148. Then I think LPCUSB project is good for you.
Check this: LPC214x USB stack
sourceforge.net/.../
lpcusb is a USB core stack for the built-in USB device of LPC214x microcontrollers. It handles the hardware interface and USB enumeration/configuration. Included are usage examples like USB joystick HID, USB virtual COM port and USB mass storage on SD-ca
( Don't know how to contact the authors of LPCUSB. )
Sample Code Bundle for LPC213x/LPC214x Peripherals using Keil's µVision (Dec 18, 2008)
ics.nxp.com/.../code.bundle.lpc213x.lpc214x.uvision.zip