The HEX file worked. Thank you. This indicates that my board is able
to run a program. However, your program is too simple to start. I
added it into my project but it doesn't work. I'm using ADS 1.2. And
it need some other files such as vector.s, init.s and *.mcp and so
on. I think I may set these files wrongly. Do you use ADS and have
the complete code with which I can compile and debug and add some my
codes. This will be much helpful for me.
best regards,
Richard
--- In lpc2000@yahoogroups.com, Robert Adsett <subscriptions@a...>
wrote:
> At 04:13 AM 3/30/04 +0000, you wrote:
> >Thank you, Robert. Where is it? I have an oscilloscope here and can
> >watch the toggled pin wave.
> >Waiting for you.
>
> I was going to clean this up a little first, but I think you need
it more
> than I need to clean it up ;)
>
> http://www.aeolusdevelopment.com/Files/test1.hex
>
> Fairly simple source.
>
> #include "lpc210x.h"
>
> int main( void)
> {
> int out = 0;
> int i;
>
> PINSEL0 &= 0;
> IODIR |= 0x100;
>
> while( 1) {
> if( out == 0) {
> out = 1;
> IOSET = 0x100;
> }
> else {
> out = 0;
> IOCLR = 0x100;
> }
> for( i = 0; i < 100000; i++) {
> }
> }
> return( 0);
> }
>
> This is an old hex of mine. One of the first test ones I used. I
just
> tested it to make sure it works and it produces about a 0.5 Hz
square wave
> with a 10MHz clock. Should be translatable to most compilers.
>
> I'll make a cleaner version available but in the meantime this
should run.
>
> Robert
>
> " 'Freedom' has no meaning of itself. There are always
restrictions,
> be they legal, genetic, or physical. If you don't believe me, try
to
> chew a radio signal. "
>
> Kelvin Throop, IIIMessage
Re: lpc2105 Upload program
2004-04-01 by painfulcn
Attachments
- No local attachments were found for this message.