Hello everyone,
I'm trying to add an external flash memory to the address range of the main memory. There is already an existing EEPROM, which will be deprecated later, and a Flash memory is added now. Both are connected via SPI. My intention is the following:
- Leave the EEPROM as it is for now in the configuration
- Add the flash memory to SPI
- Define an extended memory space (My intention is to start it at the address 0x90000)
- Create two partitions for the Flash:
- Config partition: This needs only be 100 kiB, replacing the functionality of the EEPROM, and will be directly addressed
- McuBoot swap partition: This will be where the image for the firmware update will be placed. This will be the rest of the memory.
Right now I always get the following warning when building and I'm not sure if I have configured everything correctly:
I have configured my application the following way:
Device tree (SPI reg 1 is reserved for another device currently in development, but does not need a partition):
partition.yml
I have not defined any custom regions, as the documentation is (in my opinion) abysmal for this with too few examples. But I would gladly be proven otherwise.
The goal is for the config partition to be writable by address, and for McuBoot to use the second partition as an extension, although this may be implemented at a later time.
Sadly I have not found an example where multiple SPI devices are used, one of them a flash device and with addressable partitions, so I don't know where the warning is coming from, as it doesn't show what it expects from me.
Much thanks for any help,
Rico