So here I am again: This week I've been at the "Embedded World 2017" Exhibition in Nuremberg (Germany) and visited TI, IAR, and Elprotronic.
Feedback from IAR was 'we don't know' - honestly, we did only buy the IAR workbench because of support and because TI CCS was horribly slow a few years ago.
Feedback from Elprotronic (directly talked to CEO Gregory Czajkowski): TI seems to have made many changes to their Debug-Interface and MSP-FPA.dll - several years ago it was a compact file, now it's almost 10 MB large. Mr. Czajkowski himself said it is quite possible that there are still bugs left. Notably, Elprotronic also modifies that DLL to fit their Debugger. He also verified that sometimes the only chance to get the system running again is to close IAR Workbench (in my case), unplug the debugger, power off the MCU and plug in and power on everything again - I can verify that for myself.
TI provided some additional possibilities: First, a debugger seems to have problems with sync'ing to the MCU when the MCU is off, i.e. CPUOFF-flag is set. Currently my personal solution (together with re-powering the MCU as described above) is to provide a delay of e.g. a few 100ms after initializing the ports, i.e. the code fundamentally looks as follows
// Disable Watchdog
// Set Stack Pointer
// Initialize Ports (Direction, hi/lo, etc.)
// Delay for a few 100ms
// etc.
The delay itself is recommendable anyway to provide time for the system for a fully stabilized power supply.
Another potential source of problems are EMI-interferences to the USB-interface, e.g. the inverters in modern lightning, ground loops from the power supply to the USB interface, etc. etc.
So, have fun to check all that things
