<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Den 17-05-2014 01:33, Justin Smyth
skrev:<br>
</div>
<blockquote cite="mid:20140516233908.31944769@freepascal.dfmk.hu"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div>
<div style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif">Hi
everyone,<br>
<br>
I have recently got open ocd v8 to talk to my nxp lpc 1343 via
a stlinkv2 , should fpc ( 2.6.4 or higher support this type of
CPU and does anyone have any ideas how to hook up gdb to
openocd ? I am thinking of using Lazarus to step through some
code if possible)<br>
<br>
Justin </div>
</div>
<br>
</blockquote>
FPC supports that, yes.<br>
<br>
To build fpc for it run:<br>
make buildbase installbase OS_TARGET=embedded CPU_TARGET=arm
SUBARCH=armv7m CROSSINSTALL=1<br>
<br>
To compile an application for it:<br>
fpc -Parm -Tembedded -Cparmv7m -WpLPC1343FHN33 -gw yourprogram.pas<br>
<br>
In Lazarus you can use "GNU remote debugger (gdbserver)" to connect
to openocd. You'll need to point it at a GDB compiled for arm-elf.<br>
I'm not sure it will work though, but I think that was what that was
developed for.<br>
<br>
Best Regards,<br>
Jeppe<br>
</body>
</html>