# HG changeset patch # User Michael Spacefalcon # Date 1366859777 0 # Node ID 383a4ef12551d0b304dc96fbafd00c1862316e65 # Parent 2e3cecd6716cb841cabc61a3c737e6adc237dfc7 boot ROM re: getting the download state machine,

B error b30: e3a00009 mov r0, #9 ; 0x9 b34: ebfffd80 bl 0x13c - b38: e59f52c4 ldr r5, [pc, #708] ; 0xe04 + b38: e59f52c4 ldr r5, =0x800518 ; via 0xe04 +; reset the baud rate to 19200 b3c: e5d51008 ldrb r1, [r5, #8] b40: e3a00004 mov r0, #4 ; 0x4 b44: eb000223 bl 0x13d8 +; var init b48: e1a00005 mov r0, r5 b4c: ebfffd72 bl 0x11c +; state back to 01 b50: e3a0c001 mov r12, #1 ; 0x1 b54: e5c4c000 strb r12, [r4] b58: ea0000a7 b 0xdfc - b5c: e59f52a0 ldr r5, [pc, #672] ; 0xe04 +; 'C error b80: e3a00006 mov r0, #6 ; 0x6 b84: ebfffd6c bl 0x13c - b88: e59f5274 ldr r5, [pc, #628] ; 0xe04 + b88: e59f5274 ldr r5, =0x800518 ; via 0xe04 +; reset baud rate to 19200 b8c: e5d51008 ldrb r1, [r5, #8] b90: e3a00004 mov r0, #4 ; 0x4 b94: eb00020f bl 0x13d8 +; var init b98: e1a00005 mov r0, r5 b9c: ebfffd5e bl 0x11c +; state back to 01 ba0: e3a0c001 mov r12, #1 ; 0x1 ba4: e5c4c000 strb r12, [r4] ba8: ea000093 b 0xdfc - bac: e59f0274 ldr r0, [pc, #628] ; 0xe28 +; 'P c0c: e3a00002 mov r0, #2 ; 0x2 c10: ebfffd49 bl 0x13c +; reset the baud rate to 19200 c14: e5d61008 ldrb r1, [r6, #8] c18: e3a00004 mov r0, #4 ; 0x4 c1c: eb0001ed bl 0x13d8 +; equiv of P and throw FSM back to state 1 d48: e3a00002 mov r0, #2 ; 0x2 d4c: ebfffcfa bl 0x13c d50: e3a0c001 mov r12, #1 ; 0x1 d54: e5c4c000 strb r12, [r4] d58: ea000027 b 0xdfc +;

i'. +

: R2 arg (PLL_MULT field) + bits <1:0>: R1 arg (PLL_DIV field) 2 bytes: 16-bit MSB-first value goes into var at 800522 + word gives arguments to 0xe2c routine, breaks down as follows: + bit 15: unused + <14:10> arg3 + <9:5> arg2 + <4:0> arg1 1 byte: goes into var at 800525 + remaining arguments to 0xe2c: + <7:4> arg5 + <3:0> arg4 4 bytes: 32-bit MSG-first value goes into var at 80051C + reloads the UART timeout variable 800104 + +Good response: >p 00 04 (4 bytes total) +The baud rate is switched after the above response is sent. + +Error response: >P