Change SPI pin configuration from Configuration Header

Learn MoreFAQsTutorials

6 posts / 0 new
Last post
ykovachev
Offline
Last seen:4 months 2 weeks ago
加入:2020-06-22 10:20
Change SPI pin configuration from Configuration Header

Hi All,

I use a custom DA14531 board connected to the DA14531 DEVKIT-PRO. I am able to program the ble_app_barebone еxample in the SYS RAM and execute, the board is working fine.

I am able to program the ble_app_barebone example to the SPI Flash on my board with SmartSnippet Toolbox and the process is sucessfull (I can read the flash and see that I've burned it successfully with the SmartSnippet Toolbox). The problem is that I use the following configuration on my custom board:
SPI-CLK: P0_4; SPI-CS: P0_1, SPI_MISO: P0_3 & SPI_MOSI: P0_6

So when I reset the board the DA14531 SoC cannot read from the SPI flash. As I understand this is because the DA14531 DEVKIT-PRO uses a Configuration Script stoared in the OTP header that tells the processor to use the default SPI configurations SPI-CLK: P0_4; SPI-CS: P0_1, SPI_MISO: P0_3 & SPI_MOSI: P0_0.

Where can I find the Configuration Script source code so I can change the SPI pins to match my custom header? What is the procedure to compile it & flash it to my custom board's OTP?

FYI: I tried modifying the flash_programmer_531.bin and the secondary_bootloader_531.bin (to use my SPI configs MOSI: P0_6), but this didn't make any difference.

Thanks,
Yordan

Device:
PM_Dialog
Offline
Last seen:1 hour 40 min ago
工作人员
加入:2018-02-08 11:03
Hi Yordan,

Hi Yordan,

Thanks for your question and for using the DA14531!

Given that different SPI pins are used in your design, I would recommend following section 11 Boot from specific SPI Portfrom theAN-B-072: DA14531 Booting from OTP and Serial Interfacesapplication note. You should burn the OTP Header to boot from specific GPIOs.

Since you have a custom board, you can also read section12 Booting from a custom PCB.

Thanks, PM_Dialog

ykovachev
Offline
Last seen:4 months 2 weeks ago
加入:2020-06-22 10:20
Thanks, let me check this and

Thanks, let me check this and I will update the thread.

Best Regards,
Yordan

PM_Dialog
Offline
Last seen:1 hour 40 min ago
工作人员
加入:2018-02-08 11:03
Hi Yordan,

Hi Yordan,

Yes please! i am waiting your feedback - it would be more than welcome!

Thansk, PM_Dialog

ykovachev
Offline
Last seen:4 months 2 weeks ago
加入:2020-06-22 10:20
Hello,

Hello,

Sorry for the delayed feedback on this. I managed to get my board working by reprogramming the Configuration Header from SmartSnippets Toolbox. For those unfamiliar the procedure is:

Connect the ProKit to Toolbox. Open SPI Flash/EEPROM and erase the SPI Flash.

Open OTP tool and click to OTP Header tab.

Connect to OTP header.

Change the BOOT SPECIFIC CONFIC & BOOT SPECIFIC PORT MAPPNG in the GUI.

Hit Burn.

For my specific case SPI-CLK: P0_4; SPI-CS: P0_1, SPI_MISO: P0_3 & SPI_MOSI: P0_6, I used:
BOOT SPECIFIC CONFIC: 02FFFFAA (b3, b2, b1, b0)

BOOT SPECIFIC PORT MAPPNG: 03060104 (mi, mo, cs, clk)

Hope this helps.

Best Regards,
Yordan

PM_Dialog
Offline
Last seen:1 hour 40 min ago
工作人员
加入:2018-02-08 11:03
Hi Yordan,

Hi Yordan,

Thank you very much for your detailed feedback and glad that you got it working. You can also mark any comment as "accepted" if you think that is helpful for the other community.

Regards, PM_Dialog