Enable TraceX on B-L4S5I-IOT01A STM32L4S5 Discovery Kit

Sean Liming 4,601 Reputation points
2022-08-26T02:02:20.45+00:00

I have the B-L4S5I-IOT01A STM32L4S5 Discovery Kit. I followed a ST article and an online video to enable Tracex, but these are calling out a different platform. The RAM starting address for my kit is 0x20000000, but running the program I see in memory HEX view at 0x20000E20 and there is no data in memory only ????. Is there some sort of offset needed for the _FLASH.ld file for .trace?

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
333 questions
{count} votes

Accepted answer
  1. Scott Azure RTOS 4,051 Reputation points
    2022-08-26T15:17:34.86+00:00

    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.