commit e0f36ec3b1383846f8ed15a6841cdcf34e51344f
parent e49f9c029847db38e77d621356e3f1d71a180edb
Author: Brian Swetland <swetland@frotz.net>
Date: Wed, 5 Aug 2015 22:52:41 -0700
beta2 firmware and installation/setup instructions
Diffstat:
5 files changed, 83 insertions(+), 0 deletions(-)
diff --git a/README b/README
@@ -27,6 +27,12 @@ stm32f2xx MCUs.
Everything is either Apache 2 or BSD licensed, to allow for easy,
no-strings-attached, inclusion in your own projects. Share and enjoy!
+Firmware for the LPC Link 2 and installation instructions are in the
+firmware directory. Firmware source code is part of the lk embedded
+kernel project (look in app/mdebug):
+https://github.com/travisg/lk
+https://github.com/travisg/lk/tree/master/app/mdebug
+
Included Third Party Software
-----------------------------
diff --git a/firmware/README b/firmware/README
@@ -0,0 +1,77 @@
+You'll need to build the lpcboot and debugger tools by
+running make at the top level first.
+
+
+mdebug on lpclink2: Initial Installation
+----------------------------------------
+
+1. Remove jumper JP1 from lpclink2
+
+2. Connect lpclink2 to USB
+
+3. Download the "soft" bootloader via DFU
+ (it is normal to get "dfu status: io error")
+
+ $ ./bin/lpcboot dfu firmware/lpclink2-dfu.bin
+
+4. flash bootloader:
+
+ $ ./bin/lpcboot flash:boot firmware/lpclink2-boot.bin
+
+5. flash mdebug firmware:
+
+ $ ./bin/lpcboot flash firmware/lpclink2-mdebug.bin
+
+6. install jumper JP1 on lpclink2
+
+7. power cycle board (unplug/plug to usb)
+
+8. LED should blink for ~3 seconds (bootloader) then start mdebug
+
+
+mdebug on lpclink2: Upgrade mdebug firmware
+-------------------------------------------
+
+1. disconnect lpclink2 from USB
+
+2. $ ./bin/lpcboot flash firmware/lpclink2-mdebug.bin
+
+3. connect lpclink2 to USB
+
+4. If you get "flash failure", run the step #2 command again
+ (without disconnecting and reconnecting the board)
+
+
+firmware version info (debugger should show this on connect)
+------------------------------------------------------------
+
+usb: board id: LPCLINK2
+usb: build id: fw v0.9 (Aug 5 2015, 18:58:09)
+usb: protocol: 1.0
+usb: max data: 8192 byte rx buffer
+
+
+connecting lpclink2 to debug target
+-----------------------------------
+
+Either:
+ - Install JP2 to set voltage to 3.3v and supply to VREF
+ - Remove JP2 to sense voltage from VREF
+
+Either:
+ - Use 10 pin ARM debug cable from J7
+ - Use 0.1" header J6
+
+
+J6 Header (pin 1 is furthest from J6 silkscreen)
+------------------------------------------------
+1. 3V3
+2. SWDIO
+3. SWCLK
+4. SWO
+5.
+6.
+7.
+8. GND
+9.
+
diff --git a/firmware/lpclink2-boot.bin b/firmware/lpclink2-boot.bin
Binary files differ.
diff --git a/firmware/lpclink2-dfu.bin b/firmware/lpclink2-dfu.bin
Binary files differ.
diff --git a/firmware/lpclink2-mdebug.bin b/firmware/lpclink2-mdebug.bin
Binary files differ.