comparison frbl/test/frbl2.c @ 335:10d62a3bfeec

frbl2test: L command addr and nwords need to be sent in LE byte order
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 07 Mar 2020 05:56:32 +0000
parents 7df08926a4e7
children
comparison
equal deleted inserted replaced
334:ea1e950c849f 335:10d62a3bfeec
132 fill_download_cmd() 132 fill_download_cmd()
133 { 133 {
134 unsigned nwords; 134 unsigned nwords;
135 135
136 nwords = codeimage_len >> 1; 136 nwords = codeimage_len >> 1;
137 fluid_download_cmd[1] = loadaddr >> 24; 137 fluid_download_cmd[1] = loadaddr;
138 fluid_download_cmd[2] = loadaddr >> 16; 138 fluid_download_cmd[2] = loadaddr >> 8;
139 fluid_download_cmd[3] = loadaddr >> 8; 139 fluid_download_cmd[3] = loadaddr >> 16;
140 fluid_download_cmd[4] = loadaddr; 140 fluid_download_cmd[4] = loadaddr >> 24;
141 fluid_download_cmd[5] = nwords >> 8; 141 fluid_download_cmd[5] = nwords;
142 fluid_download_cmd[6] = nwords; 142 fluid_download_cmd[6] = nwords >> 8;
143 } 143 }
144 144
145 static int 145 static int
146 expect_beacon_response(timeout) 146 expect_beacon_response(timeout)
147 { 147 {