Build working Blinky-example for lpc1758

50 views
Skip to first unread message

MA

unread,
Jun 8, 2010, 9:19:13 AM6/8/10
to MicropendousX
Hi,

I'm using my own lpc1758 board based on the schematic from
MicropendousX-2010-03-31.zip.

I'm trying to build a clean Blinky example from svn using Sourcery G++
Lite 2010q1-188 4.4.1. The building process seems to work fine and i
get a 6k hex-file but after the file has been loaded onto the
microcontroller i get no blinking. Has someone else had this problem?

The board seems to work since the Blinky.hex file from
MicropendousX-2010-03-31.zip works as expected. However i can't build
the example from MicropendousX-2010-03-31.zip, make just exits with
Abstract.txt:1: *** missing separator. Stop.
Anyone's got any solution to this one?

I haven't got access to any JTAG-equipment yet so i have to stick to
serial loading and no debugging.

Thanks for any help!
Mikael

Casainho

unread,
Jun 8, 2010, 5:44:57 PM6/8/10
to microp...@googlegroups.com
> I haven't got access to any JTAG-equipment yet so i have to stick to
> serial loading and no debugging.

Did you download latest code? because I had the same problem when
trying to build, but I hope code is ok now.

Buy a JTAG or build yours! JTAG/debug is powerfull!!

Opendous Inc.

unread,
Jun 8, 2010, 6:07:24 PM6/8/10
to MicropendousX
Check to make sure your LED works. Just connect Pin3/Drain of the
transistor to GND with a wire (I am assuming you have the same
setup). If it lights up then the problem is with the code.

The current distribution has a bug whereby you can only compile each
project once and critical files then get deleted.

I will prepare a new distribution and test it against 2010q1-188 as
soon as possible.

If you need a cheap JTAG adaptor I have an Open Hardware DIY'able
project for one at http://www.opendous.org/JTAG.

If you are loading firmware via UART then make sure your loader
software performs a read test to verify the firmware. You may also be
missing the vector checksum.

microbuilder.eu has some tutorials and examples for the very similar
LPC1343 at http://code.google.com/p/lpc1343codebase/ including a
checksum tool: http://code.google.com/p/lpc1343codebase/source/browse/trunk/tools/lpcrc/

MA

unread,
Jun 10, 2010, 11:03:26 AM6/10/10
to MicropendousX
Thanks for the quick replies.

I used UART loading using a BeeProg+ (has an option for vector
checksum) which reported the verification as successful, but the
program didn't seem to run.

Anyhow, I built a simple Wiggler-JTAG which seems to work. With the
Wiggler I can build, program and debug Blinky from latest svn.
However, one odd thing is that it seems I have to program the chip
twice (using 'make program') for it to work. Another issue is
verification fails even with bin patched with lpcrc. I'll poke around
a bit more to see if I can find anything helpful.

By the way, I forgot to mention I'm on Linux, I noticed the makefile
references arm-none-eabi-gdb.exe, to get 'make debug' working on Linux
the .exe ending can be removed.

Mikael


On Jun 9, 12:07 am, "Opendous Inc." <opend...@gmail.com> wrote:
>   Check to make sure your LED works.  Just connect Pin3/Drain of the
> transistor to GND with a wire (I am assuming you have the same
> setup).  If it lights up then the problem is with the code.
>
>   The current distribution has a bug whereby you can only compile each
> project once and critical files then get deleted.
>
>   I will prepare a new distribution and test it against 2010q1-188 as
> soon as possible.
>
>   If you need a cheap JTAG adaptor I have an Open Hardware DIY'able
> project for one athttp://www.opendous.org/JTAG.
>
>   If you are loading firmware via UART then make sure your loader
> software performs a read test to verify the firmware.  You may also be
> missing the vector checksum.
>
>   microbuilder.eu has some tutorials and examples for the very similar
> LPC1343 athttp://code.google.com/p/lpc1343codebase/including a
> checksum tool:http://code.google.com/p/lpc1343codebase/source/browse/trunk/tools/lp...

Casainho

unread,
Jun 10, 2010, 11:41:44 AM6/10/10
to microp...@googlegroups.com
On Thu, Jun 10, 2010 at 4:03 PM, MA <blobibl...@gmail.com> wrote:
> Thanks for the quick replies.
>
> I used UART loading using a BeeProg+ (has an option for vector
> checksum) which reported the verification as successful, but the
> program didn't seem to run.
>
> Anyhow, I built a simple Wiggler-JTAG which seems to work. With the
> Wiggler I can build, program and debug Blinky from latest svn.

Great!!!

OpenOCD already injects the vector checksum, so, if you flash using
JTAG and OpenOCD, you don't need any other tool :-)


> By the way, I forgot to mention I'm on Linux, I noticed the makefile
> references arm-none-eabi-gdb.exe, to get 'make debug' working on Linux
> the .exe ending can be removed.

Here Linux too ;-)

Reply all
Reply to author
Forward
0 new messages