Freemaster using J-link plugin for s32k144 microcontroller

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Freemaster using J-link plugin for s32k144 microcontroller

1,303件の閲覧回数
rohit1749
Contributor III

I want to use Freemaster in my existing project for run-time debugging. I'm using segger j - link to communicate with freemaster.  I got below dialog box after test connection

I have modified the demo project freemaster_s32k144 such that it uses j-link to communicate with freemaster. What change should I make in the code.

In freemaster, I got below dialog box  after testing connection. 

rohit1749_0-1752484950038.png

 

 But after after starting communication, the variables are not updating.

rohit1749_1-1752484949636.png

 

 

Can someone tell me where I'm going wrong. I'm hereby attaching the zip folder of modified codebase.

0 件の賞賛
返信
6 返答(返信)

1,288件の閲覧回数
MichalH
NXP Apps Support
NXP Apps Support

Hello, 

can you try to update the Jlink software on your PC and specify a newer version of the JLinkARM.dll?  It is also important to select S32K144 device as a specific "CPU Type" in the FreeMASTER communication settings:

 

MichalH_0-1752486770782.png

 

I will be able to test it on my side during this week, I'll give more information then. 

Regards,
Michal

0 件の賞賛
返信

1,268件の閲覧回数
MichalH
NXP Apps Support
NXP Apps Support

Hello,

I have just tested the FRDM-S32K144 communication from FreeMASTER and I confirm it works properly over the following interfaces:

  • P&E firmware OpenSDA  (factory default)
  • J-Link firmware OpenSDA  (your case)
  • External J-Link

I'm using the J-Link software 8.12a and the J-Link firmware for OpenSDA V1 downloaded from here: https://kb.segger.com/NXP_S32K144EVB-Q100 

The test connection message shows a newer date than in your case. 

MichalH_1-1752565048889.png

 

Please try to update the JLink software and firmware.

Regards,
Michal

 

 

over a default P&E Micro OpenSDA f

0 件の賞賛
返信

1,253件の閲覧回数
rohit1749
Contributor III

I can't find SEGGER in my program files.

rohit1749_0-1752603375236.png

I have already installed the j link software, but its not there inside my program files.

Could you please provide the download link for the j link firmware.

Regards

0 件の賞賛
返信

1,247件の閲覧回数
MichalH
NXP Apps Support
NXP Apps Support

Hello,

the JLink software which includes the JLinkARM.dll needed by FreeMASTER can be downloaded from SEGGER here. It installs to "c:\Program Files\SEGGER\JLink"  by default.

The JLink OpenSDA V1 firmware, which can replace the default one from P&E Micro in the the S32K144 board can be downloaded here. This can be programmed to a board after you start it up with the Reset button pressed. A BOOTLOADER drive will appear in the attached PC and you simply copy the OpenSDA_V1.bin file to this drive, wait a few seconds and power cycle it again. More information can be found here.

Regards,
Michal

 

0 件の賞賛
返信

1,233件の閲覧回数
rohit1749
Contributor III

I tried updating segger DLL to version to 8.5 ,but still the response is same.

rohit1749_0-1752668443805.png

Do, I need to make any changes in  code of demo freemaster_s32k144 .I have attached the codebase of freemaster_s32k144.

The expected variable (adcRawValue) is getting updated in debug session of s32 design studio. But it's not updating in freemaster software as shown below.

rohit1749_1-1752668780130.png

 

Regards

Rohit

 

0 件の賞賛
返信

1,176件の閲覧回数
MichalH
NXP Apps Support
NXP Apps Support

Hello,

this issue should not depend on the application being debugged. I suspect that connecting FreeMASTER puts your application to debug-halt state but I have no explanation now. 

Some experiments to make:

- Make sure you disconnect the debugger (DS32) and reset the board before connecting FreeMASTER

- Press the Reset button while connected to FreeMASTER to see if it starts running (?)

- Have some test variable which is initialized to a non-zero value in main(). Show it in FreeMASTER - does it show the good value? Then make it modifiable in FreeMASTER and write some different value to it. Does the value change? Then disconnect/connect FreeMASTER and see the value - is it old or new value? (This experiment tests if a reset occurs when FreeMASTER connects).  

Thanks,
Michal

0 件の賞賛
返信