programming external device with the eval kit

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
10 posts / 0 new
Last post
lionel_Avnet
Offline
Last seen: 11 months 2 days ago
Joined: 2016-11-14 10:22
programming external device with the eval kit

Hello 

Are they some restriction to use the eval kit to programm external DA14531 device (our prototype board, connected to the SW interface of the kit).

we have connected SWDIO_Jtag, SWLCK_Jtag, UTX (reset pin) to the eval board, but we can't programm our DA14531-0000FX2 device.

bests regards

Lionel

Device: 
PM_Dialog
Offline
Last seen: 3 days 23 hours ago
Staff
Joined: 2018-02-08 11:03
Hi lionel_Avnet,

Hi lionel_Avnet,

Please try to connect your custom board like this :

J1.21 (SWCLK) - > SW_CLK pin of custom board.

J1.23 (SWDIO) > SWDIO pin of custom board.

Of course you will need to have common ground

Thanks, PM_Dialog

lionel_Avnet
Offline
Last seen: 11 months 2 days ago
Joined: 2016-11-14 10:22
Hello 

Hello 

 

yes, theses connection have been ckecked ;   RST signal is also connected (and the board is supplied with the 3.3 V,  ID of the Jtag is recognised using Dialog SmartBond Flash programmer), but we still can't programm the external SPI flash of our custom board.

bests regards

 

PM_Dialog
Offline
Last seen: 3 days 23 hours ago
Staff
Joined: 2018-02-08 11:03
Hi lionel_Avnet,

Hi lionel_Avnet,

Could you please try to download fw into System-RAM thought Keil IDE? Is that working?  Are you able to detect the JTAG SN?

Please try to program the flash using the Flash Programmer from the SmartSnippets Toolbox. Are you able to connect or you are getting errors?

Thanks, PM_Dialog

lionel_Avnet
Offline
Last seen: 11 months 2 days ago
Joined: 2016-11-14 10:22
Hello 

Hello 

Yes we succeed to programm the RAM, that's working. We are able to detect Jtag.

What we did'nt suceed is to program the external SPI flash (same flash, same connexion as the eval kit)

bests regards

Lionel 

PM_Dialog
Offline
Last seen: 3 days 23 hours ago
Staff
Joined: 2018-02-08 11:03
Hi lionel_Avnet,

Hi lionel_Avnet,

Please try to use the Flash Programmer from the SmartSnippets Toolbox -  you should also check if you have selected the right SPI pins in the “Board Setup” . See section 9 and 15 from the user manual – link is provided below:

http://lpccs-docs.dialog-semiconductor.com/UM-B-083/index.html

Can you connect to the SPI flash or you are getting errors in the Log window?

Thanks, PM_Dialog

lionel_Avnet
Offline
Last seen: 11 months 2 days ago
Joined: 2016-11-14 10:22
We have done a test with an

We have done a test with an DA14531MOD (so module), connected on J1:

bellow are the error message : you can note that the SPI flahs is recognised, but Operation like Erase return error, Even the content of the flash seem to be well erased.

so we can connect to the DA14531MOD, but can't programm it with reliability.:

In advance many thanks

Lionel 

 

