Do I need BDM to program flash?  MC9S12DP256

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

Do I need BDM to program flash?  MC9S12DP256

7,166 Views
Tool750
Contributor I
I'm a student building a robot that I wrote code for using ICC12 to be implemented using an MC9S12DP256 microprocessor. We developed the code on an evaluation board from Axiom. We now want to make a custom pcb with one of these processors on the board. I am trying to figure out how to load my code into flash or some other NVM directly on a custom pcb. What is the easiest way to accomplish this? If I buy an aftermarket BDM, what pins do I need to have access to and put jumpers on for configuring the chip for the BDM?
Labels (1)
0 Kudos
Reply
9 Replies

1,601 Views
fadi
Contributor I
What about TBDML? no body mentioned it.
I'm also a student/newbie
0 Kudos
Reply

1,601 Views
imajeff
Contributor III
I have a TBDML, but I never got around to buying the 6 MHz xtal yet, so I don't know if it will work.

Feedback makes me think it is good for any expert with too much time on their hands, or a beginner that has someone else making it work for them.

A serious limitation in my mind is that it cannot run fast enough to debug at the most common bus speed (24 MHz). There is some old discussion about using a newer JB16 version of the MCU which would be harder to solder, but can run fast enough.
0 Kudos
Reply

1,601 Views
Blackwolf
Contributor III
Hello Tool750,
 
Freescale proposes to the customers a complete integrated development environment with a compiler, an assembler, a debugger, a graphical code generator and multiple BDM connections ( Monitors, as well as P&E,SOftec and Abatron cables) allowing flash programming
The special edition which is free for download allows you to create a 32kb C application.
See details here:
 
Blackwolf
0 Kudos
Reply

1,601 Views
EMontanez
NXP Employee
NXP Employee
So I think you said you were a student...so cost must be very important!

If you can shell out the dough, then I would definetely recommend the USB P&E BDM Multilink. You might want to ask them if they have educational discounts.

This pod works great with CodeWarrior for HC(S)12(X) V4.5 special edition (below is the direct link to the product page, where you can download: http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CWX-HXX-SE&nodeId=01272694011135

If you are strapped for cash, there is one more solution. Freescale has an HCS12 Serial Monitor that if programmed to the device allows you to program/erase and view internal MCU memory via serial cable plugged into a COM port via SCI. This HCS12 Serial Monitor works with CodeWarrior the same way a BDM does, but the user needs to select Serial Monitor instead of P&E ICD target. The bummer to this one is that you need a BDM pod to do a 1 time program of the monitor. You can get the HCS12 Serial Monitor at the link below:


It comes in 2 parts (one is the source files only, the second is the codewarrior project to load it)
https://www.freescale.com/webapp/Download?colCode=AN2548SW1&appType=license&location=null&srch=1
and
https://www.freescale.com/webapp/Download?colCode=AN2548SW2&appType=license&location=null&srch=1

Message Edited by EMontanez on 04-05-2006 08:07 AM

0 Kudos
Reply

1,599 Views
imajeff
Contributor III
Tool750,

I think EMontanez has a good idea with CodeWarrior. That's a free download, and is the software you would need for the $99 USB BDM. Since they have my address they've even sent me a complementary CD for CW 5 (although that's for 9S08).

But most important to me, I've found a BDM pod for the best price for hobby and students!

http://evbplus.com/ (Wytec) has the DragonBDM listed $59. I got this one, and it's a great size, but also has what I think is a better interface. Serial with D-Bug12. It makes it easier to use in any environment (even just a dumb terminal, or terminal emulator in any OS), and still compatible wit CodeWarrior.

P.S. I almost didn't mention that they also have best price I found for USB-Serial adapter so I can use the BDM on my laptop wich didn't have a serial port

Message Edited by imajeff on 04-06-200608:48 AM

0 Kudos
Reply

1,601 Views
Tool750
Contributor I
The only one I saw for $99 is the usb version. Do I need software to load the code into flash? It looks like the $99 BDM does not include software.
0 Kudos
Reply

1,601 Views
RekhaS
Contributor I
Please let me know if anybody have used the provision of programming the flash through serial port. If so could you please help me as to how to do that and how reliable it is. We are using MC9S12DP512B 16-bit Microcontroller. And I need to program this controller's flash through serial port.
0 Kudos
Reply

1,601 Views
kalun218
Contributor I
Yes, it seems it is not included those software.
 
I suggest you to have a look about SofTec products:
 
inDART-HCS12/D (without evaluation board)
 
inDART-HCS12/DP256 (with evaluation board)
0 Kudos
Reply

1,601 Views
alex_spotw
Contributor III
Hi:

YOu need a BDM box to program the Flash Memory of the device. P&E Micro sells theirs for US$99, which is a good deal. Or if you can get a second hand BDM, that would be good.

Check before if your Axion evaluation board allow you to program the device in your custom PCB. Some eval boards, have the BDM pins to connect to external MCUs.

The BDM connections are in the datasheet (Recommended Connections).

Regards,

Alex
0 Kudos
Reply