Forum Discussion
(AN741) Nios cannot erase on-chip FLASH
- 5 years ago
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
Hi, Junbum
Can you check two things whether you do it correctly:
- the start and end address can be found in the Altera on-chip flash IP.
- the baud rate, number of data bits, parity etc must be matching in your JTAG IP.
You may refer to page 13 and 14 of https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/an/an741.pdf
Eric
- jpark1985 years ago
New Contributor
There was no problem with the mentioned matters.
Even if adress was set to a constant value, the flash was not erased as well.