(AN741) Nios cannot erase on-chip FLASH
I try to test RSU. I make .pof with my FPGA design and remote_update.c in AN741.
but when i try to update image 2, it doesn't work.
I type start address and end address and it is correctly work.
case 7: /*State 7: Write Control Register of On-Chip Flash IP to un-protect and erase operation*/
IOWR(MAX10_FLASH_CSR_BASE, 1, 0xfbffffff);
IOWR(MAX10_FLASH_CSR_BASE, 1, 0xfbcfffff);
state++;
break;
this part is not work and the system was freeze.
and i use UART(RS-232). not JTAG UART.
what is problem?
it is my tools information
-Quartus Prime 17.0 Lite
-DE10-Lite Board
Hi, Junbum
You can find the start and end address of CFM1 (for your application image) in the .map file when you generate the .pof.
You need to copy and paste the block with above start and end address into a new .rpd (for the application image to be updated remotely). But in newer Quartus versions, you don't have to do that, there is a .rpd automatically generated for CFM1.
You need to create a quartus.ini in your project directory, and put below line in it, before you do covert programming file to .pof from your application .hex.
PGMIO_SWAP_HEX_BYTE_DATA=ON
Eric