# HG changeset patch # User Mychaela Falconia # Date 1493672578 0 # Node ID 59de85ae94a796dcf95049f1816a36fbba8e35ca # Parent cc6594a7fc7ad89de96f6f89b9c81721ad328766 target-utils/flash-boot-wa written diff -r cc6594a7fc7a -r 59de85ae94a7 target-utils/flash-boot-wa/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/target-utils/flash-boot-wa/Makefile Mon May 01 21:02:58 2017 +0000 @@ -0,0 +1,21 @@ +CC= arm-elf-gcc +CFLAGS= -Os -fno-builtin +CPPFLAGS=-I../include +LD= arm-elf-ld +OBJCOPY=arm-elf-objcopy + +PROG= flash-boot-wa +LDS= ../env/iram.lds + +all: ${PROG}.srec + +${PROG}.elf: ${PROG}.o ${LDS} + ${LD} -N --defsym Base_addr=0x820000 -T ${LDS} -o $@ ${PROG}.o + +${PROG}.srec: ${PROG}.elf + ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@ + +clean: + rm -f *.o *errs *core *.elf *.bin *.srec + +FRC: diff -r cc6594a7fc7a -r 59de85ae94a7 target-utils/flash-boot-wa/flash-boot-wa.S --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/target-utils/flash-boot-wa/flash-boot-wa.S Mon May 01 21:02:58 2017 +0000 @@ -0,0 +1,8 @@ + .text + .code 32 + .globl _entry + +_entry: ldr r1, =0xFFFFFB10 + mov r2, #0x0300 + strh r2, [r1] + mov pc, #0