I can,t program to flash

7 posts / 0 new
Last post
MS Kwon
Offline
Last seen:4 years 7 months ago
加入:2016-06-29 09:20
I can,t program to flash

Dear Dialog.

我有开发工具包。PRO和物联网开发工具包。
I've made my new board.
But i have a problem. I can't program to flash.
I use some signals in my H/W.(RST, SWCLK, SWDIO, VDD, GND like IoT Sensor board)
Daughter board(Dialog made) is good operation.

SDK 5.0.3
SmartSnippets Version 4.4.3.1415

Messages are below.

[INFO General @16-08-22 14:42:38] Could not measure total IR len. TDO is constant high.
[INFO General @16-08-22 14:42:38] Could not measure total IR len. TDO is constant high.
[INFO General @16-08-22 14:42:38] Could not measure total IR len. TDO is constant high.
[INFO General @16-08-22 14:42:38] Could not measure total IR len. TDO is constant high.
[INFO General @16-08-22 14:42:39] Could not measure total IR len. TDO is constant high.
[ERROR General @16-08-22 14:42:39] Could not read memory address 0x50003200 with function JLINKARM_ReadMemHW
[ERROR General @16-08-22 14:42:39] No known chip found while opening JLink connection. Terminating proccess...
[ERROR SPI Flash Programmer @16-08-22 14:42:39] Failed downloading firmware file to the board.
[ERROR SPI Flash Programmer @16-08-22 14:42:39] Failed configuring SPI Flash ports and pins.

Other case is below.

[INFO General @16-08-22 15:39:29] Could not measure total IR len. TDO is constant high.
[INFO General @16-08-22 15:39:29] Could not measure total IR len. TDO is constant high.
[INFO General @16-08-22 15:39:29] Could not measure total IR len. TDO is constant high.
[INFO General @16-08-22 15:39:30] Could not measure total IR len. TDO is constant high.
[INFO General @16-08-22 15:39:30] Found SWD-DP with ID 0x0BB11477
[INFO General @16-08-22 15:39:30] FPUnit: 4 code (BP) slots and 0 literal slots
[INFO General @16-08-22 15:39:30] Found Cortex-M0 r0p0, Little endian.
[INFO General @16-08-22 15:39:30] BTLE device selected.
[WARNING SPI Flash Programmer @16-08-22 15:39:30] T-bit of XPSR is 0 but should be 1. Changed to 1.
[INFO SPI Flash Programmer @16-08-22 15:39:30] Firmware File C:\DiaSemi\SmartSnippetsStudio\Toolbox\common_resources\jtag_programmer.bin has been selected for downloading.
[INFO SPI Flash Programmer @16-08-22 15:39:40] Successfully downloaded firmware file to the board.
[ERROR SPI Flash Programmer @16-08-22 15:39:40] Failed configuring SPI Flash ports and pins.

I spent some days. I've read lots of writings in your forum.
I need your help.

Thanks.

Device:
Gongyu_Dialog
Offline
Last seen:2 days 17 hours ago
加入:2016-04-27 07:07
Not sure if you have changed

Not sure if you have changed the SPI gpio configurations ?
Regarding 580, normally we use P00/P03/P05/P06.
if you are not using these pins, you need to modify the configuration in project "tools\flash_programmer".
After compiling the project, copy jtag_programmer.bin & flash_programmer.bin to
"C:\Users\glu\SmartSnippets\resources"

MS Kwon
Offline
Last seen:4 years 7 months ago
加入:2016-06-29 09:20
Dear Gongyu_Dialog.

Dear Gongyu_Dialog.

Thanks for your reply.

This problem is found when i program by SmartSnippets (Studio) at first time.
My board is first power on.
At this time, i hit 'Connect Button', i can see the problem.

When i develop in Keil, Debug works well.

Now I'm on developing,
i will try on you.

See you next time.

ankitdaf
Offline
Last seen:2 years 8 months ago
加入:2015-09-03 20:14
Did you find a solution to

Did you find a solution to this problem ?

PM_Dialog
Offline
Last seen:20何urs 45 min ago
Staff
加入:2018-02-08 11:03
Hi ankitdaf,

Hi ankitdaf,

This thread is quite old, so could you please clarify in which problem are you referring to?

Thanks, PM_Dialog

ankitdaf
Offline
Last seen:2 years 8 months ago
加入:2015-09-03 20:14
Hi

Hi

I am talking about the below

[ERROR General @16-08-22 14:42:39] Could not read memory address 0x50003200 with function JLINKARM_ReadMemHW
[ERROR General @16-08-22 14:42:39] No known chip found while opening JLink connection. Terminating proccess...
[ERROR SPI Flash Programmer @16-08-22 14:42:39] Failed downloading firmware file to the board.
[ERROR SPI Flash Programmer @16-08-22 14:42:39] Failed configuring SPI Flash ports and pins.

Able to program the chip with UART but not with JTAG. UART is quite slow compared to JTAG, so would really appreciate a way out here.

PM_Dialog
Offline
Last seen:20何urs 45 min ago
Staff
加入:2018-02-08 11:03
Hi ankitdaf,

Hi ankitdaf,

Your post is quite generic in order understand which is the reason that you are not able to connect the JTAG. Could you please clarify if you are using a custom board or any of our development kits? Which chip are you using? The most possible reason is that the JTAG interface has a problem and the SmartSnippets toolbox is not able to detect the chip that you are using, so the process is terminated.

Thanks, PM_Dialog