LPC1343 Board uses a special JTAG interface that does not have open
sourced driver support.
So if you do not want to use their GUI (based on Eclipse if I remember
correctly) which is mainly C/C++ based then the easiest way is to cut
the board in two pieces and to then connect it to an inexpensive ST-link
V2 based JTAG probe or another JTAG probe that is supported by openocd
project (At least on the mac it makes more sense to use an olimex JTAG
probe together with openocd because stlink v2 support is quite new).
I have found this nice tutorial on how to connect the board to another
JTAG debugger: https://uwe-arzt.de/20130115.html
I am currently extending Lazarus so that it natively supports connecting
to a debugserver, I still have some problems with initial run command
but if you can wait a few days you can help testing this integration.
Michael
Am 30.01.13 15:09, schrieb Koenraad Lelong:
Op 30-01-13 13:38, delph...@smythconsulting.net schreef:
I've been following the wiki and have successfully created fpc for my
arm processor ( Cortex M3 - using a LPC 1343 board) ( as per the wiki's
intructions)
once i have written my sample program is there anyway to debug it on the
MCU ? ( ie like doing in Lazarus for win32/64 projects)
any help would be of much benefit
Kind Regards
Justin Smyth
Hi,
Mostly you debug via gdb. Depending on the board us can use jtag (e.g.
openocd) or another hardware-interface. Some STM32 boards have an
ST-link interface.
P.S. what version of fpc did you use (svn-revision) ? I'm asking
because I'm having troubles with my cross-compilers. At the moment I'm
making a virtual appliance with fpc 2.6.0 for 386 and some revisions
of trunk. I made some scripts to compile the crosscompiler.
This way interested people can look into the problems.
And when there is a usable compiler, I can make the appliance to share
it with interested users.
Regards,
Koenraad Lelong
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal