Закопался в мануалах, сейчас изучаю EPCS и вот что нашел в AN379 (Active Serial Memory Interface Controller Reference Design) на циклон, но думаю что это применимо и к Максам:
Код
While writing data to the serial configuration device memory, the serial configuration device only allows you to change the bits in the memory from 1 to 0 since it is serial flash memory. For example, if the initial data in the address 0×070000 is 0×EC and you try to write a data byte 0×79 in the same address using the write_bytes operation, the data in that address becomes 0x68 since the bit0 and bit4 of the initial data byte 0×EC cannot be changed from 0 to 1.
To change bits from 0 to 1, you have to erase the targeted sector memory or erase all memory in the serial configuration device. Therefore, it is important to carefully plan when writing data bytes to the serial configuration device memory.
Получается что
да, сначала надо стереть банк, в который будет производиться запись, поскольку память разрешает изменять только состояние битов 1->0. Соответственно, для последующей перезаписи тоже, видимо, необходима процедура стирания.
Такие дела.