Segger J-Link debugger with real-time read,write parameter

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Segger J-Link debugger with real-time read,write parameter

Jump to solution
5,035 Views
kornwutchalermm
Contributor II

Hello,

I have J-Link V.8.00 (Segger) and and we will buy TWR-KV31F120M.

If i debugging via JTAG it can real-time read,write variable?

Now i can connected J-Link with KDS V.2.00.

Thank you.

Labels (1)
1 Solution
3,415 Views
ivadorazinova
NXP Employee
NXP Employee

Hi kornwut,

Thank you for your attached test results.

Yes, exactly. I can confirm you, that KDS is not able to read/write variables in real time in debug mode, you can achieve it by using FreeMASTER, Tutorial: FreeMASTER Visualization and Run-Time Debugging | MCU on Eclipse

Best Regards,

Iva

View solution in original post

0 Kudos
13 Replies
3,415 Views
kornwutchalermm
Contributor II

Thank you for all answer and support


1. I tried to use IAR + j link + FRED-KL25 connect with SWD not JTAG, it can real time read-write variables.

2. I tried to use Keil + j link + FRED-KL25 connect with SWD not JTAG, it real time can read-write variables.


Only KDS it can't read-write variable. Please confirm me again, KDS can real time read-write variables or not.

I will show my test result in clip video for you to understand clearly.

Keil Real time read write

IAR Real time read write

Regards,

Kornwut Chalermeekol

0 Kudos
3,416 Views
ivadorazinova
NXP Employee
NXP Employee

Hi kornwut,

Thank you for your attached test results.

Yes, exactly. I can confirm you, that KDS is not able to read/write variables in real time in debug mode, you can achieve it by using FreeMASTER, Tutorial: FreeMASTER Visualization and Run-Time Debugging | MCU on Eclipse

Best Regards,

Iva

0 Kudos
3,415 Views
BlackNight
NXP Employee
NXP Employee

Segger has many other means to access the data in realtime, see

https://www.segger.com/j-link-j-scope.html

https://www.segger.com/j-link-swo-viewer.html

SEGGER - The Embedded Experts - World’s first real time terminal with SEGGER J-Link

Which all are possible to be used in combination with KDS.

Erich

3,415 Views
mjbcswitzerland
Specialist V

Hi

If you buy a TWR-KV31F120M it has an on-board debugger and so doesn't need an external one (although this can also be used with the connect pin adapter - J-Link can be selected in KDS as debugger too).

Regards

Mark

Kinetis: µTasker Kinetis support

KV10: µTasker Kinetis TWR-KV10Z32 support

KV31: µTasker Kinetis TWR-KV31F120M support

For the complete "out-of-the-box" Kinetis experience and faster time to market

3,415 Views
kornwutchalermm
Contributor II

Thank you for answered my question.

I knew TWR-KV31F120 can debug on - board and does not need an external one .Anyway, I need to read-write value and debug in real –time via JTAG in KDS (Don’t need to use Freemaster).  Can Segger read-write value and debug in real time via JTAG?

Thank you

0 Kudos
3,416 Views
ivadorazinova
NXP Employee
NXP Employee

Dear kornwut chalermmeekol,

As Jorge mentioned, you can watch variables via expression view in KDS, but you must stop the program. It is not real-time routine.

The differences between J-Trace and J-Link is that J-Trace periodically halt cpu and read data from registers.


Here are the main differences, while ETM Trace is shortcut for Embedded Trace Macrocell, CoreSight Trace Macrocells - ARM

and ETB is shortcut for Embedded Trace Buffer, small, circular on-chip memory area where trace information is stored

during capture. It contains the data which is normally exported immediately after it has been captured from the ETM.

pastedImage_5.png

There are a lot of these tools, which you can use for the watching variables for J-Link.

pastedImage_0.png

Another one is e.g. J-Mem Memory Viewer, but it is for J-link too, because you must always stop the program

pastedImage_1.png


You can also use J-scope, it is something like Freemaster for J-link is a free-of-charge software to analyze and visualize data on a microcontroller in real-time, while the target is running.

You just choose target device, target interface and speed and its elf file.

https://www.segger.com/cms/admin/uploads/imageBox/JScope.png

SEGGER - The Embedded Experts - J-Scope

You can also look at User Guide for J-Link

https://www.segger.com/cms/admin/uploads/productDocs/UM08001_JLink.pdf

I hope this helps,

Iva


3,416 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello kornwut chalermmeekol:

Yes, it is possible to read-write variables while debugging with Segger J-Link. You can use the "Expressions" view:

pastedImage_2.png

Or the "Memory" view:

pastedImage_3.png

Of course write operations are only valid for RAM space.


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

3,416 Views
ivadorazinova
NXP Employee
NXP Employee

Yes, but only with J-Trace device. But I´m checking it...  and tell you more.

SEGGER - The Embedded Experts - J-Trace ARM

Best Regards,

Iva

3,416 Views
ivadorazinova
NXP Employee
NXP Employee

Dear chalermmeekol ,

I can recommend you the tutorial for visualization and run-time debugging for Freemaster

Tutorial: FreeMASTER Visualization and Run-Time Debugging | MCU on Eclipse

You can also try remote access control between two computers.

FREEMASTER: Remote Server Tutorial

Best Regards,

Iva

3,416 Views
ivadorazinova
NXP Employee
NXP Employee

Hello chalermmeekol,


please, do you try for watching variables to install the plugin EmbSysRegView, you get it  here EmbSysRegView ?

is an Eclipse Plugin which is designed for monitoring and modifying memory values.

Please, look at Updated Eclipse EmbSysReg Viewer with extra Freescale SVD Files | MCU on Eclipse

I hope it helps,

Iva

3,416 Views
piergiovannigor
Contributor II

I have installed EmbSysRegView  and made some test whith this software. It is very useful, but the values are upadated only when a breakpoint or a stop are executed and not in rela time.

Best Regards,

Pier Giovanni

3,416 Views
ivadorazinova
NXP Employee
NXP Employee

HI Pier,

yes, exactly. that´s what I ´m talking about...

Best Regards,

Iva

0 Kudos
3,416 Views
mjbcswitzerland
Specialist V

Hi

Note also that FreeMaster can be used to do some real-time variable monitoring/writing: http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FREEMASTER&fsrch=1&sr=5&pageNum=1

It will not be as fast (or unintrusive) as JTAG based but generally could be useful without any debugger connected.

Regards

Mark

Kinetis: µTasker Kinetis support

KV10: µTasker Kinetis TWR-KV10Z32 support

KV31: µTasker Kinetis TWR-KV31F120M support

For the complete "out-of-the-box" Kinetis experience and faster time to market