Freescale Serial Bdm Programmer
Introduction The following suite of programs are intended to be used with USBDM BDM interfaces. They provide the ability to program the internal Flash memory of the following Freescale microcontrollers: • RS08, HCS08, HCS12, S12Z, Coldfire V1, Coldfire V2, Kinetis and a limited range of MC56F800x microcontrollers. Features • GUI usage is available for interactive use. • Command line usage is available for batch files.
• Supports most chips - see list below. • Trimming of internal target clock to specified frequency (RS08, HCS08 & CFV1). • Programming of security options to leave the chip unsecured or secured after programming. • May be used to unsecure chips (by mass erase). • The code has been written in a modular fashion. It should be straightforward to re-use the flash programming code to create other custom programming utilities.
Background Debug Module (BDM) recommendation for HCS08. There is the open source BDM project. Freescale maintains. Tagged programmer or ask your. USBDM Flash Programmers. It is useful if each BDM has a unique serial number as that will. Load Hex File Displays a dialogue to load a Freescale S-format hex.
Command Line Usage: FlashProgrammer If neither of the -program or -verify options are given then all options are ignored and a GUI interface is opened. • BinaryFilename The name of the S19 or ELF binary file to program. • Options (order is not significant).
• -device=device_name Target device e.g. MC9S08AW16A, MCF51CN128. • -erase=erase_option Selects erase method used (Mass, All, Selective, None). • -execute Leave target power on & reset to normal mode at completion.
Aiv Editor Stronghold Crusader Extreme on this page. • -flexNVM=eeprom, partition FlexNVM parameters (eeprom,partition hex values) • -masserase Equivalent to erase=Mass. • -noerase Equivalent to erase=None. • -nvloc=address Trim non-volatile memory location address (hex). Indian Percussion Loops there. • -power=dur, rec Power off duration & recovery times (ms).
• -program Program and verify flash contents. • -reset=dur, rel, rec Reset duration, release & recovery times (ms). • -secure Leave device secured after programming. • -security=value Explicit security value to use (as hex string) • -speed Communication speed on some targets (kHz). Strategy Football Game. • -trim=trim_frequency Trim internal clock to frequency (in kHz) e.g. • -unsecure Leave device unsecured after programming.
• -vdd=vdd_value Supply Vdd to target (3V3 or 5V). • -verify Verify flash contents. The program sets the error code to 0 on success, non-zero otherwise. The program will use the first BDM located. There is no option to select a BDM.
Examples of usage: • Programming an image with clock trimming: FlashProgrammer Image.s19 -vdd=3v3 -device=MC9S08AW16A -trim=243 -secure -program -execute This will program a MC9S08AW16A with the contents of the file Image.s19 and trim the internal clock to 243kHz. Target Vdd will be 3.3 Volts (if this option applies to the BDM used). The Flash image will be modified so that the device will be secure after programming. After programming the device will be left powered and will be reset into normal mode i.e. Will be left running the loaded program. • Programming the clock trim in an already programmed chip: FlashProgrammer -device=MC9S08QG8 -vdd=3v3 -trim=35.25 -erase=None -program This will trim the internal clock of MC9S08QG8 to 35.25kHz without erasing the present flash contents. Target Vdd will be 3.3 Volts (if this option applies to the BDM used).