SDK to Boot DA14580 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.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
6 posts / 0 new
Last post
sanket
Offline
Last seen:2 years 5 months ago
Joined:2018-01-02 18:15
SDK to Boot DA14580 from external SPI Master

Hi,

I have a simple setup; an ARM board and a DA14580Devkit-B.
I have successfully booted the DA14580 using UART interface and I was able to advertise data.
However I am not able to go anywhere with SPI. I was able to boot up the DA14580 ic using SPI but since there is no example for SPI-SDK I am kind of stuck. Do you have any SDK which supports external boot from SPI master?

——圣彼得堡

Device:
MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi sanket,

Hi sanket,

Yes, there is an example using two 580, in order to demonstrate the GTL over SPI, the one acts as a external master which will download the fw using SPI interface and then start issuing commands in order for the slave to start advertise, etc. You will be able to find the project in the 580 SDK 5 in the following directory C:\Users\mtzanida\Desktop\DA1458x_SDK\5.0.4\projects\host_apps\da1458x\proximity\reporter. There is a #define that you will need to define in order for the master to download the fw as well the #define is the SPI_BOOTER.

Thanks MT_Dialog

sanket
Offline
Last seen:2 years 5 months ago
Joined:2018-01-02 18:15
Thank you for the reply.

Thank you for the reply.

May I please know where are the #defines you mentioned earlier?

Also, you mentioned that "in order for the slave to start advertise, the master needs to start issuing commands" in that particular example. How / Where do I change this behavior as I want my slave DA14850 to advertise on its own when the master ARM MCU has downloaded the firmware to DevKit-B?

——圣彼得堡

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi sanket,

Hi sanket,

The defines that i ve mentioned are in the project that i have posted in my previous answer and the file is the da14580_config.h file.

Regarding the second question, what the device would do depends on the application that you download to the 580, the project that demos the downloading through SPI also demos the GTL configuration. So you are going to just take as an example the downloading procedure and not the rest of the project.

Thanks MT_dialog

sanket
Offline
Last seen:2 years 5 months ago
Joined:2018-01-02 18:15
That did not help much but I

That did not help much but I managed to boot and advertise the da14850 via external SPI master. I used **\DA1458x_DSPS\v_5.150.2\projects\target_apps\dsps\sps_device\Keil_4\sps_device.uvproj and replaced the uart reservations with spi.

Now I am stuck at how to send and receive data via SPI interface of da14850. Please let me know if there is any sample project in your SDK to do it.

——圣彼得堡

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi sanket,

Hi sanket,

I am not able to understand your requirements, if you wish to boot from an SPI master then the booting procedure is described in the AN-B-001 document and an example is located in the SDK in the directory i ve allready mentioned. Interact with the SPI interface is a different subject and there are examples on how to do so (check in the peripheral_examples of the SDK in order to check how to interface with an SPI flash as a 580 master, for setting up and interfacing SPI as a 580 slave then you can have a look at the prox_reporter_ext_spi project in order to check how to setup the hw as an SPI slave).

Thanks MT_dialog