Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- I currently have the .rbf file stored in flash. I am reading it a byte at a time and sending the LSB-first. for example: one byte in the file is 6A i am reading 6A and sending it in this order 01010110 (left bit first). Is this correct? --- Quote End --- The order of the bytes is still dependent on the processor. Use u-boot on the board and read the contents of the flash location, eg., lets say the flash was located at F800_0000h, then you can read 32 bytes using
=> md.b f8000000 20
f8000000: 2f 0c 40 08 86 af 07 33 ff ff 7f 12 ff ff ff 02 /.@....3........
f8000010: 22 07 05 19 24 ff ff ff ff ff ff ff ff ff ff ff "...$...........
Now look at your .rbf file. Does the ordering of the bytes match? If the bytes are reversed in pairs or quads, then it just indicates that the flash programmer read data into a big-endian word before programming it. You can either fix the programmer code, or write a program to flip the bytes in your .rbf file before passing that modified file to the programmer. Cheers, Dave