cancel
Showing results for 
Search instead for 
Did you mean: 

Enabling TraceX in my NetXDuo application causes `_nx_trace_event_insert' compile errors.

MHoop.1
Senior

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.

0693W00000Y8qxlQAB.png 

0693W00000Y8qxvQAB.png 

I saw a discussion of this same issue over in the Renesis community where a workaound fixed the compiler issue.

https://community.renesas.com/mcu-mpu/embedded-system-platform/f/forum/10314/undefined-reference-to-nx_trace_in_line_insert-when-arp-probe

But t his workaround did not fix the STM code.

Can anyone suggest something that may help?

Thanks,

MikeH

10 REPLIES 10
MHoop.1
Senior

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