⚠️
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.
4 posts / 0 new
Last post
MarkDsylva_2277
Offline
Last seen: 5 months 1 week ago
Joined: 2019-06-19 04:20
Flashing hex file in DA14585

Hi,

We are using DA14585 in one of our project. We are using DA14580 DEVkit to flash the board. The BLE chip returns device ID in debug window, but when flashing the code to RAM the following error occurs "can't acces target device stop debug session". Need your support to solve this issue

 

Device: 
PM_Dialog
Offline
Last seen: 4 hours 5 min ago
Staff
Joined: 2018-02-08 11:03
Hi MarkDsylva_2277,

Hi MarkDsylva_2277,

If I understood correctly your question, you are trying to download firmware to your custom board using Pro-DK and Keil IDE. If I am mistaken, please correct me.

Of course you can program your custom design by using the Pro-DK This can be done either via UART or the JTAG interface. Below are the required connections for each interface. I am assuming that you are trying through JTAG since you are using Keil IDE.

JTAG interface, the required connections are:

  • J4 - Pin 1 (VBAT_580) - > Vcc of the custom board.
  • J4 - Pin 25 (TMS) - > SWDIO pin of custom board.
  • J4 - Pin 27 (TCK) - > SW_CLK pin of custom board.
  • TP2 -> to the Vpp of the custom board (if OTP needs to be programmed).
  • J4 - Pin 2 (GND) - > to the ground of the custom board.

UART interface, the required connections are:

  • J4 - UTX - > on the RX pin of the custom board.
  • J4 - URX - > on the TX pin of the custom board.
  • J4 - RST - > to the RST pin of the custom board.
  • J4 - VBAT_580 - > to the Vcc of the custom board.
  • TP2 -> to the Vpp of the custom board (if OTP needs to be programmed).

Please check the connections and let me know.

Thanks, PM_Dialog

MarkDsylva_2277
Offline
Last seen: 5 months 1 week ago
Joined: 2019-06-19 04:20
We are using the JTAG

We are using the JTAG interface and the connections are the same as mentioned by you. Still we couldn't program and debug our custom board.
 Images are attached for your reference. The chip shows the SWD IDCODE but we couldn't program the chip.

Attachment: 
PM_Dialog
Offline
Last seen: 4 hours 5 min ago
Staff
Joined: 2018-02-08 11:03
Hi MarkDsylva_2277,

Hi MarkDsylva_2277,

Can you please indicate if you are trying to download FW to System-RAM or SPI Flash? If you press twice the “Start/Stop Debug Session” button from the Keil IDE, are you able to attach the debugger and start running the firmware? If you are trying to download FW to SPI Flash (Settings.jpg), this should be down through the Flash Programmer of SmartSnippets Toolbox. With the usage of Keil IDE, you can only download FW to system-RAM.  

Thanks, PM_Dialog