itm: fix default initialization
Commitf9509c92db("itm: rework itm commands before 'init'") ignores the default enable of ITM channel 0, that is applied when no 'itm port[s]' is issued. Call armv7m_trace_itm_config() unconditionally to handle it. Change-Id: I3e85d0b063ed38c1552f6af9ea9eea2e76aa9025 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reported-by: Paul Fertser <fercerpav@gmail.com> Fixes:f9509c92db("itm: rework itm commands before 'init'") Reviewed-on: https://review.openocd.org/c/openocd/+/7900 Reviewed-by: <post@frankplowman.com> Tested-by: jenkins
This commit is contained in:
@@ -2659,8 +2659,8 @@ int cortex_m_examine(struct target *target)
|
||||
if (retval != ERROR_OK)
|
||||
return retval;
|
||||
|
||||
if (armv7m->trace_config.itm_deferred_config)
|
||||
armv7m_trace_itm_config(target);
|
||||
/* Configure ITM */
|
||||
armv7m_trace_itm_config(target);
|
||||
|
||||
/* NOTE: FPB and DWT are both optional. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user