Forum Discussion
Thank you for the revised code.
The rpd file:
Should I send the byte in the displayed order?: 50,ff,47,ff,4d,ff .........
or the order of sending the bytes is different?
You can choose to send either in big endian or in little endian. But you have to write it to the FPGA in big endian format. Your data that send to me is in the little endian format. I also send it in little endian an convert it in the rsu_data function in my code. You can see it i reverse the bits there. But you can send it in big endian and erase this conversion so it is nicer I think. If you want to do this in big endian you have to generate the .rpd file in big endian format from the "Convert Programming File". In here, in "Options/Boot info..." you can change the format to big endian.
- sadann221 year ago
New Contributor
This was not my question.
I did not ask about the order of the bits in each byte.
I was asking about the order of the bytes.
first byte that I should send to you is X"50"
2nd byte X"ff"
3rd byte X"47"
and so forth according to the rpd file as displayed in my former post.
I was not sure about that.
- jozephka991 year ago
Contributor
I don't remember this exactly but I think yes, it is the order. I use serial console's file sending ability so may be it depends on the program but I think it is in the order 50,ff,47,...
- sadann221 year ago
New Contributor
Can you write the link to the serial console and i will try to dig into it.
Thanks. - jozephka991 year ago
Contributor
I used RealTerm as I remember. https://sourceforge.net/projects/realterm/
- sadann221 year ago
New Contributor
Thank you jozephka99.
I succeeded to configure the MAX 10M16 device after performing all the needed modifications of your code.
CFM1 is composed of 2 sectors (3 and 4) while CFM0 is composed of only 1 sector (5).
So, in order to erase CFM1I used the erase feature for the 2 sectors 3 and 4.
Everything now is working great.
Thank you jozephka99 for your assistance.
- jozephka991 year ago
Contributor
You're welcome. I'm glad that you have succeed it. I think it is not so difficult to do actually but it is very challenging when there is no much info in documents.