In case anyone wants to use this with the canned LPC1343 CodeBase ... this is what I put for the "intermediate folder" under Common Settings "../../" (instead of I think "./Debug"), and I also changed the path for the GDB commands as follows:
- Code: Select all
# Make sure that we are using SWD
monitor interface SWD
# Set monitor to little endian
monitor endian little
# Set monitor speed
monitor speed 1000
# Reset device
monitor reset
# Set device ID to LPC1343
monitor flash device = LPC1343
# Enable flash download
monitor flash download = 1
# Transfer the firmware to the device
load "../../firmware.elf"
# Initializing PC and stack pointer
monitor reg r13 = (0x00000000)
monitor reg pc = (0x00000004)
monitor reset
Other than that ... it looks great, though, and I'm extremely grateful you took the time to contribute this addition so that there's a real OSHW alternative for an IDE with embedded devices like the LPC1343.
I also modified the default makefile to compile with and without debug information:
- Code: Select all
##########################################################################
# Debug settings
##########################################################################
# Set DEBUGBUILD to 'TRUE' for full debugging (larger, slower binaries),
# or to 'FALSE' for release builds (smallest, fastest binaries)
DEBUGBUILD = FALSE
I haven't published a new .zip file on the website yet, but I have pushed these updates to the GIT repository here:
https://github.com/microbuilder/LPC1343CodeBaseThanks again for taking the time to add this.