首先,我真的很欣赏到目前为止我收到的令人敬畏的发展支持。你们是一个伟大的令人敬畏的团体,并且具有这种客户焦点,公司绝对是正确的。雷电竞下载app
I am beginning to integrate SPI flash support into DSPS sample source base. Our custom application requires flash read/write by the MCU after it has completely booted and running. What is the approach as I am not familiar to the Basic Kit HW?
只需查看两个项目的user_periph_setup.c,periph_init()中存在一些重叠行。我的问题是:
1. Is there a doc that describes SPI flash and what are the associated registers to set it up for read/wrrite?
2. How do I add the spi.c and spi_flash.c driver to the DSPS project? I know all board drivers exist under sdk/platform/driver.
Thanks,
--Khai
Adding SPI Flash support in DSPS peripheral code base
设备:
我干运行spi_flash项目,并取得了以下成果:
************
* SPI测试*
************
阅读SPI Flash第一个256字节……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
Bytes Read: 0xFFFF
SPI flash JEDEC ID is FFFFFF
执行程序页...页面编程。(FF)
阅读SPI Flash第一个256字节……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
Bytes Read: 0xFFFF
执行扇区擦除扇区......抹去。(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
Bytes Read: 0xFFFF
测试结束
在检查UM-B-014文档后,我将实现580个基本套件没有闪存的闪存。我不确定这是否是真的,因为文件非常陈旧,因为它描述了一个具有JTAG加密狗,运营板和女儿卡等的旧14580个开发套件。
然后它包装一个问题,这是我在板上闪光的基本套件?
Does this UM-B-014 document still valid for today's basic kit?
Thanks,
--Khai
如果580个基本套件没有闪存在板上,那么我将如何使用SmartSnippet,然后单击SPI闪存按钮以将DSP FW上传到闪存,并且还能够在写入之前擦除闪光灯?请帮我拉直事物。
Thanks,
--Khai
嗨凯海,
UM-B-014是指我们推出DA14580的orignial套件的专家套件:从那时起,我们已经使用了基本的套件和Pro套件。基本套件/专业套件在主板上有闪光灯设备,而专家套件则不会。
查看以下应用程序注释.N-B-023介绍如何接口外部存储器(例如SPI Flash)。这包括两个BASIC和PRO套件的选项,这将有助于你对你的方式告诉你如何访问API在SDK5的SPI闪存。
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.
如果你可以引用我的previous post about running the spi_flash sample code above resulted in everything 0s when reading flash. I believe the program created an array of 512 elements initialized it to (0...511) and write to flash and then read back. If the Basic Kit has flash on the main board, the read back should be valid. Please help...
Thanks,
--Khai
嗨kqtrinh,
基本套件在船上有一个闪光灯,但您需要通过相应的跳线连接它,您完成了吗?在基本套件上,只是J4标题后面有一个示意图,描述了应该进行的连接,以便在闪存上操作基本套件。
Thanks MT_dialog