Hi all,
I want to use STM to debug a platform based on cortex a7 under linux and windows. I want to decode all the packet generated by this component within ETB buffer ,then desplay them in a readebal file. Could you help please?
Best regards, Karim.
On 12 March 2017 at 18:23, lamouchi_KARIM lamouchi_KARIM@yahoo.fr wrote:
Hi all,
I want to use STM to debug a platform based on cortex a7 under linux and windows. I want to decode all the packet generated by this component within ETB buffer ,then desplay them in a readebal file. Could you help please?
You can read this [1] first.
In brief, the whole steps should be: 1) Enable STM to collect traces with sysfs command line; For example, collecting function traces of Ftrace subsystem has been supported in mainline v4.10. You can simply try:
a) echo 1 > /sys/bus/coresight/devices/<eft address>.etf/enable_sink b) echo <stm_address>.stm > /sys/class/stm_source/stm_ftrace/stm_source_link c) enable function trace
Then you should see etf/etb is growing.
2) Dump trace buffer(efb/etf) to a file, say "cstraceitm.bin"; 3) Copy the file generated in 2) (e.g. cstraceitm.bin) to a PC 4) Use OpenCSD to decode traces which stored in trace data (cstraceitm.bin)
All the above have been described in [1], feel free to tell me if you have any further question.
Regards, Chunyan
[1] https://www.linaro.org/blog/core-dump/stm-and-its-usage/
Best regards, Karim.
CoreSight mailing list CoreSight@lists.linaro.org https://lists.linaro.org/mailman/listinfo/coresight
Hi Karim,
Have setup STM according what you wanted to use it? If so, could you share more information on how you use STM to debug on your platform.
Thanks, Chunyan
On 12 March 2017 at 18:23, lamouchi_KARIM lamouchi_KARIM@yahoo.fr wrote:
Hi all,
I want to use STM to debug a platform based on cortex a7 under linux and windows. I want to decode all the packet generated by this component within ETB buffer ,then desplay them in a readebal file. Could you help please?
Best regards, Karim.
CoreSight mailing list CoreSight@lists.linaro.org https://lists.linaro.org/mailman/listinfo/coresight