Community
cancel
Showing results for 
Search instead for 
Did you mean: 
CCapi1
Beginner
306 Views

Sanity check of a .rpd file

Jump to solution

I write a .rpd file to the FPGA over UART. How can I check inside the NIOS II Code, if the .rpd file is valid?

What is the Header of a .rpd file?

Reason for this question: I want to check the data before I write it to the flash.

0 Kudos
1 Solution
Ahmed_H_Intel1
Employee
91 Views

Hi sir,

The flow you sent is showing that the file starts by 6A 6A 6A 6A, this is correct.

View solution in original post

3 Replies
Ahmed_H_Intel1
Employee
91 Views

Hi,

With the NIOS II, you can read the targetted address (begin and end) of the loaded .rpd file on the flash. You can also copy it or erase. Just use the correct addresses to read it.

The .rpd file has the same header of the POF but in the format of rpd.

The bits in the rpd file need to be reversed before programming them into the serial flash device. you can check this forum thread for more info:

https://forums.intel.com/s/question/0D50P00003yyHbmSAE/problem-with-rpd-raw-programming-data-file

Please check the following before creating your .rpd file or programming the flash:

https://www.intel.com/content/www/us/en/programmable/support/support-resources/knowledge-base/soluti...

https://www.intel.com/content/www/us/en/programmable/support/support-resources/knowledge-base/soluti...

https://www.intel.com/content/www/us/en/programmable/quartushelp/17.0/reference/glossary/def_rpd.htm

Regards,

 

CCapi1
Beginner
91 Views

Hello

 

Thank you for your answer.

Unfortunately, that didn't answer my question.

I already created valid .rpd files.

My problem is the following: If I receive the .rpd file over UART, how can I be sure that the received file is a valid .rpd file and not, for example, a .docx file?

Is there some kind of header at the beginning of the .rpd file?

Like this one:

FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 6A 6A 6A 6A 36 F4 FF FF 37 FA FF FF F6 F4 FF FF 37 F1 FF FF B6 F2 FF FF 77 F0 FF FF B3 F9 FF FF BA F8 FF FF

It seems that every .rpd file starts with this sequence. Is the 6A 6A 6A 6A kind of sync bytes?

 

Thank you very much.

 

Christoph

 

Ahmed_H_Intel1
Employee
92 Views

Hi sir,

The flow you sent is showing that the file starts by 6A 6A 6A 6A, this is correct.

View solution in original post

Reply