2 posts / 0 new
Last post
TP2017
Offline
Last seen:1 month 2 weeks ago
加入:2017-07-15 18:18
DA14586 Internal Flash Access

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

Device:
Qinjiny_Dialog
Offline
Last seen:1 month 1 week ago
工作人员
加入:2016-11-01 05:47
嗨TP2017,

嗨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