DSPS boot from flash on Developent KIT-Pro

11 posts / 0 new
Last post
伊戈提特
Offline
Last seen:4 years 4 months ago
加入:2015-03-16 03:52
DSPS boot from flash on Developent KIT-Pro

嗨,Dialog,

目标板:DA14580开发工具包专业版。

My developing environment is the same as before post. ->http://support.dialog-semiconductor.com/dsps-ext-sleep-current-too-large
The last post, I wrote the firmware to SysRAM via UART.
现在,我应该把DA14580开发工具包Pro发送到android应用程序。开发人员谁应该使dsp通信程序。
因此,我应该将固件dsp写入闪存。这个开发工具包-pro应该从闪存启动。

我试着或者说是itting the firmware to flash memory using Snippets's "SPI flash programmer". The Log shows the success writting.
However, the dev.kit-pro can not boot from flash.
我不知道我应该做些什么。
可能是“sps\U设备Keil项目应该修改吗?或者需要从flash启动?或者应该修改智能代码段的配置。。。等,。。现在我很困惑。

What preperation should be done to boot from flash?

Please, show me the step by step procedure.

设备:
MT_dialog
Offline
Last seen:1周6天前
Staff
加入:2015-06-08 11:34
嗨,伊格蒂,

嗨,伊格蒂,

请参阅文档AN-B-023与外部存储器接口,您可以找到一个关于如何编程spi和从它引导的指南。注意:在写入任何内容之前,必须先擦除闪存。

Thanks MT_dialog

伊戈提特
Offline
Last seen:4 years 4 months ago
加入:2015-03-16 03:52
I tried as following

I tried as following procedure and the board is now boot from SPI flash memory.

固件:DSPS_设备.hex启用外部睡眠和UART H/W流量控制。

