The contents of that trace header indicates that you are using the legacy SNAPSHOT mode (this is no longer developed and will be removed as of next release since it is confusing users). Neither is this mode supported in View afaik.
In trcKernelPortConfig.h it should be #define TRC_CFG_RECORDER_MODE TRC_RECORDER_MODE_STREAMING
Then use the RingBuffer from streamports folder (set include paths and add trcStreamPort.c).
That will allow you to get snapshot traces from the RingBuffer streamport.
A detail - I noted that Trace Filename is āTrace_Dataā without any suffix. I think you need to call it something.bin or something.psfs for Tracealyzer/View to identify the trace type correctly.
Oddly enough, putting the data in the .qspi section does not work. Putting the data in the .ram2 section (close coupled memory) works just fine.
I think that tracerecorderbuffer setting doesnāt work, but setting the ATTRIBUTE works fine, just not combined with extra variables.
The āsave snapshot traceā works properly, When I get this working properly, Iāll write it up, but it will be (of necessity) oriented for the ST-MICRO situation.
I did try importing a general solution, but there wasnāt enough of a structure to tell me what was supposed to be where in the project, and I have to rewrite all the #include statements.
You should not need to change any include statements. What do you mean by āgeneral solutionā? What is unclear? I suspect some kind of misunderstanding or possibly a gap in the documentation, so curious to learn what you are trying to do.
What I meant by general solution was to copy the source code from your website, then include it in the eclipse project by taking the structure as given, then telling eclipse to use this source. This puts your entire structure under the project root.
What you then have to do is go through and remove various directories. IIRC, you cannot have the snapshot general directory in at the same time you have the Jlink directory.
I was further confused by the (apparent) fact that the segger Jlink edu does not support streaming traces, so I did a lot of trying to tweak that solution.
In all of the general source/include files, again IIRC, the include links did not match the structure paths, so all of the source includes (for .h) needed to be adjusted.
What I did do (which works, but with poor documentation-not your fault) was find that ST Micro had ported tracealyzer to the CubeMXIDE ecosystem. That had all the links fixed and included just what was needed.
Iām thinking a bit more of a cookbook approach for you, if you would. What I find many implementers do not do is to give a good idea of just exactly where in the project their code goes.
A bit of the āput it here, the program expects this subdirectory under this project directory, etc.