The datasheet says that "During the boot sequence, the four SPI pins of port P2 are used to access the internal Flash memory." (p. 19 Table 1 of DA14586 datasheet). Can I write to this memory area when the DA14586 boots? I'd like to write the firmware image to the DA14586 using the SPI interface (P2_0/SPI_CLK, P2_3/SPI_EN, P2_4/SPI_DO, P2_9/SPI_DI).
Is there information about the protocol that I'd need to use to write to the flash when it boots?
Thanks
Keywords:
Device:
嗨TP2017,
DA14586 supports booting from SPI slave (internal flash) or SPI master (external MCU), the booting process is fixed in booting ROM with a strictly defined sequence, as shown in page 43 of the datasheet. There's no way to write to 586's flash DURING booting sequence, it only reads program and load into SysRAM to run, from internal/external flash(which has image on it already) or from external SPI master device.
You can readAN-B-001 Booting from serial interface to get some more details regarding the booting timing and interface protocols. Pay attention though, as this document was created for DA14580/1, some info might not suitable for DA14586