Hello,
I am trying to program the DA14580 at boot from a MSP430 device. I have the DA14580 attached to the MSP430 SPI bus, and have the MSP430 set up as the SPI master. At boot, I begin the SPI programming protocol, and the communications seem to work until it gets to the data bytes. Using manual AN-B-001, Table 2. Everything works until step 8, the DA14580 never returns 0x02 on the first data byte, and only returns 0xFF. It then returns 0xFF until all the data bytes are downloaded, then will return 0xAA and 0x20 at the end of the programming routine. I have attached a image of the trace from the system. I am hoping you will be able to give me some insite on what I may be doing wrong.
Thank you.
Jim Newton
Tegam, Inc.
jnewton@tegam.com.
设备:
Hi jnewton,
The procedure of downloading the image seems correct. Since you are close to the end and the 580 responds with a 0x20 the CRC of your image must be failing, thats why you get 0x20. Also you can have a look in the SDK in the projects\host_apps\da1458x\proximity\reporter\host_proxr you will find an spi master that downloads the image through SPI on a 580 slave.
Thanks MT_dialog
About OTA I have a question,when 580 has received the data finished.where does the data stored in the memory? Does 580 need software about this function or only hardware works.
如果它需要在580中的软件,更新后,软件将清除??或者存储在不同的内存中的两个图像?你有一些关于这个部分的材料吗?
非常感谢你
嗨Randyyu,
The images of the OTA are stored in an external SPI memory or an eeprom (both implementations are available, you have to attach an ext memory to the 580). Briefly the ext SPI is set with two image banks and OTA decides based on the active where the new image should be placed, after that completing the update operation, the secondary bootloader upon reset will choose which image to get. The SUOTA is software implemented as a profile embedded to your application. For more information you can have a look at the AN-B-010 DA14580 using SUOTA which has all the details regarding the implementation.
Thanks MT_dialog
您的含义在DA14580中必须有软件来处理所接收的SPI数据?
我困惑了你给我的回复是从MSP430的DA14580引导加载程序(另一个MCU用SPI接口的外部闪光灯)或从手机更新它(电话发送图像和DA14580将其放入第二个引导加载程序中).i需要第一个,使用MSP430作为引导DA14580的外部内存,它可以吗?如果它可以,你能给我一些例子和材料吗?
谢谢,我的英语不好,请原谅我
嗨Randyyu,
Yes, SUOTA is a profile implemented in software in 580 that executes the SUOTA operation, and stores that data in the flash.
Thanks MT_dialog
有一个例子吗?DA1458x_SDK_5.0.3?I can't find the it in the catalogue
嗨Randyyu,
Yes, you can find an implementation of the SUOTA profile in the proximity reporter example in the SDK in the specified directory \SDK5.0.3\DA1458x_SDK_5.0.3\DA1458x_SDK\5.0.3\
Projects \ target_apps \ ble_examples \ prox_reporter。
Thanks MT_dialog
in the datasheet of AN-B-001,there has a time details,it's write that pin's power up has a time sequence. I select the pins like this below, and send the image, I want to know if the delay of 103ms is must?,or any time is ok.In the example of \SDK5.0.3\DA1458x_SDK_5.0.3\DA1458x_SDK\5.0.3\ I find that it send image without delay of 103ms after startup.
MCU DA14580 MSP430
CLK P0.0 P2.7
CS P01 P3.2
MISO P02 P3.4
MOSI P03 P3.3
我遇到一个porblem:我transplantate MSP43的代码0,and used spi to send image,after send 0x70 0x50 0x00, i could't received 0x02 or 0x20(I received 0xff or 0x00).I don't know how to debug it ,and what's the problem,need your help
嗨Randyyu,
103ms由580的主引导加载程序设置,其内部沉降并执行初始Bootrom指令所需的设置。您不必在传输标题之前等待,您可以在580准备好接受数据之前开始传输数据,并且它将返回正确的标志以继续下载图像。SPI从操作有点棘手,虽然,采样器或SPI对小尖峰或反射非常敏感,但是为了使580开机,您必须正确屏蔽并终止连接电线,还需要一个公共场所。还要确保主设备提供的时钟比SPI从站的内部时钟小4倍。
Thanks MT_dialog
1.need I set the SPI slave clock ?
2.什么是“你必须正确屏蔽并终止连接电线”。
3.Does the process of mine(msp430 as spi master to send image,da14580 as spi slave to receive image) need a bootloader software in DA14580?
4.I don't really understand how can I know the da14580 has ready to receive image,is it send a flag?
你能给我一些关于这个的细节吗?
非常感谢你!
嗨Randyyu,
1) No, the SPI slave clock cannot be set, the internal slave clock is set by the bootloader, the clock that you provide from your master should be about 1KHz, also please have a look at section 6.1 at the Note regarding the clock from the SPI master.
2)我们通常在47到56欧姆之间的引脚(主机输出)的输出中串联使用一些终端电阻,以便至少在时钟输出上终止连接。
3) The bootloader is allready executing in the 580 upon power up, the procedure is described in the document mentioned in AN-B-001, so you 've got to able to provide data in the first two steps where tha 580 tries to boot from an SPI master and configure its pins properly.
4) As it is described in the AN-B-001 document when the 580 sees that proper header (0x70, 0x50, 0x00 and LS-Byte) will know that someone is trying to download a firmware, more info can be found in the mentioned document.
Thanks MT_dialog