/* 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++;
}