1 week ago
Custom board won't communicate with SPI flash
Posted by3hl3rt100 points 16 repliesHello,
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ærmbillede 2021-04-27 kl. 15.24.58.png | 183.66 KB |
Skærmbillede 2021-04-27 kl. 15.27.15.png | 78.23 KB |
Skærmbillede 2021-04-27 kl. 15.27.53.png | 50.34 KB |
log.txt | 8.31 KB |
1 week ago
Thanks for the reply, I look at the jtag setup.
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
Hi 3hl3rt,
>>>I cannot get jtag working if reset (P00) is also connected to the board.
Do you mean from the Pro-DK to your custom boards? What is the state of P00?
Thanks, PM_Dialog
1 week ago
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 |
1 week ago
Hi 3hl3rt,
Yes, the reset is not needed. Which SPI flash are you using?
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
1 week ago
The flash is the AT25XE512C-MAHN-T
I am not able to read it - I have attached a recording showing the steps - I have tried multiple boards.
Attachment | Size |
---|---|
da 14531_0.mp4 | 6.79 MB |
6 days ago
Hi 3hl3rt,
The AT25XE512C is supported by the flash programmer ://www.xmece.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-semiconductor.com/um-b-138/index.html
Thanks, PM_Dialog
Attachment | Size |
---|---|
SST.zip | 325.55 KB |
6 days ago
Hi 3hl3rt,
Yes, I saw this video but you pressed the “detect button” instead of “open”. In the v5.0.16 you should see the “Launch” button, so I suggested you this version just to make sure that we are doing the same steps.
Thanks, PM_Dialog
5 days ago
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?
5 days ago
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
5 days ago
No worries :)
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.
5 days ago
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
1 week ago
Hi 3hl3rt,
Thanks for your question online and for your interest in our BLE solutions.
Since you are using the Pro-DK to program your custom board via JTAG, I would recommend first check the following tutorial just to make sure that you have the proper configuration :
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-semiconductor.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