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).
我们有连接SWDIO_Jtag SWLCK_Jtag,属下(reset pin) to the eval board, but we can't programm our DA14531-0000FX2 device.
bests regards
Lionel
Device:
Hi lionel_Avnet,
Please try to connect your custom board like this :
J1.21 (SWCLK) - > SW_CLK销定制。
J1.23 (SWDIO) > SWDIO pin of custom board.
Of course you will need to have common ground
Thanks, PM_Dialog
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
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
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
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
我们做了一个测试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
(正O General @20-08-28 09:57:09] Found SW-DP with ID 0x0BC11477
[INFO General@20-08-28 09:57:09]未预选AP。假设AP[0]是AHB-AP
(正O General @20-08-28 09:57:09] AP-IDR: 0x04770031, Type: AHB-AP
(正O General @20-08-28 09:57:09] AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
(正O General @20-08-28 09:57:09] Found Cortex-M0 r0p1, Little endian.
(正O General @20-08-28 09:57:09] FPUnit: 4 code (BP) slots and 0 literal slots
(正O General @20-08-28 09:57:09] CoreSight components:
(正O General @20-08-28 09:57:09] ROMTbl[0] @ E00FF000
(正O General @20-08-28 09:57:09] ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
(正O General @20-08-28 09:57:09] ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
(正O General @20-08-28 09:57:09] ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
(正O General @20-08-28 09:57:09] BTLE device selected.
[INFO SPI Flash@20-08-28 09:57:35]找到了ID为0x0BC11477的SW-DP
(正O SPI Flash @20-08-28 09:57:35] Using pre-configured AP[0] as AHB-AP to communicate with core
(正O SPI Flash @20-08-28 09:57:35] AP-IDR: 0x04770031, Type: AHB-AP
(正O SPI Flash @20-08-28 09:57:35] AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
(正O SPI Flash @20-08-28 09:57:35] Found Cortex-M0 r0p1, Little endian.
(正O SPI Flash @20-08-28 09:57:35] FPUnit: 4 code (BP) slots and 0 literal slots
(正O SPI Flash @20-08-28 09:57:35] CoreSight components:
(正O SPI Flash @20-08-28 09:57:35] ROMTbl[0] @ E00FF000
(正O SPI Flash @20-08-28 09:57:35] ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
(正O SPI Flash @20-08-28 09:57:35] ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
(正O SPI Flash @20-08-28 09:57:35] ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
(正O 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.
(正O SPI Flash @20-08-28 09:57:35] Successfully downloaded firmware file to the board.
(正O 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.
(正O SPI Flash @20-08-28 09:58:04] Started reading 32768 bytes from memory.
(正O SPI Flash @20-08-28 09:58:04] Read 16384 bytes from offset 0x00
(正O SPI Flash @20-08-28 09:58:04] Read 16384 bytes from offset 0x4000
(正O SPI Flash @20-08-28 09:58:05] Reading has finished. Read 32768 bytes.
(正O 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.
(正O SPI Flash @20-08-28 09:59:30] Converting file input1.hex to bin.
(正O SPI Flash @20-08-28 09:59:30] Read 17268 bytes from file input1.bin.
(正O SPI Flash @20-08-28 09:59:42] Found SW-DP with ID 0x0BC11477
(正O SPI Flash @20-08-28 09:59:42] Using pre-configured AP[0] as AHB-AP to communicate with core
(正O SPI Flash @20-08-28 09:59:42] AP-IDR: 0x04770031, Type: AHB-AP
(正O SPI Flash @20-08-28 09:59:42] AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
(正O SPI Flash @20-08-28 09:59:42] Found Cortex-M0 r0p1, Little endian.
(正O SPI Flash @20-08-28 09:59:42] FPUnit: 4 code (BP) slots and 0 literal slots
(正O SPI Flash @20-08-28 09:59:42] CoreSight components:
(正O SPI Flash @20-08-28 09:59:42] ROMTbl[0] @ E00FF000
(正O SPI Flash @20-08-28 09:59:42] ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
(正O SPI Flash @20-08-28 09:59:42] ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
(正O SPI Flash @20-08-28 09:59:42] ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
(正O 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.
(正O SPI Flash @20-08-28 09:59:43] Successfully downloaded firmware file to the board.
(正O SPI Flash @20-08-28 09:59:43] Successfully configured SPI Flash ports and pins.
(正O 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.
(正O SPI Flash @20-08-28 10:00:05] Check if memory empty...
(正O SPI Flash @20-08-28 10:00:06] Read 16384 bytes from offset 0x00
(正O SPI Flash @20-08-28 10:00:06] Read 884 bytes from offset 0x4000
(正O SPI Flash @20-08-28 10:00:06] Memory empty. Procceed with burn.
(正O 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
(正O SPI Flash @20-08-28 10:00:55] Started reading 32768 bytes from memory.
(正O SPI Flash @20-08-28 10:00:55] Read 16384 bytes from offset 0x00
(正O SPI Flash @20-08-28 10:00:56] Read 16384 bytes from offset 0x4000
(正O SPI Flash @20-08-28 10:00:56] Reading has finished. Read 32768 bytes.
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
我也有同样的问题。做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
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