Download KNJN FX2 ARM development boards
Transcript
Table of Contents 1 Welcome............................................................................................................................................................................. 4 1.1 This guide................................................................................................................................................................... 4 1.2 ARM the easy way...................................................................................................................................................... 4 1.3 KNJN FPGA + ARM boards........................................................................................................................................ 4 1.4 ARM processor........................................................................................................................................................... 4 2 OpenOCD........................................................................................................................................................................... 5 2.1 ARM JTAG.................................................................................................................................................................. 5 2.2 OpenOCD................................................................................................................................................................... 5 2.3 JTAG-over-USB.......................................................................................................................................................... 5 3 Run OpenOCD................................................................................................................................................................... 6 3.1 JTAG server................................................................................................................................................................ 6 3.2 Telnet pitfalls............................................................................................................................................................... 6 3.3 Our first OpenOCD session........................................................................................................................................ 6 4 OpenOCD flash memory support....................................................................................................................................... 7 4.1 Check the flash status................................................................................................................................................ 7 4.2 Erase the flash............................................................................................................................................................ 7 4.3 Program the flash....................................................................................................................................................... 7 5 Yagarto ARM toolchain....................................................................................................................................................... 8 5.1 Yagarto....................................................................................................................................................................... 8 5.2 Yagarto's first file: OpenOCD + tools.......................................................................................................................... 8 5.3 Yagarto's second file: GNU ARM toolchain................................................................................................................. 8 5.4 Yagarto's tutorials....................................................................................................................................................... 8 6 Our first ARM project.......................................................................................................................................................... 9 6.1 Compile...................................................................................................................................................................... 9 6.2 Run............................................................................................................................................................................. 9 7 Insight debugger............................................................................................................................................................... 10 7.1 Configure Insight...................................................................................................................................................... 10 7.2 Debug in RAM.......................................................................................................................................................... 11 7.3 Debug in Flash.......................................................................................................................................................... 11 8 Eclipse IDE....................................................................................................................................................................... 12 8.1 Yagarto's third file..................................................................................................................................................... 12 8.2 Eclipse configuration................................................................................................................................................ 12 9 Miscellaneous OpenOCD................................................................................................................................................. 13 9.1 Run OpenOCD manually.......................................................................................................................................... 13 9.2 Stop OpenOCD........................................................................................................................................................ 13 9.3 Run telnet................................................................................................................................................................. 13 9.4 OpenOCD documentation on the web...................................................................................................................... 13 10 Miscellaneous LPC......................................................................................................................................................... 14 10.1 ARM clock............................................................................................................................................................... 14 10.2 ARM pins................................................................................................................................................................ 14 10.3 LPC memory mapping............................................................................................................................................ 14 10.4 OpenOCD connection problem............................................................................................................................... 14 10.5 LPC213x documentation on the web...................................................................................................................... 14 11 IOs.................................................................................................................................................................................. 15 11.1 LPC and FPGA connections................................................................................................................................... 15 11.2 Alternate function LPC pins..................................................................................................................................... 15 12 Board layouts.................................................................................................................................................................. 16 KNJN FX2 ARM development boards Page 2