Forums

USB communications are causing my firmware to reset

Started by ajellisuk July 30, 2009
Hi,

My project is using an LPC2148 microcontroller and I'm using the USB in bulk mode. I'm using IAR systems Power PAC RTOS with the USB addon.

For some reason I have found that my firmware sometime resets when I either physically connect my product to a PC via the USB port or it resets when I start sending and receiveing data via the USB port.

Has anyone elese experience problems like this and if so how did you solve it?

Thanks in advance

Andrew

An Engineer's Guide to the LPC2100 Series

This is generally observed when your board is asking for more than 500mA of
current when powered through USB. Try disconnecting few modules through
jumper settings or any other means and check the behavior.
On Thu, Jul 30, 2009 at 3:56 PM, ajellisuk wrote:

> Hi,
>
> My project is using an LPC2148 microcontroller and I'm using the USB in
> bulk mode. I'm using IAR systems Power PAC RTOS with the USB addon.
>
> For some reason I have found that my firmware sometime resets when I either
> physically connect my product to a PC via the USB port or it resets when I
> start sending and receiveing data via the USB port.
>
> Has anyone elese experience problems like this and if so how did you solve
> it?
>
> Thanks in advance
>
> Andrew
>
>
>

--
Warm regards
Ashwin


Hi Ashwim

Thank you for your reply.

I forgot to mention that my device doesn't draw any power from the USB port, it has it's own power supply. I do check VBus so that my firmware knows if there is a physical connection between my device and a PC. Other than that my device doesn't do anything with the power from the USB port.

I am convinced that the problem lies with the firmware and / or the registors in the micro.

Kind regards

Andrew

--- In l..., Ashwin Athani wrote:
>
> This is generally observed when your board is asking for more than 500mA of
> current when powered through USB. Try disconnecting few modules through
> jumper settings or any other means and check the behavior.
> On Thu, Jul 30, 2009 at 3:56 PM, ajellisuk wrote:
>
> >
> >
> > Hi,
> >
> > My project is using an LPC2148 microcontroller and I'm using the USB in
> > bulk mode. I'm using IAR systems Power PAC RTOS with the USB addon.
> >
> > For some reason I have found that my firmware sometime resets when I either
> > physically connect my product to a PC via the USB port or it resets when I
> > start sending and receiveing data via the USB port.
> >
> > Has anyone elese experience problems like this and if so how did you solve
> > it?
> >
> > Thanks in advance
> >
> > Andrew
> >
> >
> > --
> Warm regards
> Ashwin
>
>
Try using a different internal USB port hub on your computer (if you are using the front USB ports, try the back ones). Are you using an Eval board? If so, are you powering up the eval board using another USB connection?

I had a similar problem with LPC2468 Embedded Artists board which uses a USB connection for power. I found out later that I cannot power up the board and use one of the LPC2468 USB feature using the same internal USB port hub on the PC.

Hope this helps.

Karim.

--- In l..., "ajellisuk" wrote:
>
> Hi,
>
> My project is using an LPC2148 microcontroller and I'm using the USB in bulk mode. I'm using IAR systems Power PAC RTOS with the USB addon.
>
> For some reason I have found that my firmware sometime resets when I either physically connect my product to a PC via the USB port or it resets when I start sending and receiveing data via the USB port.
>
> Has anyone elese experience problems like this and if so how did you solve it?
>
> Thanks in advance
>
> Andrew
>