LPC Open USB for NGX Xplorer1837-57 Problem.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC Open USB for NGX Xplorer1837-57 Problem.

335 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dsidlauskas on Mon Feb 09 15:47:19 MST 2015
I'm trying to get LPC Open USB code from ngx_xplorer_1830_usbd_rom_examples to work with my NGX LPC1857 Xplorer board.

I'm using LPC Open V2.12 and Keil Uv4.7.

I've changed the target from 1830 to 1857 and changed the Keil debug initialization file to use internal flash.

The code compiles, links, and loads with no problem, and when run it completes it's USB initialization with no errors. It then hangs waiting for the host to complete it's initialization.

The host never sees the device. I've looked at DP and DN with a scope and they never go high.

The board runs USB using the sample code provided by NGX, so I don't think it's a hardware failure issue.

I assume that the LPC Open code works on the NGX1830 board. Is there some difference with USB between the 1837 and 1857 that could account for this lack of behavior.

I'd appreciate any suggestions or advice.

Thanks,
Dave
Labels (1)
0 Kudos
3 Replies

303 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dsidlauskas on Wed Feb 11 15:23:42 MST 2015
Thank you all for your prompt response and please forgive my poorly worded question. I have found a solution to my problem.

The LPCopen code I am trying to run is from v2.2 of LPCopen for the NGX Xplorer1830 board. The code is in the LPCopen distribution at:

..\LPC Open\applications\lpc18xx_43xx\keil_uvision_projects\ngx_xplorer_1830\usbd_rom\libusbdev

The problem arises because I am running this code on the slightly different board, NGX Xplorer1857.

The problem exists because the Xlporer1830 board uses USB0 for the J3 USB connector while the Xplorer1857 uses USB1.

The solution is to comment out #define USE_USB0 and uncomment #define USE_USB1 in app_usbd_cfg.h. This code then runs on the Xplorer1857

Dave

0 Kudos

303 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Tue Feb 10 09:14:00 MST 2015
Hi Dave,
Could you please clarify below points?

Quote:
I've changed the target from 1837 to 1857 and changed the Keil debug initialization file to use internal flash.



Here you are saying you replace 1830 by LPC1857

and

Quote:
I assume that the LPC Open code works on the NGX1830 board. Is there some difference with USB between the 1837 and 1857 that could account for this lack of behavior.



But you are asking difference between LPC1837 vs LPC1857.

Do you mean difference between  LPC1830 vs LPC1857?

LPC1857 has less RAM than LPC1830.

Could you please let us know the particular example used by you?

0 Kudos

303 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by embd02161991 on Mon Feb 09 20:39:40 MST 2015
Hi David,

Can you please check the boot jumper settings on the board ?
Which USB example are you trying to run ?
Can you please check the flash signature in Project -> Options ->User Run# field ?

Thanks,
NXP Technical Support
0 Kudos