Hi @Sean Liming - wow, that is actually a pretty good article for how to get TraceX going with the ST tools.
I wouldn't worry about creating a ".trace" section in your linker file, so you can ignore the attribute keyword when declaring your trace buffer. Instead, just look at the map file to see where your trace buffer starts, and export the trace buffer starting at that address. Let me know if that works for you.