step1. DA14580 dev.kit.-pro J5 Jump setting as SPI support from Fig.6 page 16 on the manul (http://support.dialog-semiconductor.com/download/file/fid/941)

step2. Smart Snippet's first dialog(dialog bar title is Project and Virtual COM port / JATG selection) I select the JTAG.

step3. Click the "SPI Flash Programmer" and then click the button "connect" -> "erase" -> "erase sector" and finally click the button "Burn" . all of this process is success.

step4. finally I press the H/W reset button on the DA14580 dev.kit-pro.

step5. Check the DSPS Advertising and Connection working well from the DSPS Android app.

Above process show the good working for writing spi memeory and booting from spi memory.

然而,问题如下

1. the DSPS firmware is configured as UART H/W flow control. So we should set the J5 Jump as Fig16. page 31 of the DSPS manualhttp://support.dialog-semiconductor.com/download/file/fid/895
如果应用此h/w流量控制跳转设置,则无法应用上述step1的SPI可引导跳转设置,因此该板无法从SPI内存引导。

最后,我们需要以下函数da14580开发工具包-专业人士。
功能1。如果我们的android应用程序。开发人员只需打开(USB连接到PC)的开发工具包-然后再将dsp加载到工作状态。(即从主板上的SPI内存引导)
功能2。pc s/w(超终端或tera术语)可与DA14580通信。
功能3。android应用程序。开发人员应该使用上面的函数2测试他的应用程序代码。i、 e使用pc终端软件的双向Tx/Rx通信测试环境。

How can I achieve this functionality using DA14580 dev.kit-pro (DSPS firmware written) ?

MT_dialog
Offline
Last seen:1周6天前
Staff
加入:2015-06-08 11:34
嗨,伊格蒂,

嗨,伊格蒂,

You can change the pin map of the default UART pins in order to use the UART and the SPI for example use pins P0_4, P0_2, P1_1, P1_3.

Since the firmware is loaded into the SPI after every reset or power on the device is going to be ready to use. The communication is birectional by default.

Thanks MT_dialog

伊戈提特
Offline
Last seen:4 years 4 months ago
加入:2015-03-16 03:52
嗨,MT\u dialog,

嗨,MT\u dialog,

O.K. I got it! Thanks again,

解决问题的程序。

1periph\u setup.h.修改如下,然后生成项目

P0.2 - UART1 CTS,
P1.1 - UART1 RTS (changed from P0.3)
P0.4 - UART1 TX
P1.3 UART1 RX(从P0.5更改)

2. Using smart snippets write to SPI flash memory.
- the same as step1,2,3,4,5 I wrote above reply post.

3. Add Jump for DA14580 UART connection to FTDI USB chip pin.
-你可以从这张照片上看到详细信息。->http://cfile8.uf.tistory.com/original/273F063B55C35E411BB887

就这些。

现在开发工具包-pro可从spi闪存启动,PC机的超级终端与DA14580板上运行良好。

MT_dialog
Offline
Last seen:1周6天前
Staff
加入:2015-06-08 11:34
嗨,伊格蒂,

嗨,伊格蒂,

Thanks for sharing with so much detail.

MT_dialog

丰达米赫
Offline
Last seen:5年4天前
加入:2015-12-15 21:13
Hi all.

Hi all.
on Step #3

第三点说
"...step3. Click the "SPI Flash Programmer" and then click the button "connect" -> "erase" -> "erase sector" and finally click the button "Burn" . all of this process is success...."

My question is, can I program the SPI Flash, using the UART ?
Is this possible on a complete new chip (exit from factory) ?

I read in the AN-B-023 that should be possible (chapter 6)
"..SmartSnippets is the appropriated tool to download your application into the external memory very
easily. It can be downloaded fromhttp://support.dialog-semiconductor.com/software-downloads.
使用开发工具包,有两种可能将图像下载到外部
memory (by either choosing UART (see figure 2 for the setting of the jumper)..."

Mik

MT_dialog
Offline
Last seen:1周6天前
Staff
加入:2015-06-08 11:34
嗨,迈克,

嗨,迈克,

Yes is possible to program the SPI using the UART interface. Just set the right connections for UART and SPI and you will be able to do that.

Thanks MT_dialog

丰达米赫
Offline
Last seen:5年4天前
加入:2015-12-15 21:13
Ok, so maybe is the OTP of my

好吧,那么可能是我女儿的OTP被烧了,因为我只能通过JTAG来编程flash。

Because I receive the following error message (usig the the default UART jumper connection on evaluation kit-pro):
[INFO@16-01-09 14:05:56]固件文件C:\MyProgram\Hw\SmartSnippets\workspace\resources\flash_程序员.bin已选择下载。
[INFO @16-01-09 14:05:56] Connection to COM128 port has successfully opened.
[INFO@16-01-09 14:05:56]已开始下载过程。。。
[ACTION @16-01-09 14:05:57] Please press the hardware reset button on the board to start the download process.
[信息@16-01-09 14:06:00]检测到重置
[INFO@16-01-09 14:06:01]已成功从端口COM128断开连接。
[INFO @16-01-09 14:06:01] Connection to COM128 port has successfully opened.
[INFO@16-01-09 14:06:01]已成功从端口COM128断开连接。
[INFO @16-01-09 14:06:01] Successfully downloaded firmware file to the board.
[INFO@16-01-09 14:06:01]已成功配置SPI闪存端口和引脚。
[INFO @16-01-09 14:06:14] Connection to COM128 port has successfully opened.
[ERROR @16-01-09 14:06:14] Received error message while checking whether SPI erase was successful: FFFFFFFF.
[INFO @16-01-09 14:06:14] Successfully disconnected from port COM128.
[ERROR @16-01-09 14:06:14] SPI Memory erasing failed.

相反,在Booter选项卡上使用具有相同跳线配置的UART没有问题。

我之所以重新打开这个线程,是因为我们想使用带有SPI的DA14580,并通过UART对其进行编程。
Reading documentation and post looks like it possible, but till now I did not see on my pro-kit.

So let me ask if we are on the correct way, we would like to:
1) Download our SW on the SPI trough the UART
2) 使其在下载和重置后运行
3) do an eventual FW upgrade, again with UART

所有这一步,我们想做的工厂OTP ROM配置和示意图,你可以看到在附加(基本上只有电流互感器是从OTP默认引脚配置移出,我们的软件考虑这一点)。

Thank, Mik

Attachment:
MT_dialog
Offline
Last seen:1周6天前
Staff
加入:2015-06-08 11:34
Hi MIk,

Hi MIk,

我附上了一个专业工具包的图片,附带的配置使您能够:

1) load the DSPS image in SPI using the UART mode using smart Snippets (or whatever you want to do with your SPI).

2) DSPS端口的配置如上所述,以便能够从SPI启动并在复位后与DSP一起工作。

The configuration is:

Change the pins p_05 -> p_13 (RX) and p_03 -> p11 (RTS). The additional cable (that is placed on the jumper) is for p05 and the MISO line of the SPI.

Thanks MT_dialog

Attachment:
丰达米赫
Offline
Last seen:5年4天前
加入:2015-12-15 21:13
谢谢你的提示

谢谢你的提示answer, give me some days to speak with our Hw Team,

Mik

Topic locked