Loading Firmware from an external microcontroller

11 posts / 0 new
Last post
Matthieu ANTOINE
Offline
Last seen:4 years 6 months ago
Expert
Joined:2014-01-14 14:51
Loading Firmware from an external microcontroller

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:
SPI
JE_Dialog
Offline
Last seen:3 hours 55 min ago
Staff
Joined:2013-12-05 14:02
Hi Matt, I have asked Ture to

Hi Matt, I have asked Ture to follow up with you to discuss the different options here.

BR JE_Dialog

Matthieu ANTOINE
Offline
Last seen:4 years 6 months ago
Expert
Joined:2014-01-14 14:51
Ok, perfect. Thank you very

Ok, perfect. Thank you very much.
Matt.

TN_Dialog
Offline
Last seen:5 days 2 hours ago
Staff
Joined:2013-12-05 15:49
Hi MAtthieu,

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

Matthieu ANTOINE
Offline
Last seen:4 years 6 months ago
Expert
Joined:2014-01-14 14:51
Hi Ture,

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.

Matthieu ANTOINE
Offline
Last seen:4 years 6 months ago
Expert
Joined:2014-01-14 14:51
Hello,

Hello,

Did someone saw what I wrote?

Thanks.
Matt.

medelman
Offline
Last seen:3 years 12 months ago
Joined:2015-03-05 13:30
I interested in the same

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

Matthieu ANTOINE
Offline
Last seen:4 years 6 months ago
Expert
Joined:2014-01-14 14:51
Just to "up" that topic.

Just to "up" that topic.

MH_Dialog (not verified)
Hello Matt,

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

Matthieu ANTOINE
Offline
Last seen:4 years 6 months ago
Expert
Joined:2014-01-14 14:51
Hi Morris,

Hi Morris,

That sounds clear. I was checking that my first assumption was possible to implement.

Thanks.
Matt.

Matthieu ANTOINE
Offline
Last seen:4 years 6 months ago
Expert
Joined:2014-01-14 14:51
Hi (again),

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.