View Full Version : downloading C program from metrowerks codewarrior into microcontroller MC68HC912B32
Kristine Nguyen
04-25-04, 12:13 AM
I am working on my school project, and I finish with the project, and everything works fine except that, I don't know how to download the C program I wrote in Metrowerks Codewarrior into my microcontroller MC68HC912B32. I don't know how to download it, and what is the steps that I should follows inorder to to this. Is anyone here know how to download program into the microcontroller. Can anyone help me on this because I finished with my project but I don't know how to download this. My project is due next week. Thank you very much.
:confused:
nmitech
04-25-04, 08:16 PM
There are two ways to download the srecord files. You can do it with the BDM cable, or serial BootLoader.
To download it through the serial connection, you must have the serial bootloader firmware installs. This is the default configuration when ships from the manufacture. The serial bootloader firmware resides on the top 2k block protected flash memory, 0xF800-0xFFFF. This memory area can overwrite if you have the BDM cable. Since the serial bootloader code contains the primary interrupt vectors area, your application program reset address is 0xF7FE-0xF7FF. If there any other interrupt is used by your program, please see the interrupt vector table in the manual for proper addressing. Before you download, you must configure the Ascii Settings option in the Hyperterminal program with the Line delay for atleast 100mS to provide enough time to program the flash memory. At the serial bootloader prompt: "(E)nter, or (P)rogram" enters "E" to earse if there any existing program in memory. Next enter "P" and send program as text file. When the program is finished downloading, just apply a reset or recycle the power to run your program.
To download it through the BDM connection, you must have a BDM cable and flash utility program. Your application program reset vector is at 0xFFFE-0xFFFF. This will overwrite the serial bootloader code. Or if you wish to use the serial bootloader to execute your program then the new reset vector is at 0xF7FE-0xF7FF.
vBulletin v3.0.7, Copyright ©2000-2012, Jelsoft Enterprises Ltd.