From 1b0e861f3ee233ae9c181f8a3d29523058954bc3 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sat, 2 Apr 2011 01:46:56 +0200 Subject: [PATCH] finish deploy code --- firmware/Makefile | 7 +++++++ firmware/obj/.gitignore | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 firmware/obj/.gitignore diff --git a/firmware/Makefile b/firmware/Makefile index a88ce8b..044e8ac 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -17,3 +17,10 @@ obj/edubrm.bin: obj/edubrm.axf clean: rm -f obj/*.o obj/edubrm.{axf,bin,map} + +deploy: + dfu-util -d 0471:df55 -c 0 -t 2048 -R -D /opt/LPCXpresso/bin/LPCXpressoWIN.enc || : + sleep 1 + crt_emu_lpc11_13_nxp -g -2 -pLPC1343 -wire=winusb -info-target + crt_emu_lpc11_13_nxp -g -2 -pLPC1343 -wire=winusb -flash-erase + crt_emu_lpc11_13_nxp -g -2 -pLPC1343 -wire=winusb -flash-load=obj/edubrm.axf diff --git a/firmware/obj/.gitignore b/firmware/obj/.gitignore new file mode 100644 index 0000000..fadad03 --- /dev/null +++ b/firmware/obj/.gitignore @@ -0,0 +1,4 @@ +*.o +edubrm.axf +edubrm.bin +edubrm.map