Unable to program the SPI Flash on DA14531 module

Learn MoreFAQsTutorials

8 posts / 0 new
Last post
tsgowtham
Offline
Last seen:5 days 17 hours ago
加入:2020-05-04 12:39
Unable to program the SPI Flash on DA14531 module

Hi,

我有一个自定义PCB,它使用DA14531模块。我能够使用Keil在Sysram上运行我的程序。但是当我尝试使用SmartBond Flash程序员工具在模块上编写或擦除SPI闪光时,我会收到以下错误。

[INFO General @20-09-15 19:07:20] BTLE device selected. [INFO SPI Flash @20-09-15 19:07:20] Firmware File D:\DiaSemi\SmartBondFlashProgrammer1.0.4\common_resources\SupportPackages\DA1453x\toolbox_resources/common/jtag_programmer.bin has been selected for downloading. [INFO SPI Flash @20-09-15 19:07:21] Successfully configured SPI ports and pins. [INFO SPI Flash @20-09-15 19:07:21] Successfully downloaded firmware file to the board. [INFO SPI Flash @20-09-15 19:07:21] Started erasing from 0x00 to 0x3FFFF (64 sectors) [ERROR SPI Flash @20-09-15 19:07:21] Failed erasing memory. [INFO General @20-09-15 19:07:22] BTLE device selected. [INFO SPI Flash @20-09-15 19:07:23] Firmware File D:\DiaSemi\SmartBondFlashProgrammer1.0.4\common_resources\SupportPackages\DA1453x\toolbox_resources/common/jtag_programmer.bin has been selected for downloading. [INFO SPI Flash @20-09-15 19:07:23] Successfully configured SPI ports and pins. [INFO SPI Flash @20-09-15 19:07:23] Successfully downloaded firmware file to the board. [INFO SPI Flash @20-09-15 19:07:23] Adding bootable header. [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.

The custom board has 4 pins for programming, SWCLK, SWDIO, GND and 3V and all these pins are connected to the motherboard of the Pro-DK. I have seen this issue on 2 custom PCBs, so it does not seem to be an issue due to a faulty module. What could be causing this issue?

Thanks

PM_Dialog
Offline
Last seen:6 hours 30 min ago
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

谢谢你的问题。我假设Pro-DK和您的自定义板之间的SWD连接是正确的,如您所能为系统RAM编程。

但是,你可以请检查如果你甲型肝炎e the same jumper’s configuration as the attached image?

您可以检测闪存程序员中的JTAG ID吗?

You mentioned that you have seen this issue on 2 custom boards, so can you program the flash of your rest boards? Do you have any spare board to try it?

您也应该从Pro-DK中删除子板模块。

If your custom board already has a power supply, battery for instance, the 3V3 (red line) is not required.

In addition to, it is recommended to use good quality jumper wires.

Thanks, PM_Dialog

Attachment:
tsgowtham
Offline
Last seen:5 days 17 hours ago
加入:2020-05-04 12:39
Hi PM_Dialog,

Hi PM_Dialog,

我重新创建了您提供的确切跳线配置,我还在面临这个问题。我能够检测Flash程序员中的JTAG ID,我在编程闪存时的所有尝试都是用子板删除的。我怀疑我能够让我的双手放弃几个董事会,现在试试这个。我的董事会目前没有另一种电源,我相信跳线质量很好。我确实尝试了另一对跳线,以确定,它也不适用于那些。自定义固件jtag_programmer.bin确实加载了,所以我怀疑它是跳线电缆的问题。

One thing I would like to clarify is if it is ok to use P0_0 as a normal GPIO? P0_0 is connected to a sensor on my PCB but the line should not be set or reset till my program starts running. I have verified that I'm able to program the flash on the Daughterboard with the same sensor connected with the same pinout.

Thanks

PM_Dialog
Offline
Last seen:6 hours 30 min ago
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

You mentioned that you are using acustomfirmware jtag_programmer.bin. To do so, I would strongly recommend using the default jtag_programmer.bin. – as it is within the Flash Programmer Tool.

If you check the log file, you will see that the flashing procedure is done correctly :

[信息SPI Flash @ 20-09-15 19:07:23]固件文件D:\ DiaSemi \ SmartBondFlashProgrogmer1.0.4 \ common_resources \ supportpackages \ da1453x \ toolbox_resources / common / jtag_programmer.bin已被选中以下载。

[INFO SPI Flash @20-09-15 19:07:23]Successfully configured SPI ports and pins.

[INFO SPI Flash @20-09-15 19:07:23]Successfully downloaded firmware file to the board.

然后擦除过程未成功进行。

所以,请尝试使用默认的jtag_programmer.bin。

Thanks, PM_Dialog

tsgowtham
Offline
Last seen:5 days 17 hours ago
加入:2020-05-04 12:39
Hi PM_Dialog,

Hi PM_Dialog,

I think you misunderstood what I meant or I should have phrased it a bit better. I am using the default jtag_programmer.bin provided in the Flasher tool. I don't even know how the jtag_programmer firmware works, so the last thing I would be doing is to modify it.

Also, just pointing to it again, but can you please take a look at my last post about the P0_0 pin?

Thanks

PM_Dialog
Offline
Last seen:6 hours 30 min ago
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

In the DA14531MOD, the P0_0 is connected to the internal flash as well - it is the MOSI signal. That might cause trouble.

For the programming you need the MOSI as well. If the external sensor blocks the signal, then programming is not possible.

Would it be possible to put the sensor into another GPIO to test it?

此外,您应该确保外部传感器不会在引导时间干扰MOSI。

Thanks, PM_Dialog

tsgowtham
Offline
Last seen:5 days 17 hours ago
加入:2020-05-04 12:39
Hi PM_Dialog,

Hi PM_Dialog,

I desoldered the DA14531 module from the PCB and was able to program the module's Flash using jumper attached to the pads. So I guess the isue was due to P0_0 being connected to the sensor.

Thanks

PM_Dialog
Offline
Last seen:6 hours 30 min ago
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

是的,可能连接到P0_0的传感器正在阻止编程,因此我建议将其连接到另一个GPIO。

Thanks, PM_Dialog