Forum Discussion
EEren
Occasional Contributor
7 years agoMAX10 Dual Boot.
On CFM0 I have a bootloader. I create rpd file from a main project and burn it on CFM1. After successful burning I switch BOOT_SELECT to boot from CFM1. However the main project failed to run and ...
EEren
Occasional Contributor
7 years agoprd file is a binary file. should I reverse bytes before programming? and what is the order of bytes?
this
word_to_write = (UInt32)((reversed_byte[raw_data[i]] << 24) | (reversed_byte[raw_data[i + 1]] << 16) | (reversed_byte[raw_data[i + 2]] << 8) | reversed_byte[raw_data[i + 3]]);or this
word_to_write = (UInt32)((reversed_byte[raw_data[i + 3]] << 24) | (reversed_byte[raw_data[i + 2]] << 16) | (reversed_byte[raw_data[i + 1]] << 8) | reversed_byte[raw_data[i]]);