Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2013-01

Arm Embedded Question

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

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

Koenraad Lelong
to Unknown author
Show quoted text 15 lines
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

Michael Ring
to Koenraad Lelong

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

Koenraad Lelong wrote 38 lines
Op 30-01-13 13:38, 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 - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Unknown author
to Michael Ring

what about using a board like so

http://www.ebay.com.au/itm/280970074709?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1438.l2649

to covert an existing jtag debugger i use ? ( this one i have -> http://microcontrollershop.com/product_info.php?cPath=110_161&products_id=1106 )

Kind Regards

Justin

Earlier message 66 lines
-----Original Message----- From: Michael Ring Sent: Thursday, January 31, 2013 2:31 AM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] Arm Embedded Question 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, 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 - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal >
Michael Ring
to Unknown author

I doubt that it makes much sense to buy the adapter.

Please have a look at page 4 of the schematics for the lpcxpresso 1769 Board ( first pdf document hit when you google for "lpcxpresso 1769 schematic") there is clearly stated:

"J5 can connect to external SWD/JTAG interface if LPCXpresso targetside (LPC17xx) is disconnected."

so it seems that you cannot connect an external JTAG debugger to this 10pin connector without some extra work.

You could remove all the 100 Ohm resistors R23 R24 R25 R26 R28 and R30, then you could use your adapter if the pin layout of the adapter matches. But cutting the board in two peaces looks easier to me ,-)

Michael

Am 30.01.13 21:28, schrieb

Show quoted text 91 lines
what about using a board like so http://www.ebay.com.au/itm/280970074709?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1438.l2649 to covert an existing jtag debugger i use ? ( this one i have -> http://microcontrollershop.com/product_info.php?cPath=110_161&products_id=1106 ) Kind Regards Justin -----Original Message----- From: Michael Ring Sent: Thursday, January 31, 2013 2:31 AM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] Arm Embedded Question 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, 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 - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal