diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2020-11-13 19:41:41 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-03-10 21:33:09 +0000 |
commit | f9509c92dba370be363f5641d3fefe2250bee10c (patch) | |
tree | 448e9a04f6afa2e3bbbe96dbe433e3bdc553113a /tcl/target/stm32mp15x.cfg | |
parent | faaa42283f5c06830fe997b80d6c64f6469c6cf0 (diff) | |
download | riscv-openocd-f9509c92dba370be363f5641d3fefe2250bee10c.zip riscv-openocd-f9509c92dba370be363f5641d3fefe2250bee10c.tar.gz riscv-openocd-f9509c92dba370be363f5641d3fefe2250bee10c.tar.bz2 |
itm: rework itm commands before 'init'
If the command 'itm port[s]' is issued before 'init', the ITM can
not be programmed because OpenOCD cannot access the target yet.
The configuration is recorded and applied after target examine.
The current test to trigger the ITM delayed-programming is based
on the TPIU configuration. This is allowed because the only use of
ITM it so send data through TPIU.
In case of system TPIU, not belonging anymore to the target, there
is no more association between target ITM and system TPIU.
Add a flag to record the pending ITM configuration requested
before 'init' and test the flag to trigger the delayed-programming
of the ITM.
Change-Id: I101eb97a116d7925cd2ff068f3e8813fc008b08e
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6029
Tested-by: jenkins
Diffstat (limited to 'tcl/target/stm32mp15x.cfg')
0 files changed, 0 insertions, 0 deletions