I have a suggestion for OpenOCD.
It seems to me that the .cfg file contains three or four elements that are actually quite unrelated.
-
GDB Server Configuration
-
Interface Configuration
-
Target Configuration
I suggest splitting those into different files. This will reduce the number of files required rather than having to maintain all combinations of the above settings.
The next suggestion would be to have “built in” files for the first two elements. This would mean that those using known interfaces and default settings for GDB Server would not actually have to generate those files.
You would have to specify your interface on the command line to call up the built in configuration for it.
There are so many Targets I think a file is still best for that.
What does everybody else think ?