2023-01-22 09:52 AM
I am attempting to use TraceX in my NetXDuo application. But when I enable TraceX in the Software Packs of CubeIDE (TX_ENABLE_EVENT_TRACE) I get compiler errors in all of the calls to save a tracex event. The macros that defines the calls to tracex services appear in nx_api.h, but are not defined, and hence the _nx_trace_event_ service is never defined.
I saw a discussion of this same issue over in the Renesis community where a workaound fixed the compiler issue.
But t his workaround did not fix the STM code.
Can anyone suggest something that may help?
Thanks,
MikeH
Solved! Go to Solution.
2023-03-07 05:16 AM
It appears that the example code that I had used as the basis of this application was faulty. (It was apparently from an early CubeIDE example). I completely rebuilt the application using the Nucleo-H723 Nx_TCP_Echo_Server application from the Git download.
https://github.com/STMicroelectronics/x-cube-azrtos-h7
After help from Zuhair, and a LOT of watching the Workshops...
https://www.youtube.com/playlist?list=PLnMKNibPkDnGxMITHhhRqbT0-2egHq0D0
...I was able to configure the example to work properly and to generate TraceX functionality!
This is a very lengthy process due to the MANY modifications that must be made to the examples provided by ST. I highly recommend that ST provide a "ready-to-run" version of these examples so that you don't loose developers who don't have the time or patience to spend plugging through the (partial) details provided by the (very well done) workshops.
In summary, I now have TraceX working on a TCP Server application on a Nucleo H723 board. I find TraceX to be marginally helpful due to its clunky GUI and somewhat limited functionality. Hopefully it will help me debug the issues that I now have with network reliability and stability.
Thanks again Zuhair for your guidance!
MikeH