Forum Discussion
Altera_Forum
Honored Contributor
21 years agoIntel CFI Flash & HAL drivers
Hi, I'm porting some code to our target board which uses the HAL to save settings in Flash. The code works just fine on the Stratix dev. kit board, but fails to program the flash on my targ...
Altera_Forum
Honored Contributor
21 years agoI'm using the 1.01 release. Having singlestepped through stuff, I believe the following line# 160 in alt_unlock_block_intel.c is wrong:
locked = IORD_8DIRECT(flash->dev.base_addr, block_offset + 2); ... and should be... locked = IORD_8DIRECT(flash->dev.base_addr, block_offset + 4); // Was 2 - RJP I think this applies to 16 and 8-bit modes, but I'm not sure. Anyway, even having changed that, I'm still getting 'command sequence error' status. But now in "alt_erase_block_intel" rather than "alt_unlock_block_intel" My original question still stands: Has anybody used the HAL successfully to rewrite sections of Intel (and compatible) flash parts?? - Roddy