Sanity check of a .rpd file - Sanity check of a .rpd file
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.
Replies:
Re: Sanity check of a .rpd file
Hi sir, The flow you sent is showing that the file starts by 6A 6A 6A 6A, this is correct.
Replies:
Re: Sanity check of a .rpd file
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
Replies:
Re: Sanity check of a .rpd file
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, - 2019-12-16
external_document