Is there any way to call the debugger 'SAVE' function with anything but a fixed filename? I'd like to use it in a loop of a debugger function like this:
FUNC void SaveFlash() { for (i=0; i<10; i++) { ... code to fill rawFlashBuf with data ... exec("save c:\foo.bar rawFlashBuf,rawFlashBuf+511"); ^^^^^^^ generate something like foo0,bar, foo1.bar, foo2,bar, etc } }
The other alternative is to use 'LOG' and 'd' but I don't like the output as well.
Thanks, Andrew
P.S. I run into this again and again, UV4 is almost a great debugger, especially with the ULINK Pro, but turns into a horribly awful debugger because of the last 5% I can't get done... I wish Keil would get it over with and make a decent Eclipse plugin.
watch out for C string semantics, e.g. \ --> \\. Since there is no sprintf() builtin to generate filenames, something like this might help:
Func void SaveFlash (void) { exec ("save c:\\temp\\foo1.sav main + 0, main + 256"); exec ("save c:\\temp\\foo2.sav main + 256, main + 512"); exec ("save c:\\temp\\foo3.sav main + 768, main + 1024"); }