- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
I'm using NIOS II with remote system update(rsu_cyclone4 from alterawiki) and EPCS flash controller cores on Cyclone IV E(DE2-115). And there are 2 images in flash(EPCS64): Factory image(hardware + software) on address 0x0 Application image(hardware + software) on address 0x00200000. All works great. System is booting with factory image and I can configure it with application image. But i need to write one more image to EPCS or rewrite first application image. I'm doing it with NIOS II and EPCS flash controller (using alt_epcs_flash_write_block). So, the question is how to protect factory image data in epcs flash from rewriting or erasing?Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no protection function in the EPCS itself so you can't define a protected area. You need to do this in your software, i.e. before it erases or rewrites a block, it should check that it is in the application region and not the factory one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The EPCS memory chips are standard SPI memory and do have the ability to protect part of the image. However the protected part will be at the top so is useless for protecting the factory image read by AS.
If you use PS you could arrange to read from a high address and then protect that area.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your help.
I found information about APFC_BOOT_ADDR instruction in Cyclone IV E. Seems that the best way is to do this in NIOS software.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page