Electrical – Automotive ECU Flash and EEPROM memory mapping

automotiveeepromflashmicrocontroller

I'm trying to access data stored in the eeprom of an automotive ECU and I'm short on experience.

My question is how flash and eeprom are mapped and accessed by the micro. I haven't looked at the datasheet for the flash yet, but the eeprom is serial via SPI. Would I be correct in assuming that typically the flash would be mapped in to an address range on the micro, but the eeprom would be accessed by moving blocks in to ram on the micro working with them and then writing them back if needed? In other words, the eeprom doesn't have a address mapping per se, but portions can be read and worked with in ram.

I hope the question is clear.

If it helps the specific ECU is a Bosch Motronic 7.8 it has 2 Infineon C167xx processors (not sure the exact variant yet) and 800BB (1MB) flash and 95320 (32Kbit) eeprom. TIA

Best Answer

Yes. Your assumption is correct. Flash memory is memory mapped but for SPI, it cannot be memory mapped. You have to write a driver/wrapper which will handle communication with EEPROM. It cannot be memory mapped.

As you said, You have to read information from EEPROM, modify in RAM and write it back.