Paulo
P0.30 defaults to AIN3 at powerup. You need to set its usage
to GPIO in PINSEL1 before using it.
Regards
-Bill Knight
R O SoftWare &
http://www.theARMPatch.com
On Fri, 25 Feb 2005 11:45:40 +0000, Paulo de Almeida wrote:
Hi Varuzhan,
Thanks for your reply. The strange thing is that the Philips Flash
Utility works fine when doing a "Compare Flash" with the Olimex
suplied example HEX file.
Ok, ignoring the "Compare Flash" error with my program I still dont
understand why a stupid simple program like this:
#include <LPC22xx.H>
int main (void) {
// define P0.30 as output
IODIR0 = 0x40000000;
// bring P0.30 low (led is conect betwen VCC and P0.30)
IOCLR0 = 0x40000000;
while (1);
which uses the Keil suplied startup ASM file for the Philips LPC22xx
does not work.
Any ideas ?
Regards
Paulo A.
>On Fri, 25 Feb 2005 14:56:28 +0400, you wrote:
>Once or, maybe, even more in this forum was mentioned, that the
>Philips Flash Utility has a bug, it does download, but do not work with
>"Compare Flash" function.
>Buy the way, V2.2.1 is now available, but again the bug is not corrected,
>though, if Philips open its source code, any programmer can easily correct
>this bug.
>Varuzhan
> ----- Original Message -----
> From: Paulo de Almeida
> To: lpc2000@yahoogroups.com
> Sent: Friday, February 25, 2005 2:35 PM
> Subject: [lpc2000] Keil and LPC2294 - What am I doing wrong ?
> Hi,
> I'm using Keil (UV3) with the Olimex LPC-H2294 board and I just can't
> get any of my programs to work.
> I made a very small program to turn on a led in the board using the
> Keil suplied Philips startup ASM file and just 2 lines of C code to
> setup the IO0DIR and to clear the desired pin. The program complies
> fine and the HEX file looks Ok (as far as I can tell) , I use the
> Philips LPC2000 Flash Utility V2.2.0 to upload the file and it works
> ok, but when I do a "Compare Flash" the Philips LPC2000 Flash Utility
> tells that the "file compare failed" and the program does not run on
> the board.
> I have upload to the board (using the Philips LPC2000 Flash Utility )
> the HEX file with the exemple program suplied by Olimex and I DONT get
> "file compare failed" and the board works fine. So, the board is in
> perfect working condition.
> Can someone please give me some sugestion on what is going wrong , is
> there any special issue with Keil and the ?
> Thanks
> Paulo A.
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
>
>
>------------------------------------------------------------------------------
> Yahoo! Groups Links
> a.. To visit your group on the web, go to:
> http://groups.yahoo.com/group/lpc2000/
>
> b.. To unsubscribe from this group, send an email to:
> lpc2000-unsubscribe@yahoogroups.com
>
> c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>[Non-text portions of this message have been removed]
>
>Yahoo! Groups Links
>
Yahoo! Groups Links