Hi. I have tried the software in an eval board and it is working fiine. I think I will try to replace the mcu part. I can't figure out anything else could happened
Hi. Thank for the answer.
I will sumarize the problem.
I am workinig in a board designed by my self with the LPC4337JBD144 uC using USB0 port.
First I put series 33ohm resistors in DM and DP with 15Kohm pulldown. With that setup the USB was working fine with the example and with my own code, wich use the cdc example. But suddenly while I was debugging LPCXpresso threw an error about some register and stop the debugging session. After that USB never works again. Windows doesn't even recognice a device attached. Nothing.
Then I read the user manual and see that for USB0 it is not necessary tu put the series resistors so I took them off but the USB0 is not working.
I tried also the cdc example again but it doesn't work.
The other peripherials of the microcontroller are working fine. In the project I am using a CAN port and it works well. But the USB doesn't work.
It is posible that the USB0 phy could be damaged and the rest of the microcontroller still works good?
It is possible that a device can be damaged in a way that a single peripheral dies but other parts work (e.g. if an internal bond wire gets burnt out).
Its very hard to diagnose what might be wrong given that it is your software and hardware design. Do you have an eval board to try and in order to eliminate a PC or LPCXpresso IDE issue?
Hi Andre,
You should see Windows enumerate several devices when the board is plugged in via the J5 USB connector. One of these will be a VCOM serial port for the debug probe (i.e. the LPC4322 device on the board); if you have the correct drivers installed this will show up under Ports (COM & LPT) > LPC-LinkII UCom Port (COMxx) when xx will be whatever number Windows decided to use. When you run the cdc examples a different driver will be picked up, but this is reasonable sanity check.
How about trying using a power USB hub? The LPC43xx devices need a fair amount of current when running at full speed, and with the debug probe also running some laptops wont provide this. If you don't have one at hand you can try only plugging in the target connection (J4) and not the debug probe (J5) after flashing the code, thereby removing the latter from the power drain... if the demo starts to work then that is almost certainly your issue.
I did just try my LPCXpresso4337 and the example works for me, with both drivers appearing. I'm using a docking station.
regards
Brendon
I write again with the hope of a solution.
It's all equal than before, but I've noticed that I had put 33 ohm series resistance with DM and DP and today reading the user manual I found that USB0 doesn't need the series resistances, so I took them of and connected directly DM and DP to the connector. But nothing's changed. The computer still not recognicing anything, it's just as if nothing is connected.
Is there the posibility that the phy has broke but the microcontroller still working?
The problem start when I was debugging the application, sudenlly LPCXpresso trhow an error pop-pu saying aomething about a register and then never connected again.
Thank you