hi,all,
when i use codewarrior to debug code,i always open flash programmer window , and then click erase tab to erase,click program tab to program,and at last click debug button to debug my project code.
are there some ways to click one button or one something to resolve this way,such as iar compiler plus jlink?
已解决! 转到解答。
Flash programmer does not support that.
You can try writing a script using some softwares like Autohotkey/AutoIT..., to automate FLASH PROGRAMMER
We had written our own program for FLash programming...
We had a small EXE which used to convert S-record file contents into a C-Array.
We combined it with a .bat application to place the converted array into a file of our source code(flash burning software). We used to RUN this code to get the FLash programmed.
I guess this ws faster than the FLASH PROGRAMMER.
But when you want to DEBUG, this will be additional overhead...
Flash programmer does not support that.
You can try writing a script using some softwares like Autohotkey/AutoIT..., to automate FLASH PROGRAMMER
We had written our own program for FLash programming...
We had a small EXE which used to convert S-record file contents into a C-Array.
We combined it with a .bat application to place the converted array into a file of our source code(flash burning software). We used to RUN this code to get the FLash programmed.
I guess this ws faster than the FLASH PROGRAMMER.
But when you want to DEBUG, this will be additional overhead...
thanks your take care about it, i have already run it through press one key with TCL script.
by the way, i am interesting at your flash programmer code, i want to know,whether it is open-source on code?
i make it in a file that called writeflash.tcl,and place it in your build directory;change CmdWinInit.tcl,
add a statement at last :source writeflash.tcl. then whenever you click view->command window menu, it will run and download your flash.
make
fl::disconnect
fl::load MCF52259_INTFLASH.xml
fl::erase all
fl::write
debug
exit