Hi, is there a way to check if the correct device is connected before flashing new code?
I work with Infineons XMC4000 microcontrollers and my designs often have more than one microcontroller and I often have one or more debuggers connected simultaneously. Sooner or later, it just happens that I select the wrong debugger by accident, or the debugger is connected to the wrong microcontroller. Since I work in in power electronics, the results may be catastrophic.
For example, right now, I have no trouble flashing the code for a XMC4200 on a XMC4400 or vice versa.
Is there a setting I need to add or is the debugger not able to identify the device it is connected to? (I use SWD if that makes any difference)
Ideally the debugger would first check the contents of a configurable memory address so I can have a unique ID per microcontroller, so even controllers of the same type won’t get mixed up. Is that possible?
I work with Infineons XMC4000 microcontrollers and my designs often have more than one microcontroller and I often have one or more debuggers connected simultaneously. Sooner or later, it just happens that I select the wrong debugger by accident, or the debugger is connected to the wrong microcontroller. Since I work in in power electronics, the results may be catastrophic.
For example, right now, I have no trouble flashing the code for a XMC4200 on a XMC4400 or vice versa.
Is there a setting I need to add or is the debugger not able to identify the device it is connected to? (I use SWD if that makes any difference)
Ideally the debugger would first check the contents of a configurable memory address so I can have a unique ID per microcontroller, so even controllers of the same type won’t get mixed up. Is that possible?