Forum Discussion
Altera_Forum
Honored Contributor
8 years agoHi,
The HAL driver (alt_flash) should works since you're able to read/write without issues. Both design examples are demonstrating different ways to access the controller register but they're indeed using the same methodology. The IORD/IOWR is pretty straightforward accessing controller registers directly. The HAL provides API to read/write the flash and those APIs are using IORD/IOWR to access the registers as well. For Arria 10, the address range (0x0 - 0x20) is reserved for Option Bits. Make sure your factory SOF/hardware image is placed after 0x20 and the configuration should works. Please make sure your user image/application works before you put them together into one single JIC file and perform reconfiguration.