how to make flash programmer faster

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to make flash programmer faster

Jump to solution
3,374 Views
robert_zhang
Contributor I

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?

Labels (1)
0 Kudos
1 Solution
1,425 Views
tkvenki
Contributor III

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...

 

 

 

 

View solution in original post

0 Kudos
10 Replies
1,425 Views
Matt_OES
Contributor I
This is simply the most annoying part about codewarrior. There's no single operation that happens more often than compile/erase/burn/debug, so why isn't there a button for it?
0 Kudos
1,426 Views
tkvenki
Contributor III

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...

 

 

 

 

0 Kudos
1,425 Views
robert_zhang
Contributor I

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?

0 Kudos
1,425 Views
MCF52233
Contributor III

Hi Robert,

if u dont mind ,can u share the tcl script n how we can use it??

0 Kudos
1,425 Views
robert_zhang
Contributor I

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

0 Kudos
1,425 Views
MCF52233
Contributor III

Hi Robert,

 

Thanks for ur response.

I hv mcf52233 DEMO board  with ColdFire Lite project using Codewarrior CW7.1

I dont find CmdWinInit.tcl ,can u put more light on this.

0 Kudos
1,425 Views
robert_zhang
Contributor I

search your codewarrior install directory,my cmdwininit.tcl is the following directory:

C:\Program Files\Freescale\CodeWarrior for ColdFire V7.1\bin\Plugins\Support\CommandWindow

0 Kudos
1,425 Views
MCF52233
Contributor III

Thanks Robert.

 

I found d file . but can u mention where exactly placed writeflash.tcl.

COZ when i launch command window, message appears dat no such file

or directory

0 Kudos
1,425 Views
robert_zhang
Contributor I
the writeflash.tcl is located in your build directory, my directory is C:\ColdFire_Lite_MCF5225x\build\cw\m52259_demokit,you also can obtain it with pressing pwd command in yoru tcl window.
0 Kudos
1,425 Views
MCF52233
Contributor III

Thanks Robert ,

now i got Working here.

Thanks once again

:smileyhappy:

0 Kudos