USB Mass Storage MCB2300 LPC2368 uVision GCC problem

OP (Company: Inspiralia) #1254540
Hello,
I´ve been taking a look at the existing posts, but no one of them solves 
my problem...
I am triyng to port keil USBMem example to GNU. I´ve made all the 
__packed changes suggested in different forums, data allignment ones and 
many others, but I still don´t manage to have the board understood by 
the PC as a proper USB device.
Has anyone managed it? Is there some code anywhere?
Else... what could I try or check to solve my problems?
Thank you very much for your help!

Best regards,
Ruben.
Moderator #1254697
I have once ported the HID-example from NXP which is made for the 
Realview/Keil tools to GNU tools. I will search for the code...

As far as I know LPCUSB (see sf.net) does also support LPC23xx/24xx. You 
may give it a try.
OP (Company: Inspiralia) #1254794
Martin Thomas wrote:
> I have once ported the HID-example from NXP which is made for the
> Realview/Keil tools to GNU tools. I will search for the code...
>

That would be great: only file substitution would be necessary... The 
top layer (and the one not giving problems) is the only difference 
between the HID and the Mass Storage class applications.

Cheers,
Ruben.
OP (Company: Inspiralia) #1258686
I think it could also be a problem of the interrupt handling, with 
something related to the startup file and/or the linker .ld one.
Could that be a reason?
Thanks!
OP (Company: Inspiralia) #1259641
Martin Thomas wrote:
> I have once ported the HID-example from NXP which is made for the
> Realview/Keil tools to GNU tools. I will search for the code...
>
> As far as I know LPCUSB (see sf.net) does also support LPC23xx/24xx. You
> may give it a try.


I have been trying also this, but running in debug mode, it gets stuck 
in the PLL lock...

Reply

A question of your own? This thread is over 17 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.