hi,
I am in the process of adding support of arm coresight tracing (ETM, ITM
etc...) to openocd. Coresight offers the infrastructure to support
simple configurations (MCU with one arm core) or a more complex
configuration (many homogeneous/heterogeneous cores). I would like to
offer support for both kind of configurations. for more info see
https://sourceforge.net/p/openocd/mailman/message/37269741/
the traces can be send off-chip through a TPIU IP. the TPIU is generally
not associated to a single core, it is rather a shared resource between
all cores/IPs willing to send some traces to the debugger.
TPIU uses some pins (1 to 5 for cortex M for e.g.) that are usually
multiplexed with other functionalities, and that needs to be configured
properly. In addition, and on some MCUs the user will need to configure
other debug IPs to allow tracing. therefore there is a need for a
dedicated callback in the target configuration file(.cfg file).
is it possible to have a callback in the tcl config file that can take
parameters (in this case it will be the trace protocol and the port size)
is it possible to have a callback not attached to a core/target (I do
not want to assign the TPIU to a core since it is usually a shared resource)
Kind Regards
Zied Guermazi