cancel
Showing results for 
Search instead for 
Did you mean: 

how to use J-Link in Ac6 System Workbench for STM32 environment?

wjandsq
Associate III
Posted on August 30, 2015 at 11:10

In Ac6 System Workbench for STM32 environment, how to use J-Link for debug? 

#j-link-ac6 #ac6-new-board-define
1 ACCEPTED SOLUTION

Accepted Solutions
wjandsq
Associate III
Posted on December 22, 2016 at 08:00

0690X00000603NnQAI.jpg 0690X00000603XHQAY.jpg 0690X00000603XMQAY.jpg

View solution in original post

11 REPLIES 11
Posted on August 31, 2015 at 13:51

Hi wjandsq,

Generally openocd supports J-Link, but it depends on the board you are using.

Try to follow these steps:

 

-Open debug Configurations, under Debugger view, script:

-

Tick Use local script

-

 

Browse configuration script and go to 

-

..\STM32Cube_FW_F3_V1.2.0\Projects\board _name\Examples\..\..\SW4STM32\board_name/.custom.cfg

-

     

In .custom.cfg:

*change line 4 by source [find interface/jlink.cfg]

*comment transport select “hla_swd�

*change line 10 to  source [find target/stm32f3x.cfg] (for f3 family for instance)

Could you please also precise your board?

-Shahrzad-

wjandsq
Associate III
Posted on September 13, 2015 at 05:29

Hi shahrzad!

 Thank your reply!

 In Ac6 System Workbench for STM32 environment,new board define have no jlink, my custom board use stm32f4xx.

1  # This is an ac6_f4_std board with a single STM32F407ZETx chip.

2  # Generated by System Workbench for STM32

3

4  source [find interface/jlink.cfg]

6  set WORKAREASIZE 0x20000

7  transport select ''hla_swd''

8

9

10 source [find target/stm32f4x.cfg]

11 

12 # use hardware reset, connect under reset

13 reset_config srst_only srst_nogate

 fail to debug

0690X00000602WiQAI.jpg

Posted on September 14, 2015 at 17:31

May be the Ac6 / SW forum would be a better place to find support, scripts and templates for J-Link debugger support?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
leogarberoglio
Associate III
Posted on September 15, 2015 at 14:23

that forum is almost dead...

Posted on September 15, 2015 at 14:57

that forum is almost dead...

That doesn't reflect well on the user base then, does it...

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on September 15, 2015 at 16:07

Hi wjandsq,

Ensure that you have selected a board for your project, otherwise the debug session will not run.

0690X00000604sQQAQ.png -Shahrzad-
wjandsq
Associate III
Posted on September 19, 2015 at 15:06

I will try again,Thanks!

Open OCDä¸�能直接æ�?¯æŒ�Jlink,需è¦�ä¿®æ�?¹Jlink驱动,宣布失败,ä¸�å†�å°�试了。

wjandsq
Associate III
Posted on December 22, 2016 at 08:00

0690X00000603NnQAI.jpg 0690X00000603XHQAY.jpg 0690X00000603XMQAY.jpg
wjandsq
Associate III
Posted on December 22, 2016 at 08:01

Ac6 use JLink Debug OK!   the modify is   

${openstm32_compiler_path}\arm-none-eabi-gdb.exe