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

嗨,对话框,

目标板:DA14580开发套件。

My developing environment is the same as before post. ->http://support.dialog-semicondiondiondum/dsps-ext-sleep-current-too-large.
The last post, I wrote the firmware to SysRAM via UART.
现在,我应该向Android应用程序发送DA14580开发kit-pro。开发人员应该制作DSP通信程序。
因此,我应该将固件DSP写入闪存。应该从闪存引导dev.kit-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_device keil项目应该被修改?或者跳跃需要从闪存开始启动?或者智能片段的配置应该被修改?......等,我现在很困惑。

What preperation should be done to boot from flash?

Please, show me the step by step procedure.

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

嗨Igotit,

请参阅文档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 SPS_DEVICE.HEX启用EXT_SLEEP和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-semicondiondiondum/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-semicondiondiondum/download/file/fid/895.
如果应用此H / W流量控制跳转设置,则无法应用上述STEP1的SPI可启动跳转设置,因此电路板无法从SPI内存启动。

最后,我们需要以下函数da14580 dev.kit-pro。
功能1.如果我们的Android应用程序。开发人员刚刚打开(USB连接到PC)Dev.Kit-Pro然后加载DSP和工作状态。(即从母板上的SPI内存启动)
功能2. PC S / W(超级终端或TERA术语)可以与DA14580通信。
功能3. Android应用程序。开发人员应该使用上面的功能测试他的应用程序代码2。i.E使用PC的终端S / W的双向TX / RX通信测试环境。

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

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

嗨Igotit,

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_dialog,

嗨,mt_dialog,

O.K. I got it! Thanks again,

解决问题的程序。

1. periph_setup.h。修改如下,然后构建项目

P0.2 - UART1 CTS,
P1.1 - UART1 RTS (changed from P0.3)
P0.4 - UART1 TX
p1.3 uart1 rx(从p0.5变为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

那么。

现在,Dev.Kit-Pro可从SPI闪存,PC的HyperTerminal在DA14580上与PC的多功能合作。

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

嗨Igotit,

Thanks for sharing with so much detail.

MT_dialog

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

Hi all.
on Step #3

第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-semicondiondiondiondum/software-downloads..
使用开发套件,有两种可能将图像下载到外部
memory (by either choosing UART (see figure 2 for the setting of the jumper)..."

Mik

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

嗨mik,

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

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

好的,所以也许是我的女儿的OTP已经被烧毁了,因为我只能通过JTAG编程闪光灯。

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 \资源\ flash_prick_prickmer.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.
[info @ 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.
[信息@ 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.

而不是问题,而不是使用具有相同跳线配置的UART的Booter选项卡。

我重新打开这个线程的原因是因为我们希望使用DA14580使用SPI和Program The 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

所有这一步骤我们希望使用Factory OTP ROM配置,并使用原理图U可以在附件中看到(基本上只有CTS从OTP默认引脚配置中移动,而我们的SW考虑此操作)。

Thank, Mik

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

Hi MIk,

我附上了一个pro-kit的形象,附带的配置你将能够:

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

2)DSP端口如上所述配置,以便能够从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:
FONTAMIHW.
Offline
Last seen:5年4天前
加入:2015-12-15 21:13
感谢对话的提示

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

Mik

Topic locked