Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

USB2.0 interfacing with LPC2148 and PC

Status
Not open for further replies.

robo111

Junior Member level 2
Joined
Mar 28, 2016
Messages
24
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
208
Hi Friends,

I'm using the LPC2148(ARM7) controller. it has Usb2.0 in-bulit support.

Now USB act as a Interface b/w the controller and my PC .I wants to send data from PC and controller should able to read it and reply to PC from controller.

Just like a chatting in 2-ways.

How to do it?what are the software supported for this task? presently I'm using
Keil4 and hyper terminal,windows 7 o.s?/
how to check the both output??

Thanks in advance
Robo
 

Hi Friends,

I'm using the LPC2148(ARM7) controller. it has Usb2.0 in-bulit support.

My assignment is to write a program in C, then i have to send it to a microcontroller through usb port. I have finished a program in C, the problem is that i don't know how to send it to microcontroller through USB port.
Can some of you please help me.
It is urgent coz i have to hand it at the end of this week.


thanks
 

Hi,

Your question is toogeneral to be answered.

Google for "LPC2148 bootloader".

Read through he documents and then ask a specific question.

Klaus
 

Depends of communication class being used. If it is CDC - you will have a new COM port available after connecting and installing drivers. If it is HID class, try to use USB HID library. Google it yourself, please.
 

Thank you Sir,

I'm using CDC device of USB2.0..

please suggest me some links related to this


Thanks
 

Releated to what? To COM port? You can google it yourself.
For COM port there are specific class available in Visual Studio. Work very simple.
 

Hi Friends,


But i'm just using USB type B connector from development board through PC, and I had
gone through virtual serial port links and it was related to drivers[should I install it??]

I'm trying to communicate from PC TO MICRO CONTROLLER BOARD such that in the
windows environment for example if I write a strings(say "HELLO") from notepad
application using system keyboard, and USB should understand the strings in
the system side and it should and print on the LCD of controller.

Thanks
 

Dear Friends,

I'm using the LPC2148(ARM7) controller. it has Usb2.0 in-bulit support.

I'm trying to use USB as HID device . when I connect my USB to sysyem it shows the error as -"Windows has stopped this device because it has reported problems.(Code 43)" and it's not recognized in the usb_root port.
so please suggest on this
 

This error means that your code is incorrect. Nothing more. Interface doesn't work. Windows can't recognise it.
 

Hello friends,

Thanks for supporting me. Now I'm able to get HID for my USb in the device manager. it's shows name as-"human compliant device". now I need to change my device name according to my choice is it possible to do it?? which USB is better to use while reading the data from PC and print it on LCD display in the LPC2148 controller. NOw I'm able to get two devices
1>mass storage device 2>human compliant device.??
 

The device name is stored in configuration descriptor. Don't forget to specify the lenght if you will change it.
 

Hello Friends,

I've able to detect the my HID usb in the device manager and it's showing by the name of "HID compliant device"
now I wants to change this name by some others name. I"ve tried to change in the usb configuration descriptor code.
give me suggestion and name not changing. whether names are pre installed in the system drivers??
 

Hi,

I hope you can change the name of the device in device descriptor. I think in device descriptor specific field is allocated for it.

Let me know if you want more info..
 

Hi Friends,

while working with LPC2148 controller of USB, I got this error in keil Uvision 4 software.
I'm trying to read cpsr and set cpsr with these function. but i have problem using them in keil uvision 4.

static inline unsigned __get_cpsr(void)
{
unsigned long retval;
asm volatile (" mrs %0, cpsr" : "=r" (retval) : );
return retval;
}

static inline void __set_cpsr(unsigned val)
{
asm volatile (" msr cpsr, %0": :"r" (val));
}
and i get this error:

error: #65: expected a ";"
error: #20: identifier "asm" is undefined
so i used __inline and __asm and now i get this error:

source\main.c(94): error: #18: expected a ")"
source\main.c(94): error: #18: expected a ")"
Any idea on how to fix it? or what is the steps to move these functions in a separate asm file which seems to be a solution,

Thanks
 

Hello Friends,

I'working on the USB bootloader development for LPC2148(ARM7) controller.
Now I'm able to activate the IAP mode for booting process.
while building the code I'm getting below error.
arm-none-eabi-gcc: error: arm: No such file or directory
arm-none-eabi-gcc: error: code.elf: No such file or directory. how to set the path for gcc complier in the keil4 and using windows as O.S. and followed the below link to downloaded the gcc tool chian.
https://launchpad.net/gcc-arm-embedded/+download

please suggest me on this.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top