CFLAGS = -Wall
ARMCC = /scratch/arm-elf/bin/arm-elf-gcc
-ARMCFLAGS = -Wall -mcpu=arm7tdmi-s
+ARMCFLAGS = -Wall -mcpu=arm7tdmi-s -nostartfiles -nostdlib
ARMOBJCOPY = /scratch/arm-elf/bin/arm-elf-objcopy
HOSTOBJECTS = lpcload fwdump
/* external memory init */
- //BCFG0=;
- //BCFG2=;
+ BCFG0=0x1000FBEF; // no boot[1:0] influence? (thnx colibri)
+ // BCFG2 should be fine as is
flash=(u16 *)BANK0;
/* wait for fwdump to send transmit start character */
for(i=0;i<524288;i++) {
while(!(UART0_LSR&(1<<5)))
continue;
- UART0_THR=((*flash&0xff00)>>8);
+ UART0_THR=(*flash&0xff); // care for endianness
while(!(UART0_LSR&(1<<5)))
continue;
- UART0_THR=(*flash&0xff);
+ UART0_THR=((*flash&0xff00)>>8);
flash++;
}