Size: 2477
Comment:
|
Size: 2342
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 6: | Line 6: |
''Please note that this page in currently under construction. I don't have yet my setup (Olimex ARM-USB-OCD + LPC-H2103 prototype card) in working condition. I write stuff here when I progress. If you are also working with OpenOCD in Ubuntu, please feel free to add your contribution here.'' | ''Please note that this page is not yet completed!'' |
Line 9: | Line 9: |
OpenOCD information can be found here: Website: http://openocd.berlios.de/web/ |
|
Line 19: | Line 14: |
= Using OpenOCD with Olimex ARM-USB-OCD and LPC-H2103 = | = Usage examples = |
Line 21: | Line 16: |
== OpenOCD Setup == | == Using OpenOCD with Olimex ARM-USB-OCD and LPC-H2103 == === OpenOCD Setup === |
Line 40: | Line 37: |
Power on LPC-H2103 board by attaching 5 volts between ''Vin'' and ''gnd'' pins. Refer to board schematics for correct pins ( http://www.olimex.com/dev/pdf/lpc-h2103-pins.pdf ). The board should now have power led (red) on and another led (green) flashing. | Power on LPC-H2103 board by giving 5 volts between ''Vin'' and ''gnd'' pins. Refer to board schematics for correct pins ( http://www.olimex.com/dev/pdf/lpc-h2103-pins.pdf ). The board should now have power led (red) on and another led (green) flashing. |
Line 64: | Line 61: |
== ARM development toolchain == | === ARM development toolchain === |
Line 68: | Line 67: |
== Blinking led example == | === Blinking led example === |
Line 79: | Line 80: |
Help for ''openocd'' is available from: http://openocd.berlios.de | OpenOCD website: http://openocd.berlios.de |
Line 83: | Line 86: |
Good stuff can be found from SparkFun Electronics forum: http://forum.sparkfun.com/ | SparkFun Electronics forum: http://forum.sparkfun.com/ http://danielromaniuk.com/?q=node/19 Usage info: http://openfacts.berlios.de/index-en.phtml?title=Open%20On-Chip%20Debugger Good howto: http://www.sparkfun.com/tutorial/ARM/ARM_Cross_Development_with_Eclipse.pdf |
Line 86: | Line 97: |
Category: Embedded |
Parent: Software
|
OpenOCD
Please note that this page is not yet completed!
Introduction
Installation Instructions
Look for the package named openocd in the Synaptic Package Manager and install it.
Usage examples
Using OpenOCD with Olimex ARM-USB-OCD and LPC-H2103
OpenOCD Setup
After installing OpenOCD package, you need to set permissions right. Create a file ""/etc/udev/rules.d/45-ft2232.rules"" with following contents:
BUS!="usb", ACTION!="add", SUBSYSTEM!=="usb_device", GOTO="kcontrol_rules_end" SYSFS{idProduct}=="0003", SYSFS{idVendor}=="15ba", MODE="664", GROUP="plugdev" LABEL="kcontrol_rules_end"
Then connect ARM-USB-OCD to the USB port. Check ""dmesg"" which should give the following output:
TODO: Add correct dmesg output here...
Connect ARM-USB-OCD dongle to LPC-H2103 prototype board via JTAG cable.
Power on LPC-H2103 board by giving 5 volts between Vin and gnd pins. Refer to board schematics for correct pins ( http://www.olimex.com/dev/pdf/lpc-h2103-pins.pdf ). The board should now have power led (red) on and another led (green) flashing.
Create a file named openocd.cfg with following contents:
TODO: add correct configuration file here.
Start OpenOCD daemon with the following command:
openocd -f openocd.cfg TODO: Add output here
Test the setup by connecting to openocd daemon with telnet:
telnet localhost 4444 TODO: add some more stuff here
ARM development toolchain
TODO: how to install ARM development toolchain
Blinking led example
Todo: Blinking led code
Todo: Compilation
TODO: upload with openocd
TODO: Running
Further Help and Documentation
OpenOCD website: http://openocd.berlios.de
Further Reading
SparkFun Electronics forum: http://forum.sparkfun.com/
http://danielromaniuk.com/?q=node/19
Usage info: http://openfacts.berlios.de/index-en.phtml?title=Open%20On-Chip%20Debugger
Good howto: http://www.sparkfun.com/tutorial/ARM/ARM_Cross_Development_with_Eclipse.pdf