SWO IMXRT106X: SWO Data bug

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

SWO IMXRT106X: SWO Data bug

623 Views
pierre_denis
Contributor II

Hello to all,

I am working on a project using IMXRT-1061/1062

I try to make the SWO Data work efficiently on MCUXpresso without success.

Setup configuration:

  • Move from MCUXpresso 11.5.0 to 11.7.0
  • Update SDK from 2.9.0 to 2.13.0/2.13.1
  • Change probe (MCULink or LPCLink2)

Configuration:

  • Main Clock speed: 528MH (#define BOARD_BOOTCLOCKRUN_CORE_CLOCK 528000000U)
  • Trace clock speed: 108MHz (#define BOARD_BOOTCLOCKRUN_TRACE_CLK_ROOT 108000000UL)

With this configuration, i am not using autodetect and set the Trace clock of 108MHz manually :

pierre_denis_0-1685007653733.pngpierre_denis_1-1685007673905.png

pierre_denis_0-1685025631823.png

pierre_denis_0-1685438721731.png

 

Configuration of the SWO:

pierre_denis_7-1685009085069.png

pierre_denis_4-1685008234991.png

pierre_denis_6-1685008899371.png

Widgets working:

Basically all except SWO Datas so SWO Profile/Interrupts/Timer/Console is OK.

Widget which is not working:

SWO Data plot is quite buggy.

  • It is impossible to resize the plot and autosizing obviously does not work perfectly (see after)
  • we can't erase previous set of data between 2 runs
  • datas between plot and table tabs does not match (see after)
  • update frequency of the data should be quite slow for proper data update

pierre_denis_1-1685025815500.png

Plot stay at 0

pierre_denis_2-1685025938039.png

While table is indicating value changed:

pierre_denis_3-1685025961121.png

This bug does not happen on all data. In this example, i am monitoring a variable inside a structure. gst_my_scheduler is a pointer to the structure. Another variable from the same structure does not seem to have any issue while it is the same kind of variable (uint32_t). What is suprising is that the table does display correct data, it is really the plot that is not displaying proper data values.

Is there specific limitation on some implementation (like volatile variable or packed struct)?

Is anybody out there does have the same issue? Is there some extra configuration to be done.

Thanks in advance

Tags (3)
0 Kudos
3 Replies

552 Views
pierre_denis
Contributor II

Hello @Miguel04,

Thank you for your answer but there might be a confusion.
I update the title of my post, the problem that I have is not on the SWO configuration. It is Working.
The problem is on the SWO Data (and more especially the Graph).

Here is a list of my issues

  • graph size when changing SWO data widget size (refer to capture on first post) don't resize in a correct manner.
  • some variable between table and plot are not the same (see captures on my first post) - table is good, plot is bad basically
  • if program is running constantly and we pause from time to time to modify data watched and run, after a certain number of occurence, IDE is freezing...

Other captures for the differences between table and plot. Signal is basically a ramp up from 0 to 4 and data is updated every 1ms.It is basically as the plot is undersampling my signal compare to the table. Sometimes 0 and 1 is not displayed, sometimes it is 4 even if everything is correct on the table.

pierre_denis_0-1685440390082.png

pierre_denis_1-1685440490990.png

Question related to my issues

  • Are there limitation on SWO Data watch (packed struct of volatile variable)?
  • Is there a way to force resizing of the plot?
  • How can we explain difference data between table and plot, how can we improve this to avoid losing precious values?

Extra question

  • can we save SWO configuration scenario in a file for later used (like debug configuration probe ready to use) in SWO Datas?
  • i saw you were working on VSCode integration, will there be the SWO feature implemented?

Thanks in advance.

Regards

 

0 Kudos

535 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @pierre_denis 

Thanks for the clarification, I'll look into it, meanwhile, this advanced debugging tutorial explains how to use the profiling features enabled through SWO.

Advanced Debugging with MCUXpresso IDE | Part 6 | SWO Trace

I'll let you know what I found.

Best Regards, Miguel.

0 Kudos

582 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @pierre_denis 

Please look into this documents for more information about SWO.

AN13234 How to enable SWO Trace for iMX RRT10xx Series.

MCUXpresso IDE SWO Trace Guide.

Also, this community posts could help you.

Enabling SWO Debug Console on RT1060

How to use SWO trace

Best Regards, Miguel.

0 Kudos