Program MCF5213 with USBDM

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

Program MCF5213 with USBDM

805 Views
chrisvn
Contributor I

Hi

I am still battling to get my USBDM device to program the MCF5213 MCU's.

In the USBDM CFVx programmer software there seems to be no definition of the MCF5213 device despite the fact that USBDM is supposed to be able to program CFV2,3&4 devices.

How can I get the MCF5213 supported to be able to program them?

Best regards

Chris

0 Kudos
7 Replies

578 Views
TomE
Specialist II

There's a forum specific to the OSBDM, with posts mentioning the MCF5213 from 2011 and 2012:

https://community.nxp.com/message/109512

https://community.nxp.com/message/74936 

You may want to post there.

Debug support requires there to be a description of the chip so the debugger can set up initial clocks, I/O and memory. Then you usually load your program into RAM and test it from there.

Programming support requires all of that plus a description of, and code for programming the Flash memory. There is usually a small program that is loaded into the SRAM on the CPU to communicate with the debugger and to do the programming. The MCF5213 has internal Flash, so that's only one "target". If you were using external Flash (like on an MCF5235) then there has to be a downloadable programmer for every different Flash type and every bus width - or the downloaded code has to be very flexible to handle all combinations. Then you might be using multiple chip selects that makes it more complicated.

What we do (for the MCF5235 we use) is to have a RAM-loaded Bootstrap that knows how to program the Flash. We use the debugger to set up the clocks and external Flash and RAM and then load the debugger and run it with a flag setting that tells it to "burn itself to Flash". Then we talk to it over Ethernet to burn the main firmware.

You could always write your own Flash-burner program and load that into SRAM. You could then burn from communicating with the Debugger, over a serial port, CAN or SPI. Or you could use EzPort.

Tom

0 Kudos

578 Views
chrisvn
Contributor I

Thank you Tom and Fang Li for your responses, it is appreciated.

Best regards

Chris

0 Kudos

578 Views
miduo
NXP Employee
NXP Employee

Hello,

Please let me know the detail on what you mentioned of "USBDM CFVx programmer software". Thanks.

0 Kudos

578 Views
chrisvn
Contributor I

Hi Fang Li

It is the software to program the ColdFire V2 and up that is part of the package downloaded from SourceForge.

Regards

Chris

0 Kudos

578 Views
miduo
NXP Employee
NXP Employee

Hello,

Well, then please give me the link you mentioned. I really do not aware the software you mentioned. Why not use the software from NXP?

0 Kudos

578 Views
chrisvn
Contributor I

Hi Fang Li

The software is available at USBDM download | SourceForge.net

I am using it to program only and not develop, so I do not have the NXP Code Warrior software.

Regards

Chris

0 Kudos

578 Views
miduo
NXP Employee
NXP Employee

Hello,

Well, you may see below:

无标题.png

This is the feature for USBDM software you mentioned, it does not support stand-along programming for CF V2.

It mentioned "support for ColdFire Flaser CFFlaser - CFV2-4" However, the CFflasher had EOL for server years and we do not support it any more.

0 Kudos