Hello,
In my project, I plan to use a microcontroller to store the firmware and dowload it inside the DA14580 at startup through SPI. What is the best way to do: microcontroller acting as a SPI slave or a SPI master?
你有任何源代码执行的例子吗this feature?
Thanks in advance.
Matt.
Keywords:
Hi Matt, I have asked Ture to follow up with you to discuss the different options here.
BR JE_Dialog
Ok, perfect. Thank you very much.
Matt.
Hi Matthieu,
to boot from the DA14580 from an external micro over SPI you should configur the external Micro as the SPI master. If you try to have a look in theUM-B-013then you will find a good description in capter 6 and 7 which I believe is describing exactly what you need to setup your system correctly.
Regards
TN_Dialog
Hi Ture,
I do not want to run the host application on an external controller: I need to work in fully hosted mode. My configuration is the same as with a simple SPI flash: the FW is stored in my external controller (as it is in a flash) and when the DA14580 is powered up, I follow the AN-B-001 document to load the FW in the RAM.
My question is then what is the best option: have an external controller which acts as a Slave SPI flash or as a master SPI device. I already sent you a mail to describe it. Did you receive it?
Thanks.
Matt.
Hello,
Did someone saw what I wrote?
Thanks.
Matt.
I interested in the same thing that Matthieu is. I'm interested in downloading the image to SRAM from an external MCU's flash memory upon bootup of the DA14580. The external MCU will not be hosting the BLE application as discussed in UM-B-013, but will merely be talking to the DA14580 as it's SPI master to download the application image and communicate via SPI after the image is downloaded to the DA14580 (Versus using an OTP).
Thanks,
Matt
Just to "up" that topic.
Hello Matt,
If you only want to download firmware into DA14580, then you can choose either options. As mentioned in AN-B-001, the frequency of SPI clock must not be higher than 500 kHz when DA1458x connected to SPI Master. The SPI clock frequency of DA1458x is set at 2 MHz when it is connected to SPI Slave. The booting time should have some difference.
BR, Morris
Hi Morris,
That sounds clear. I was checking that my first assumption was possible to implement.
Thanks.
Matt.
Hi (again),
Another question: is there any document describing how to handle FW transfer from an external MCU? I mean, apart from what is defined as first SPI bytes exchanged, how must the HEX file be transfered?
Thanks.
Matt.