在dsp外围代码库中添加SPI Flash支持

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

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

我开始将spiflash支持集成到DSPS示例源代码库中。我们的自定义应用程序需要在MCU完全启动和运行后进行闪存读/写。由于我对基本套件硬件不熟悉,采用什么方法?

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

1是否有描述SPI闪存的文档,以及为读/写设置的相关寄存器是什么?
2如何将spi.c和spi\u flash.c驱动程序添加到DSPS项目中?我知道所有的单板驱动程序都在sdk/platform/driver下。

谢谢,
--凯
在dsp外围代码库中添加SPI Flash支持

设备:
kqtrinh.
离线
最后一次见到:3年10个月前
加入:2016-08-24 00:17
我把spi\ U闪光灯调干了

我干燥运行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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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

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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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

执行扇区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文件对今天的基本套件仍然有效吗?

谢谢,
--凯

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

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

谢谢,
--凯

je_dialog.
离线
最后一次见到:55分8秒前
职员
加入:2013-12-05 14:02
嗨凯海,

嗨凯海,

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

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

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

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

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

BR JE_DIALOG.

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

如果你可以参考我之前的文章,关于运行上面的spi\u flash示例代码,在读取flash时会导致一切0。我相信这个程序创建了一个由512个元素组成的数组,将其初始化为(0…511),然后写入flash,然后再读回。如果基本套件在主板上有闪存,则读回应该是有效的。请帮忙。。。

谢谢,
--凯

MT\u对话框
离线
最后一次见到:2个月3周前
职员
加入:2015-06-08 11:34
嗨kqtrinh,

嗨kqtrinh,

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

谢谢你的对话