跳到主要内容

Custom board won't communicate with SPI flash

1 week ago

Custom board won't communicate with SPI flash

Posted by3hl3rt100分 16回复
0 upvotes

Hello,

I have a custom board with the DA14531, and I can't get it to communicate with the SPI flash.

I use the pro dev kit for flashing, and the chip is recognized by the tool.

I have removed everything on the board besides the MCU (+xtal, inductors and caps) and the flash, just to rule out that the external components was interfering. Pads for U3 was shorted out.

I have even tried to remove the flash, and hook FCS,SCK,MOSI,MISO to the flash on the dev board - but still getting nothing.

Am I missing something obvious?

Attachment Size
skærmbillede2021-04-27 kl。15.24.58.png 183.66 KB.
skærmbillede2021-04-27 kl。15.27.15.png 78.23 KB
skærmbillede2021-04-27 kl。15.27.53.png 50.34 KB
log.txt 8.31 KB.

1 week ago

PM_Dialog

Hi 3hl3rt,

感谢您在线问题,并欣赏您对我们的BLE解决方案的兴趣。

由于您正在使用PRO-DK通过JTAG编程您的自定义板,因此我建议首先检查以下教程只是为了确保您有正确的配置:

http://lpccs-docs.dialog-semiconductor.com/Tutorial_SDK6/debug_probe.html

According to the second screenshot from the attachments, it seems that the JTAG is detected. However, I am not able to see the right column. Since it is DA14531, the DA14531 option should be selected from the right column. It should be below DA14530.

After choosing the DA14531, launch the Toolbox and navigate to the Board Setup :https://s3.eu-west-2.amazonaws.com/lpccs-docs.dialog-semicondiond.com/um-b-083/tools/board_setup.html.

The correct configuration for the SPI pins should be :

SPI-CLK : P0_4

SPI-CS:P0_1

SPI-MISO : P0_3

SPI-MOSI : P0_0

Thanks, PM_Dialog

1 week ago

3hl3rt 100分

谢谢你的回复,我看看JTAG设置。

I don’t know if it is a hint or not, but I cannot get jtag working if reset (P00) is also connected to the board.

I do have the right pins selected for SPI

1 week ago

PM_Dialog

Hi 3hl3rt,

>>>如果复位(P00)也连接到电路板,我无法获得JTAG工作。

你的意思是从Pro-DK到您的定制董事会吗?P00的状态是多少?

Thanks, PM_Dialog

1 week ago

3hl3rt 100分

确切地说,如果我只将SWDIO和SWCLK从DEV-BAR板连接到我的电路板,则JTAG找不到电路板。

州立即向董事会施加电力时?

6 days ago

3hl3rt 100分

I was wrong about the reset (P00) being needed for for JTAG operation.

I have captured the SPI data on at analyzer - it seems like the flash actually responds, but I am unsure what the actual issue is.

This data is when I press "Connect" @ "SPI flash programmer" in the toolbox.
All three images are the same data, just zoomed in

Attachment Size
setup_4.png 25.68 KB
setup_5.png. 26.33 KB
setup_7.png 22.26 KB.

6 days ago

PM_Dialog

Hi 3hl3rt,

是的,不需要重置。您使用的是哪个SPI闪光灯?

If you press the “Connect button” from the Flash Programmer, are you able to connect to the flash? Can you read it?

Since you have the correct connections between Pro-DK and your own board (as described in the suggested tutorial), please share some screenshot showing the steps in the SS Toolbox.

Did you check the pins in the Board Setup?

Thanks, PM_Dialog

6 days ago

3hl3rt 100分

闪光灯是AT25xe512C-MAHN-T.

我无法读取它 - 我已经附上了一个录音,显示了步骤 - 我已经尝试过多个板。

Attachment Size
da 14531_0.mp4 6.79 MB.

5 days ago

PM_Dialog

Hi 3hl3rt,

The AT25XE512C is supported by the flash programmer :https://www.dialog-seminile.com/sites/default/files/2021-02/an-b-088%20da145xx%20flash%20selector%20guide_v1.2.pdf.

I would suggest to try it with SST v5.0.16 -SmartSnippets Toolbox V5.0.16 for Windows OS

See attached the steps you should follow.

TheDialog Smartbond Flash Programmer for Windows OScan be also used – see the user guide :

http://lpccs-docs.dialog-semicondiond.com/um-b-138/index.html.

Thanks, PM_Dialog

Attachment Size
sst.zip. 325.55 KB

5 days ago

3hl3rt 100分

did you actually watch the video? The steps you just purposed is exactly what I am doing.

我正在使用SST v5.0.14 - 升级到SST v5.0.16真的解决了我的问题吗?!?

5 days ago

PM_Dialog

Hi 3hl3rt,

是的,我看到了这个视频,但你按下了“检测按钮”而不是“打开”。在V5.0.16中,您应该看到“启动”按钮,所以我建议您这个版本只是为了确保我们正在执行相同的步骤。

Thanks, PM_Dialog

4 days ago

3hl3rt 100分

ok, The reason you didn't see me press "open", was that I needed to cut the video shorter for it to fit within the 10MB limit.

I tried v5.0.16, but the same result.

Does the attached screendumps from my logic analyzer look even remotely right?

4 days ago

MHv_Dialog

Hi,

Filling in for PM today so forgive me if I missed part of your previous discussions.

Looking at your schematic it appears that the flash power can be switched on and off using a DA14531 GPIO named PerfON. Are you sure that the flash is actually powered? Check the state of the GPIO and the flash supply voltage.

/ mhv.

4 days ago

3hl3rt 100分

不用担心 :)

To remove as many points of errors as possible, U3 is not mounted and the flash is powered directly.

when I look at the logic analyzer, I get a “7F” on the MISO from time to time, so it seems like something is going on.

接受答案!

4 days ago

MHv_Dialog

Okay my fellow Dane,

I'd suggest we change gear a bit and cut out a few links in the chain.

In the SDK, you will find a nice little flash test application that hopefully will give us more information.

..\SDK_6.0.14.1114\DA145xx_SDK\6.0.14.1114\projects\target_apps\peripheral_examples\spi\spi_flash\Keil_5\spi_flash.uvprojx

This application will attempt to analyze the flash circuit and do some read write operations. The results will be output via UART on port P0_6 at 115,200b/s. You can use the DA14531 development kit as the UART to USB converter. Build the application and load it into RAM from Keil. I'd appreciate if you could share the output data so I can have a look (We cannot receive txt files so please zip compress it)

/ mhv.

4 days ago

3hl3rt 100分

I will give it a try - but I am at bit unsure on how to Keil to use the ram instead of the flash?

1天前

3hl3rt 100分

谢谢你的建议,这有助于me debug the issue with the flash!