MAX10 RSU
I have implemented RSU over i2c based on this example:
It’s been working good with a MAX 10M8SAE. I now changed to a MAX 10M16SAE, and regenerated the IP cores for this model.
Configuration mode:
- configuration mode: Dual compressed Images
Flash memory:
- sector 1 - 0x00000 – 0x03fff - UFM
- sector 2 - 0x04000 – 0x07fff - UFM
- sector 3 - 0x08000 – 0x2dfff - CFM (Image 2)
- sector 4 - 0x2e000 – 0x49fff - CFM (Image 2)
- NA – NA – CFM (Image1)
I understand that when using Dual compressed Images, sector 2 and 3 are merged leading to a generated rpd image size of 270336 bytes (0x42000) and that the RSU flash offsets by multiple of 4 bytes. So for 0x08000 - 0x49fff range, RSU indexing goes from 0x2000 – 0x127ff.
Yet I get a “flash error” from bit 4 of PrimaryErrors (reg 0x81) when writing passed flash offset 0x0dfd4 (57300).
What am I missing?