EmbDev.net

Forum: ARM programming with GCC/GNU tools USB Mass Storage MCB2300 LPC2368 uVision GCC problem


Author: Ruben Rodriguez (Company: Inspiralia) (ruben)
Posted on:

Rate this post
0 useful
not useful
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.

Author: Martin Thomas (mthomas) (Moderator)
Posted on:

Rate this post
0 useful
not useful
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.

Author: Ruben Rodriguez (Company: Inspiralia) (ruben)
Posted on:

Rate this post
0 useful
not useful
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.

Author: Ruben Rodriguez (Company: Inspiralia) (ruben)
Posted on:

Rate this post
0 useful
not useful
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!

Author: Ruben Rodriguez (Company: Inspiralia) (ruben)
Posted on:

Rate this post
0 useful
not useful
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...

Author: Ruben Rodriguez (Company: Inspiralia) (ruben)
Posted on:

Rate this post
0 useful
not useful
May it be a problem of the interrupt?
Did you find the code?
Thank you very much!

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.