Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12599 Discussions

Sanity check of a .rpd file

CCapi1
Beginner
900 Views

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
685 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

0 Kudos
3 Replies
Ahmed_H_Intel1
Employee
685 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/solutions/rd06182012_691.html

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

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

Regards,

 

0 Kudos
CCapi1
Beginner
685 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

 

0 Kudos
Ahmed_H_Intel1
Employee
686 Views

Hi sir,

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

0 Kudos
Reply