Menu

#71 Target configurations only set cortex_m reset_config for first target

0.9.0
closed
None
2014-06-01
2014-05-15
No

When configuring a board with multiple Cortex-M chips the reset config is only set for the first one, the others are left at the default (vectreset).

Steps to reproduce:
- Create multiple targets inside a tcl config file (i.e. two or more instance of target/stm32f1x.cfg)
- Select each target and print the reset config using "cortex_m reset_config"

Result:
The first target is configured for sysresetreq, the others are left at the cortex_m default. The expected result would be that each target is configured to use sysresetreq.
To be precise, the reset_config of the FIRST target is set to sysresetreq, each time a NEW target is created. That is the new target must be selected in the target configs before setting the reset_config, could be done like in the workaround.

Workaround after creating the target:
set _PREV [target current]
targets $_TARGETNAME
cortex_m reset_config sysresetreq
targets $_PREV

Discussion

  • Paul Fertser

    Paul Fertser - 2014-05-15

    Thank you for the report and the analysis, please see http://openocd.zylin.com/2142 .

     
  • Paul Fertser

    Paul Fertser - 2014-05-15
    • status: new --> accepted
    • assigned_to: Paul Fertser
     
  • Paul Fertser

    Paul Fertser - 2014-06-01
    • status: accepted --> closed
     
  • Paul Fertser

    Paul Fertser - 2014-06-01

    Hi Michael,

    Current HEAD should have a fix for the issue you've reported. Please reopen if anything's still missing.

     

Log in to post a comment.