DA14585 boot protocol from external SPI master

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
mkelwood
Offline
Last seen:1 month 1 week ago
加入:2017-05-19 18:27
DA14585 boot protocol from external SPI master

有任何信息引导协议吗timing for the DA14585? This information is given in AN-B-001 section 7 for the DA14580/81 but Appendix G of UM-B-079 does not give this information for the DA14585.

Also, looking at the figures in AN-B-001 section 7 it appears that the MISO line is briefly toggled high at the beginning of the window for boot from external SPI master. Is this signalling reliable for detection of the window opening by the external SPI master? Does the DA14585 show this behavior also?

Thanks for your help.

Device:
MT_dialog
Offline
Last seen:1 month 3 weeks ago
Staff
加入:2015-06-08 11:34
Hi mkelwood,

Hi mkelwood,

No, there is no seperate document for the 585 regarding the booting procedure, only the apprendix on the document that you are allready aware of, regarding the toggling of the MISO lines when booting from SPI master, this is a toggling that apprears as soon as the device is configured as an SPI pin, what exactly do you mean reliable ? (the lines are toggling depending on the interface attached to them at that specific time). In order to properly boot from an SPI master you should send the header of a valid image an empty 0x00 byte you length LS byte and wait for the 585 to reply back with a proper sequence on the Length LS byte.

Thanks MT_dialog

mkelwood
Offline
Last seen:1 month 1 week ago
加入:2017-05-19 18:27
By "reliable" I mean is the

By "reliable" I mean is the MISO line actually driven high then low by the DA14585 to indicate that the SPI interface has been initialized. I would like to use a host interrupt on the MISO line to tell the host that the SPI window to transmit to the DA14585 bootloader is now open (rather than polling the line or just sending the header repeatedly until the DA14585 bootloader replies).

If the DA14585 drives the MISO line at the beginning of the SPI master window, then I suppose I could answer my own question by watching MISO with an oscilloscope during the DA14585 boot sequence. It would just be nice to know what to expect. Thanks for your help.

MT_dialog
Offline
Last seen:1 month 3 weeks ago
Staff
加入:2015-06-08 11:34
Hi mkelwood,

Hi mkelwood,

Well, the bootloader doesn't actually do anything particular with the MISO line in order to indicate that there is a valid window in order for host to transmit the header, the SPI lines toggle due to the change of the interface in different pins and when enabling the SPI module, but the bootloader code doesn't actually drives the line high. Regarding if you can use that toggle in order to indicate to the external MCU that the SPI is ready i am not able to answer this for sure, you will have to give it a try, since when the line toggles the SPI is open but there are pending operations for the SPI module, loading data into the transmit register and clearing the SPI interrupt, start the timer and then start checking for the reception of the header.

Thanks MT_dialog