본문 바로가기
임베디드.일렉트로닉스

KEIL. Keil MDK 에서 J-Link 사용하기

by i.got.it 2019. 10. 1.

 

 

In order to use J-Link with Keil µvision, install the SEGGER software & documentation pack first. Please verify that your J-Link software is up to date. In the following, a short step-by-step tutorial how to configure a Keil MDK project to get up and running with J-Link is given.

  • Open the project to configure
  • Select Project | Options for Target ... from the main menu
  • Click the "Device" tab and select the proper device

  • Click on the Debug tab and make sure that Cortex-M/R J-LINK / J-Trace is selected

  • In order to modify J-Link specific settings click the Settings button in the debug menu and a new dialog will show up:

  • Now the project is ready to be debugged with J-Link / J-Trace.

First, choose the right device in the project settings if not already done:

  • Click Project | Options for Target from the main menu
  • Switch to the Device tab
  • Select the appropriate device, for example STM32F207IG

 

Second, enable SEGGER flash loader:

  • Click Project | Options for Target from the main menu
  • Switch to the Utilities tab
  • Check Use Target Driver for Flash Programming
  • Select J-LINK / J-Trace Cortex in order to use the J-Link built-in flashloader

 

Third, configure flash loader:

  • Click Project | Options for Target from the main menu
  • Switch to the Debug tab
  • Select J-LINK / J-Trace Cortex

  • Click Settings
  • Check Verify Code Download and Download to Flash as shown in the screenshot below

Solving Known Problems

MDK V5.18 or earlier

  • Problem: When using ETM trace functionality with J-Trace for Cortex-M, status bar in uVision showed "Trace: No synchronization".
  • Problem: When using ETM trace functionality with J-Trace PRO for Cortex-M, sometimes the error "Failed to read trace data" appeared.
  • Problem: When using ETM trace functionality with J-Trace PRO for Cortex-M, uVision sometimes crashed when large amounts of trace data were read.

Solution: Copy this version (V2.99.20) of the JL2CM3.dll to $MDK_INST_DIR$\ARM\Segger.

 

MDK V4.60 or earlier

  • Problem: Some SW-DP Ids of Cortex-M0+ devices were not recognized correctly, resulting in an error message when trying to start a debug session. For example the NXP Kinetis L-series devices showed this problem.

Solution: Copy this version (V2.74) of the JL2CM3.dll to $MDK_INST_DIR$\ARM\Segger.

 

 

 

 


첫등록 : 2019년 10월1일 

최종수정 : 

 

본 글 단축주소 : https://igotit.tistory.com/

 


 

댓글



 

비트코인




암호화폐       외환/나스닥/골드       암호화폐/외환/나스닥/골드 암호화폐/외환/나스닥/골드   암호화폐/외환/나스닥/골드
     
현물 |선물 인버스 |선물 USDT       전략매니저(카피트레이딩)     롤오버 이자 없는 스왑프리계좌
( 스왑프리 암호화폐도 거래 가능 )    
MT4, MT5 , cTrader 모두 지원     FTMO 계좌 매매운용. MT4,MT5