[INFO    General              @20-08-28 09:57:09] Found SW-DP with ID 0x0BC11477
[INFO    General              @20-08-28 09:57:09] No AP preselected. Assuming that AP[0] is the AHB-AP
[INFO    General              @20-08-28 09:57:09] AP-IDR: 0x04770031, Type: AHB-AP
[INFO    General              @20-08-28 09:57:09] AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
[INFO    General              @20-08-28 09:57:09] Found Cortex-M0 r0p1, Little endian.
[INFO    General              @20-08-28 09:57:09] FPUnit: 4 code (BP) slots and 0 literal slots
[INFO    General              @20-08-28 09:57:09] CoreSight components:
[INFO    General              @20-08-28 09:57:09] ROMTbl[0] @ E00FF000
[INFO    General              @20-08-28 09:57:09] ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
[INFO    General              @20-08-28 09:57:09] ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
[INFO    General              @20-08-28 09:57:09] ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
[INFO    General              @20-08-28 09:57:09] BTLE device selected.
[INFO    SPI Flash            @20-08-28 09:57:35] Found SW-DP with ID 0x0BC11477
[INFO    SPI Flash            @20-08-28 09:57:35] Using pre-configured AP[0] as AHB-AP to communicate with core
[INFO    SPI Flash            @20-08-28 09:57:35] AP-IDR: 0x04770031, Type: AHB-AP
[INFO    SPI Flash            @20-08-28 09:57:35] AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
[INFO    SPI Flash            @20-08-28 09:57:35] Found Cortex-M0 r0p1, Little endian.
[INFO    SPI Flash            @20-08-28 09:57:35] FPUnit: 4 code (BP) slots and 0 literal slots
[INFO    SPI Flash            @20-08-28 09:57:35] CoreSight components:
[INFO    SPI Flash            @20-08-28 09:57:35] ROMTbl[0] @ E00FF000
[INFO    SPI Flash            @20-08-28 09:57:35] ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
[INFO    SPI Flash            @20-08-28 09:57:35] ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
[INFO    SPI Flash            @20-08-28 09:57:35] ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
[INFO    SPI Flash            @20-08-28 09:57:35] Firmware File C:\Program Files (x86)\SmartSnippetsToolbox\SmartSnippetsToolbox5.0.10\common_resources\SupportPackages\DA1453x\toolbox_resources/common/jtag_programmer.bin has been selected for downloading.
[INFO    SPI Flash            @20-08-28 09:57:35] Successfully downloaded firmware file to the board.
[INFO    SPI Flash            @20-08-28 09:57:35] Successfully configured SPI Flash ports and pins.
[ERROR   SPI Flash            @20-08-28 09:57:43] Failed reading memory at address 0x7FC3C08.
[ERROR   SPI Flash            @20-08-28 09:57:43] SPI Memory erasing failed.
[INFO    SPI Flash            @20-08-28 09:58:04] Started reading 32768 bytes from memory.
[INFO    SPI Flash            @20-08-28 09:58:04] Read 16384 bytes from offset 0x00
[INFO    SPI Flash            @20-08-28 09:58:04] Read 16384 bytes from offset 0x4000
[INFO    SPI Flash            @20-08-28 09:58:05] Reading has finished. Read 32768 bytes.
[INFO    SPI Flash            @20-08-28 09:59:30] Copying file: C:\Users\g-keep\Downloads\DA14531\DA145xx_SDK\6.0.14.1114\projects\target_apps\ble_examples\ble_app_peripheral\Keil_5\out_DA14531\Objects\ble_app_peripheral_531.hex to C:\Users\g-keep\AppData\Local\Temp\\input1.hex.
[INFO    SPI Flash            @20-08-28 09:59:30] Converting file input1.hex to bin.
[INFO    SPI Flash            @20-08-28 09:59:30] Read 17268 bytes from file input1.bin.
[INFO    SPI Flash            @20-08-28 09:59:42] Found SW-DP with ID 0x0BC11477
[INFO    SPI Flash            @20-08-28 09:59:42] Using pre-configured AP[0] as AHB-AP to communicate with core
[INFO    SPI Flash            @20-08-28 09:59:42] AP-IDR: 0x04770031, Type: AHB-AP
[INFO    SPI Flash            @20-08-28 09:59:42] AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
[INFO    SPI Flash            @20-08-28 09:59:42] Found Cortex-M0 r0p1, Little endian.
[INFO    SPI Flash            @20-08-28 09:59:42] FPUnit: 4 code (BP) slots and 0 literal slots
[INFO    SPI Flash            @20-08-28 09:59:42] CoreSight components:
[INFO    SPI Flash            @20-08-28 09:59:42] ROMTbl[0] @ E00FF000
[INFO    SPI Flash            @20-08-28 09:59:42] ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
[INFO    SPI Flash            @20-08-28 09:59:42] ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
[INFO    SPI Flash            @20-08-28 09:59:42] ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
[INFO    SPI Flash            @20-08-28 09:59:42] Firmware File C:\Program Files (x86)\SmartSnippetsToolbox\SmartSnippetsToolbox5.0.10\common_resources\SupportPackages\DA1453x\toolbox_resources/common/jtag_programmer.bin has been selected for downloading.
[WARNING SPI Flash            @20-08-28 09:59:43] T-bit of XPSR is 0 but should be 1. Changed to 1.
[INFO    SPI Flash            @20-08-28 09:59:43] Successfully downloaded firmware file to the board.
[INFO    SPI Flash            @20-08-28 09:59:43] Successfully configured SPI Flash ports and pins.
[INFO    SPI Flash            @20-08-28 10:00:05] Started erasing from 0x00 to 0x4FFF (5 sectors)
[ERROR   SPI Flash            @20-08-28 10:00:05] Failed reading memory at address 0x7FC3C08.
[ERROR   SPI Flash            @20-08-28 10:00:05] SPI Memory erasing failed.
[INFO    SPI Flash            @20-08-28 10:00:05] Check if memory empty...
[INFO    SPI Flash            @20-08-28 10:00:06] Read 16384 bytes from offset 0x00
[INFO    SPI Flash            @20-08-28 10:00:06] Read 884 bytes from offset 0x4000
[INFO    SPI Flash            @20-08-28 10:00:06] Memory empty. Procceed with burn.
[INFO    SPI Flash            @20-08-28 10:00:06] Started burning memory with 17268 bytes of data at address 0x00.
[ERROR   SPI Flash            @20-08-28 10:00:06] Failed reading memory at address 0x7FC3C08.
[ERROR   SPI Flash            @20-08-28 10:00:06] Fail write 16384 bytes at offset 0x00
[INFO    SPI Flash            @20-08-28 10:00:55] Started reading 32768 bytes from memory.
[INFO    SPI Flash            @20-08-28 10:00:55] Read 16384 bytes from offset 0x00
[INFO    SPI Flash            @20-08-28 10:00:56] Read 16384 bytes from offset 0x4000
[INFO    SPI Flash            @20-08-28 10:00:56] Reading has finished. Read 32768 bytes.

PM_Dialog
Offline
Last seen: 3 days 23 hours ago
Staff
Joined: 2018-02-08 11:03
Hi lionel_Avnet

Hi lionel_Avnet

Could you please checkout the following forum ticket ?

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-hardware-device-reference-designs/programming-5

That user mentioned how he is able to program a DA14531MOD custom board using the JTAG of the Pro-DK. Would it be possible to try the same in you board?

Thanks, PM_Dialog

pege
Offline
Last seen: 8 months 3 weeks ago
Joined: 2020-10-12 09:58
I have the same problem. Did

I have the same problem. Did you get any response to this? From what I suspect is that it is NOT possible to use only JTAG/SWD pins, but you must also use SPI-pin or UART no matter the tools. If I disconnect MOSI on the PRO DK, the FW-loading fails.

Is there any workaround to use SWD? My current work-around is to use single-wire serial on the target.

Cheers

\P

PM_Dialog
Offline
Last seen: 3 days 23 hours ago
Staff
Joined: 2018-02-08 11:03
Hi pege,

Hi pege,

Thanks for your comment. Could you please clarify what you are trying to accomplish ? Do you need to program you custom board via JTAG and using the Pro-DK? If I understood correctly, please check the following document :

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

If you have any follow up question, please raise a new forum threads as this one is old and closed.

Thanks, PM_Dialog