嗨,
I have a custom PCB which uses the DA14531 module. I'm able to run my program on the SysRAM using Keil. But I get the following error when I try to program or erase the SPI Flash on the module using the SmartBond Flash Programmer tool.
[Info General @ 20-09-15 19:07:20]精选的设备。[信息SPI Flash @ 20-09-15 19:07:20]固件文件D:\ Diasemi \ SmartBondFlashProgrogmer1.0.4 \ common_resources \ supportpackages \ da1453x \ toolbox_resources / common / jtag_programmer.bin已被选中以下载。[信息SPI Flash @ 20-09-15 19:07:21]成功配置了SPI端口和引脚。[Info SPI Flash @ 20-09-15 19:07:21]成功下载了固件文件到电路板。[信息SPI Flash @ 20-09-15 19:07:21]从0x00到0x3FFFF开始删除(64个扇区)[错误SPI Flash @ 20-09-15 19:07:21]失败的删除内存。[信息概述@ 20-09-15 19:07:22]精选的设备。[信息SPI Flash @ 20-09-15 19:07:23]固件文件D:\ DiaSemi \ SmartBondFlashProgrogmer1.0.4 \ common_resources \ supportpackages \ da1453x \ toolbox_resources / common / jtag_programmer.bin已被选中以下载。[信息SPI Flash @ 20-09-15 19:07:23]成功配置了SPI端口和引脚。[信息SPI Flash @ 20-09-15 19:07:23]成功下载了固件文件到电路板。[信息SPI Flash @ 20-09-15 19:07:23]添加可启动标题。 [INFO SPI Flash @20-09-15 19:07:23] Started erasing from 0x00 to 0x5FFF (6 sectors) [ERROR SPI Flash @20-09-15 19:07:24] Adddittional error info at JTAG address 0x7FC3C0C. (MSB first): FF FF FF F8. [ERROR SPI Flash @20-09-15 19:07:24] Fail write 16384 bytes at offset 0x00 [ERROR SPI Flash @20-09-15 19:07:24] Failed burning memory.
定制板有4个针向编程,SWCLK,SWDIO,GND和3V,所有这些引脚都连接到Pro-DK的主板。我在2个自定义PCB上看到了这个问题,因此模块故障似乎并不是一个问题。什么可能导致这个问题?
谢谢
嗨Tsgowtham,
谢谢for your question. I assume that the SWD connections between the Pro-Dk and your custom board is correct, as you can program the System-RAM.
但是,您是否可以检查您是否具有与附加图像相同的跳线配置?
Can you detect the JTAG ID in the Flash Programmer?
您提到您在2个定制板上看到了这个问题,所以你可以编写你的REST板的闪存吗?你有备用局吗?
You should remove the Daughter Board Module from the Pro-DK too.
如果您的定制板已有电源,例如,电池不需要3V3(红线)。
除此之外,建议使用优质的跳线。
谢谢,PM_DIALOG.
嗨pm_dialog,
我reacreated确切的跳线配置you have provided and I'm still facing this issue. I am able to detect the JTAG ID in the flash programmer and all my attempts at programming the Flash was with the daughter board removed. I doubt I'll be able to get my hands on few more boards to try this for now. My board currently does not have another power supply and I believe that the jumpers are of good quality. I did try another pair of jumpers just to be sure and it didn't work with those too. The custom firmware jtag_programmer.bin does get loaded, so I doubt it's an issue with the jumper cables.
我想澄清一件事是可以使用p0_0作为正常gpio吗?P0_0连接到PCB上的传感器,但不应设置或重置该行,直到我的程序开始运行。我已经验证了我能够使用与相同的引脚连接的相同传感器在子板上编程闪光灯。
谢谢
嗨Tsgowtham,
你提到你正在使用习俗固件JTAG_PRIGHIMMER.BIN。为此,我强烈建议使用默认的jtag_programmer.bin。- 它在Flash程序员工具中。
如果检查日志文件,您将看到闪烁过程已正确完成:
[信息SPI Flash @ 20-09-15 19:07:23]固件文件D:\ DiaSemi \ SmartBondFlashProgrogmer1.0.4 \ common_resources \ supportpackages \ da1453x \ toolbox_resources / common / jtag_programmer.bin已被选中以下载。
[信息SPI Flash @ 20-09-15 19:07:23]成功配置SPI端口和引脚。
[信息SPI Flash @ 20-09-15 19:07:23]成功将固件文件下载到电路板上。
Then the erase procedure takes place which is not succeeded.
So, please try to use the default jtag_programmer.bin.
谢谢,PM_DIALOG.
嗨pm_dialog,
我觉得你误解了我的意思或者我应该更好地留下它。我正在使用闪光工具中提供的默认jtag_programmer.bin。我甚至都不知道JTAG_PRIGHIGGMER固件如何工作,所以我要做的最后一件事就是修改它。
另外,再次指着它,但是你能看一下关于P0_0 PIN的最后一篇文章吗?
谢谢
嗨Tsgowtham,
在DA14531MOD中,P0_0也连接到内部闪光灯 - 它是MOSI信号。这可能会造成麻烦。
对于编程,您也需要MOSI。如果外部传感器阻止信号,则无法进行编程。
是否有可能将传感器放入另一个GPIO以测试它?
Additionally, you should ensure that the external sensor does not interfere with MOSI at the booting time.
谢谢,PM_DIALOG.
嗨pm_dialog,
我从PCB中达到DA14531模块,并且能够使用连接到焊盘的跳线来编程模块的闪光灯。所以我猜这项是由于P0_0连接到传感器。
谢谢
嗨Tsgowtham,
Yes, probably the sensor connected to P0_0 was blocking the programming, so I would recommend to connect it to another GPIO.
谢谢,PM_DIALOG.