Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Re: LPC2148 USB samples (not working)

2006-01-13 by Bertrik Sikken

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Carsten Gr\ufffdn wrote:
> Thanks for the comments Bertrik !
> 
> I'm currently using Keil and their ULINK JTAG, and the sample from
> their own website USBHID (also tried the USBMEM, same result). I
> _think_ that the hw of the embedded artists board and the keil board
> are more or less the same (P0.23 and P0.31), but still no success.
> The packed "stuff" should be ok (I guess) as they must have it
> running on their own board/using their own compiler.

Before trying to make it work with gcc, I first made it work with
the Keil compiler and my EA board.

To make it work, I needed to:
* Add this line somewhere before USB_Init is called, to set P0.31:
	PINSEL1 = (PINSEL1 & ~(3 << 30)) | (2 << 30);
* Compile all of the code as ARM code, not THUMB (!)
* I also changed some of the LED bits, because the LEDs are at
  different pins on the EA board.

Kind regards,
Bertrik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDyAENETD6mlrWxPURAj1hAJ0XJLXJ0QP0YGp95FH+P28RtLNSigCfbIqX
nquq4n0XHfxmaKhYSceVVDU=
=vsZ4
-----END PGP SIGNATURE-----

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.