在DSPS外围代码库中添加SPI闪存支持

6个帖子/ 0新
最后一篇
kqtrinh.
离线
最后一次露面:3年10个月前
加入:2016-08-24 00:17
在DSPS外围代码库中添加SPI闪存支持

首先,我真的很欣赏到目前为止我收到的令人敬畏的发展支持。你们是一个伟大的令人敬畏的团体,并且具有这种客户焦点,公司绝对是正确的。雷电竞下载app

我开始将SPI Flash支持集成到DSPS样本源基础中。我们的自定义应用程序需要在完全引导和运行后由MCU读取/写入。基本套件HW不熟悉的方法是什么?

只需查看两个项目的user_periph_setup.c,periph_init()中存在一些重叠行。我的问题是:

1.有没有描述SPI Flash的文档,以及将其设置为读/ rrite的相关寄存器是什么?
2.如何将SPI.C和SPI_FLASH.C驱动程序添加到DSPS项目中?我知道所有板驱动程序都存在于SDK /平台/驱动程序下。

谢谢,
- khai
在DSPS外围代码库中添加SPI闪存支持

设备:
kqtrinh.
离线
最后一次露面:3年10个月前
加入:2016-08-24 00:17
我干涸了spi_flash

我干燥运行SPI_FLASH项目并获得以下结果:

************
* SPI测试*
************

读SPI闪存第一256字节...... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00

字节读:0xFFFF

SPI Flash Jedec ID是FFFFFF

执行程序页...页面编程。(FF)

读SPI闪存第一256字节...... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00

字节读:0xFFFF

执行扇区erase ...划分的扇区。(FF)

执行512字节写入...写入的数据。(FF)

读SPI闪存前512个字节...... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

字节读:0xFFFF

测试结束

在检查UM-B-014文档后,我将实现580个基本套件没有闪存的闪存。我不确定这是否是真的,因为文件非常陈旧,因为它描述了一个具有JTAG加密狗,运营板和女儿卡等的旧14580个开发套件。

然后它包装一个问题,这是我在板上闪光的基本套件?
此UM-B-014文档是否对当今的基本套件有效?

谢谢,
- khai

kqtrinh.
离线
最后一次露面:3年10个月前
加入:2016-08-24 00:17
如果580基本套件没有

如果580个基本套件没有闪存在板上,那么我将如何使用SmartSnippet,然后单击SPI闪存按钮以将DSP FW上传到闪存,并且还能够在写入之前擦除闪光灯?请帮我拉直事物。

谢谢,
- khai

je_dialog.
离线
最后一次露面:1小时12分钟前
职员
加入:2013-12-05 14:02
嗨凯海,

嗨凯海,

UM-B-014是指我们推出DA14580的orignial套件的专家套件:从那时起,我们已经使用了基本的套件和Pro套件。基本套件/专业套件在主板上有闪光灯设备,而专家套件则不会。

查看以下应用程序注释.N-B-023介绍如何接口外部存储器(例如SPI Flash)。这涵盖了基本和Pro套件的选项,它应该在您的方式上帮助您,并向您展示如何为SPI闪存访问SDK5中的API。

https://support.dialog-semicondiondiondiondum/resource/b-023-interfacing-da14 ...

此外,下面的软件开发指南的第10.10节将向您展示如何使用SPI闪存驱动程序。

https://support.dialog-semicondiondiondiondum/resource/um-b-051-da14580-softw ...

BR JE_DIALOG.

kqtrinh.
离线
最后一次露面:3年10个月前
加入:2016-08-24 00:17
如果你可以引用我的

如果您可以引用关于运行上面的SPI_FLASH示例代码的上一篇文章,导致读取Flash时的所有0s。我认为该程序创建了一个512元元素的数组初始化它(0 ... 511)并写入闪存,然后读回。如果基本套件在主板上闪烁,则读回应有效。请帮忙...

谢谢,
- khai

mt_dialog.
离线
最后一次露面:2个月3周前
职员
加入:2015-06-08 11:34
嗨kqtrinh,

嗨kqtrinh,

基本套件在船上有一个闪光灯,但您需要通过相应的跳线连接它,您完成了吗?在基本套件上,只是J4标题后面有一个示意图,描述了应该进行的连接,以便在闪存上操作基本套件。

谢谢mt_dialog.