We’re in the early stages of redesigning an existing product to add IoT by replacing our main MCU with a P1.
I’ve read through the P1 data sheet and a fair amount of the firmware repository and I just want to confirm my interpretation of flash usage.
From my reading, the P1 has all of its program flash storage on the 1MB internal memory-mapped flash (at least that’s what the P1 memory map seems to indicate) on the STM32 part and none on the external 1MB SPI-connected MX25L8006E part.
So my questions are then:
- Am I wrong about this?
- If I’m correct why are there comments like this in the bootloader/main.cpp “// Load the OTA Firmware from external flash” https://github.com/spark/firmware/blob/13faa691e2972ca49989633718bbe6a562f2ea5f/bootloader/src/main.c#L359
- What is the purpose then of the external flash? Just large scale data storage?
- Is there a way to update the data on the external flash OTA.
Thanks in advance.