6055 views|21 replies

35

Posts

1

Resources
The OP
 

GD32L233C-START uses J-Link SWD to download and reports an error!!! Please solve [Copy link]

 

Hey guys, for the GD32L233C-START evaluation board, has anyone used J-Link to burn and debug programs (SWD)? I'd like to ask if you have encountered the error "Cannot Load Flash Programming Algorighm!"

Because I don't have an extra mini USB cable, I want to use JLink to burn and debug.

For the kernel, I chose the general-purpose Cortex-M23 kernel,

Some people on the Internet said that it might be a problem with the JLINK driver version. I have updated the Jlink driver to V7.60 (JLINK under keil was also updated), but it still reports an error. I am at a loss. Please help! ! ! ! !

This post is from GD32 MCU

Latest reply

It's good that it can be solved. This post, collection   Details Published on 2022-1-19 07:14
 

35

Posts

1

Resources
2
 
In addition, the ARM emulator I use is V9
This post is from GD32 MCU
 
 
 

6554

Posts

0

Resources
3
 

Have you checked the hardware, such as the connection cable?

This post is from GD32 MCU

Comments

No problem  Details Published on 2022-1-17 22:38
 
 
 

35

Posts

1

Resources
4
 
Jacktang posted on 2022-1-17 22:37 Have you checked the hardware, such as the connecting wires?

No problem

This post is from GD32 MCU

Comments

There is no problem with the hardware. "Cannot Load Flash Programming Algorighm!" The Flash programming algorithm has not been added or has been added incorrectly.   Details Published on 2022-1-18 07:25
 
 
 

6554

Posts

0

Resources
5
 

There is no problem with the hardware.

"Cannot Load Flash Programming Algorighm!" The Flash programming algorithm has not been added, or it has been added incorrectly.

This post is from GD32 MCU
 
 
 

6554

Posts

0

Resources
6
 

In Project->Option->, programming algorithm has been added

If it still reports an error, try lowering the download clock frequency. The steps are as follows:
1. Project->Option...->Debug->use: Settings
2. Lower the Max JTAG clock.


This post is from GD32 MCU

Comments

I have also tried to lower the download clock frequency, but the error still occurs.  Details Published on 2022-1-18 08:34
 
 
 

35

Posts

1

Resources
7
 
Jacktang posted on 2022-1-18 07:28 I have added programming algorithm in Project->Option-> but it still gives an error. Try to lower the download clock frequency and operate...

I have also tried to lower the download clock frequency, but the error still occurs.

This post is from GD32 MCU
 
 
 

174

Posts

1

Resources
8
 

Look at the address of your RAM and ROM under the target in the magic wand;

RAM: 20000000+8000

ROM: 8000000+40000

Try this

This post is from GD32 MCU

Comments

The configuration of RAM and ROM addresses is also this. I directly use their official routines to do my project.  Details Published on 2022-1-18 09:11
 
 
 

174

Posts

1

Resources
9
 
"Cannot Load Flash Programming Algorighm!" Try doubling the RAM in the flash down, leaving the start unchanged, and increasing the size to 0x2000.
This post is from GD32 MCU
 
 
 

6742

Posts

2

Resources
10
 

Is it possible that it is a problem with the JLink firmware?

This post is from GD32 MCU

Comments

Are you talking about the firmware version of the JLink emulator? I used this JLink to program STM32F103 before and it worked fine, so it can be ruled out that the emulator hardware is broken.  Details Published on 2022-1-18 09:14
 
 
 

35

Posts

1

Resources
11
 
chrisrh posted on 2022-1-18 09:03 Look at the address of your ram and rom under the target in the magic wand; RAM: 20000000+8000 ROM: 8000000+40000 Try this...

The configuration of RAM and ROM addresses is also this. I directly use their official routines to do my project.

This post is from GD32 MCU
 
 
 

35

Posts

1

Resources
12
 
wangerxian posted on 2022-1-18 09:10 Is it possible that it is a problem with the JLink firmware?

Are you talking about the firmware version of the JLink emulator? I used this JLink to program STM32F103 before and it worked fine, so it can be ruled out that the emulator hardware is broken.

This post is from GD32 MCU

Comments

Is it possible that it is not compatible with Cortex-M23?  Details Published on 2022-1-18 09:40
 
 
 

6742

Posts

2

Resources
13
 
emmnn posted on 2022-1-18 09:14 Are you talking about the firmware version of the JLink emulator? I used this JLink to burn STM32F103 before, so it can be ruled out that it is the emulator's hardware...

Is it possible that it is not compatible with Cortex-M23?

This post is from GD32 MCU

Comments

I looked at my previous Taobao order and found that the programmer does not support the Cortex-M23 core. Thank you for your help.  Details Published on 2022-1-18 09:49
 
 
 

35

Posts

1

Resources
14
 
wangerxian posted on 2022-1-18 09:40 Is it possible that it is incompatible with Cortex-M23?

I looked at my previous Taobao order and found that the programmer really does not support the Cortex-M23 core. Thank you for your help.

This post is from GD32 MCU

Comments

Haha, good to know the problem!  Details Published on 2022-1-18 09:53
 
 
 

6742

Posts

2

Resources
15
 
emmnn posted on 2022-1-18 09:49 I looked at the previous Taobao order and found that the programmer does not support the Cortex-M23 core. Thank you for clearing up my confusion

Haha, good to know the problem!

This post is from GD32 MCU
 
 
 

538

Posts

3

Resources
16
 

In the Flash Download tab in the above picture, change the Ram for Algorithm size to 0x2000 and try it.

搜狗截图20220118130004.bmp (1.27 MB, downloads: 0)

搜狗截图20220118130004.bmp
This post is from GD32 MCU

Comments

I also think this is the problem. The prompt message says that the flash download algorithm cannot be downloaded. It should be that the RAM size is too small. I use this board and this problem will also be reported when writing 0x1000.  Details Published on 2022-1-18 16:07
 
 
 

282

Posts

2

Resources
17
 
xinmeng_wit posted on 2022-1-18 13:05 In the Flash Download tag in the above picture, change the Ram for Algorithm size to 0x2000.

I also think this is the problem. The prompt message says that the flash download algorithm cannot be downloaded. It should be that the RAM size is too small. I use this board and this problem will also be reported when writing 0x1000.

This post is from GD32 MCU

Comments

The default value of 0x1000 is indeed too small, which is a pitfall. Jlink V9 should support the M23 core.  Details Published on 2022-1-18 16:21
 
 
 

538

Posts

3

Resources
18
 
hehung posted on 2022-1-18 16:07 I also think this is the problem. The prompt message says that the flash download algorithm cannot be downloaded. It should be that the RAM size is too small. I use this board, ...

The default value of 0x1000 is indeed too small, which is a pitfall.
Jlink V9 should support the M23 core.

This post is from GD32 MCU
 
 
 

44

Posts

4

Resources
19
 

GD32E230 debugging using J-LINK | e-learn.cn

OP, I saw your question this afternoon and came across this article in the evening. You can try to modify it, it should be helpful.

This post is from GD32 MCU
 
 
 

35

Posts

1

Resources
20
 

Finally, the unified reply is that Jlink V9 does support the Cortex-M23 core. According to the suggestion on the 16th floor, the problem I encountered was solved by changing the Size of Ram for Algorithm to 0x2000. Finally, thank you all for your advice.

This post is from GD32 MCU

Comments

It's good that it can be solved. This post is collected  Details Published on 2022-1-19 07:14
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list