Howto autoflash in Codewarrior for m5213evb

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

Howto autoflash in Codewarrior for m5213evb

3,209 Views
oed
Contributor I
Howto can autoflash the flash memory (erase and program) in Codewarrior?

Now I need launch the flash program from "Tools > Flash Programmer" and manually erased and later program, I'm borry to do this :smileyfrustrated:.

Any "hack" for automatically do this? Debugger in this mode y very borry.

Thanks!
Labels (1)
0 Kudos
8 Replies

718 Views
oed
Contributor I
Hello Again:

Mmmmm I used CFFlasher trying to flash in one step. My idea was to make a .bat or .sh and used the command line option for the CFFLasher.exe to flash my board.

The problem for this metod is that the command line (I asked to Freescale and They said me this) not is possible change de USB speed, and in the default speed my board dont flash.

For this reason I'm tryng to do this in other way.

--
Sorry for my english :smileyfrustrated:
0 Kudos

718 Views
oed
Contributor I
Sorry.

CodeWarrior for Coldfire 6.3

I use a Pemicro Multilink and the debugger is integrated in the Codewarrior.

Thanks!
0 Kudos

718 Views
HackMeUp
Contributor I
You don't state which flash you are using.  I am using Intel 28F128J3D.  There is support in CW 6.3 for the J3 part which according to the datasheet has the exact same commands as the J3D part but CW 6.3 is broken when it comes to programming the Intel 28F128J3D.  When I asked Freescale support the response I got was that I am not using a Freescale Eval board and they don't have anyway to figure out this problem. 
 
To get arround this problem, I use a program called CFFLASHER.EXE.  I don't know where this was obtained (person who got it is no longer here) but it does program this part and many others.  It must have been supplied by Freescale but honestly I don't know.  Unfortunately it is a major pain because you have to get out of the IDE to release the P&E dongle so this external Windows flashing program can use the P&E dongle.  Furthermore, once you are out of the IDE, the P&E dongle seems to hold down the eval board's bus so it won't start from flash if you reset the eval board.  To get around the reset hold-down you have to unplug the dongle and power up the eval board untethered.  It is a big PIA - debugging in the stone age. 
0 Kudos

718 Views
CompilerGuru
NXP Employee
NXP Employee
The CFFlasher.exe is part of the CW for CF 6.3 layout in the
Third_party\CF_Flasher subdirectory. But I never used it, so that's pretty much what I know about it.

But that's not the problem the original posted had, he asked how to "autoflash" and he was apparently able to flash with the flash programmer inside of the ide.

Daniel
0 Kudos

718 Views
J2MEJediMaster
Specialist I
Well, that's odd. When you launch the debugger, it should try to automatically connect to the P&E and try to download your program. Go to the Remote Debugging settings panel and see what's chosen as the connection in the Connection Settings item.

---Tom
0 Kudos

718 Views
CompilerGuru
NXP Employee
NXP Employee
CW for ColdFire really differs with the HC12 version when it comes to debugging, this includes how the flashing is integrated.

I think the command window in CF 6.3 does contain all the commands needed to flash the application and it can also launch the debugger, hence automating the flash and launch steps. But I have to confess that this is not the area I'm most familiar with, I never used that part. So I might be even wrong, but that's the thing I would try.
Really no guarantee or details about the command interface.

Daniel
0 Kudos

718 Views
J2MEJediMaster
Specialist I
Now you know why I mentioned what type of CodeWarrior I was using, as the settings do vary. I'm not that familiar with the part myself. However, what I failed to mention was that for the last post I did manage to obtain a copy of CW 6.3 for Coldfire and the panels and settings I suggested should be correct. I don't have a Coldfire board, so all I could do is start the Debugger, watch it automatically try to contact the board, and fail.

However, I appreciate your comment on the matter. Sometimes I do get mixed up on all of these CW variations and get it wrong. I'd rather have it pointed out I'd made a mistake than give the developer faulty info. Thanks for your all help, CompilerGuru.

---Tom
0 Kudos

718 Views
J2MEJediMaster
Specialist I
What version of Codewarrior are you using, what is the target processor, and what is the debug interface?

I'm using Codewarrior 4.5 for the HC(S)x12, with a P&E Micro USB cable interface, and when properly configured, it will automatically download the code to Flash memory. There are other versions of Codewarrior out there for different processors, and sometimes the interfaces and capabilities differ.

---Tom
0 Kudos