EmbeddedRelated.com

Codewarrior & Debugger problem (HCS12X) please help

Started by Nobs in 68HC1218 years ago 1 reply

Hi All, I am using HCS12XDP512 controller and I have 2 problems with codewarrior Hiwave debugger environment. I am using P&E USB Multilink...

Hi All, I am using HCS12XDP512 controller and I have 2 problems with codewarrior Hiwave debugger environment. I am using P&E USB Multilink debugger. 1. We have 2 .ABS files (bootloader.abs and application.abs). When loading bootloader.abs I want to erase the memory. How can I load both .abs files at a time? Is there any configuration options for this? 2. I am building in one ma


Bootloader for reprogramming Flash EEPROM

Started by yann_37 in 68HC1218 years ago 9 replies

Hello, I'm new with HC12. I'm trying to adapt the code found in application note AN1718 (Serial Bootloader for Reprogramming the...

Hello, I'm new with HC12. I'm trying to adapt the code found in application note AN1718 (Serial Bootloader for Reprogramming the MC68HC912B32 Flash EEPROM) for a 912DT128A. The beggining of the program copies a part of the code from Flash to RAM and run it then. This code contains a "pcr" mnemonic (Program Counter Relative) but I


USB BDM Multilink - Command Files Syntax Help

Started by eric_cina in 68HC1216 years ago 7 replies

I'm using the P&E Micro USB BDM Multilink with CodeWarrior 3.1. I use several command files to help initialize the micro before the BDM...

I'm using the P&E Micro USB BDM Multilink with CodeWarrior 3.1. I use several command files to help initialize the micro before the BDM performs the flash load. One command file in particular is the p&e_preload.cmd file which I have modified to do a sector erase of the entire flash except for my bootloader which is in the upper portion of flash. Recently I have expanded my Bootloader...


Boot loader

Started by bbalend in 68HC1219 years ago 6 replies

Where can I find a serial bootloader written in C? Thank you balend

Where can I find a serial bootloader written in C? Thank you balend


HC12 CAN bootloader/flasher

Started by Gabriel Torres in 68HC1213 years ago 2 replies

Hello, I'm currently working on a school senor project that requires me to flash an MC9S12C128 microcontroller through CAN. I was wondering if...

Hello, I'm currently working on a school senor project that requires me to flash an MC9S12C128 microcontroller through CAN. I was wondering if anyone had done something like this before and had any pointers for me. Thanks, Gabe ------------------------------------


Reading FLASH after programming

Started by Jeff McKnight in 68HC1217 years ago 36 replies

Hello All, I am using the 9s12DG256. After I have successfully programmed Flash using a bootloader I try to read some of the memory...

Hello All, I am using the 9s12DG256. After I have successfully programmed Flash using a bootloader I try to read some of the memory locations. They do not show the correct value until I do a hard reset with the reset pin. Is this to be expected ? Jeff


SRecord Merge

Started by montserret_maxime in 68HC1218 years ago 5 replies

Hi everyBody, I'm working on MC9S12DG256B device. I've developed an application and a bootloader with different S-Record files. I'd like to...

Hi everyBody, I'm working on MC9S12DG256B device. I've developed an application and a bootloader with different S-Record files. I'd like to know if it's possible to merge the 2 files in order to make a single file containing the 2 programs. If yes, why ??? And which value must I put in header line and control line ??? Many thanks in advance.


Codewarrior C/assembly inline statements

Started by johnpititto1976 in 68HC1220 years ago 1 reply

Hello World_ I am working on my special bootloader project, i am having difficulty jumping to a assembler label from my main C...

Hello World_ I am working on my special bootloader project, i am having difficulty jumping to a assembler label from my main C function. Let me illustrate what i am attempting to do... ****Assembly***** XDEF UseBootCode UseBootCode: c


Flash/EEPROM Programming via CAN

Started by Trevor Wigle in 68HC1221 years ago 15 replies

Hi folks, First let me say that I have read/am aware of Motorola's App Note 1828 on the subject. I was wondering if anyone...

Hi folks, First let me say that I have read/am aware of Motorola's App Note 1828 on the subject. I was wondering if anyone had written their own software for programming the Flash of an HC12 over CAN. How well did it work? Did you employ the bootloader-to-load-a-b


Programming HC12 with Codewarrior V1.2 using AN2153

Started by johnpititto1976 in 68HC1220 years ago 3 replies

Hi All, I am trying to build a serial bootloader into my exsisting application using codewarrior v1.2 on the HCS12DP256...

Hi All, I am trying to build a serial bootloader into my exsisting application using codewarrior v1.2 on the HCS12DP256 micro. I have imported the assembly files from the document AN2153 into my banked-project. I get the following error when i attempt to compile,


BootLoader in Codewarrior for HC12

Started by johnpititto1976 in 68HC1220 years ago 4 replies

Hi ladies and Gents, I am developing a MC68HCS12DP256B micro using codewarrior v1.2. I am attempting to develop code so the...

Hi ladies and Gents, I am developing a MC68HCS12DP256B micro using codewarrior v1.2. I am attempting to develop code so the firmware is field upgradable. Does anyone have any handy hints on where to find some good documentation or code example on how to go about this in cod


flash erase

Started by kristies1 in 68HC1221 years ago 2 replies

Hi all, Is there any way to erase the flash thru the BDM once the flash protection bits in FPROT have been changed? I am...

Hi all, Is there any way to erase the flash thru the BDM once the flash protection bits in FPROT have been changed? I am using the bootloader from the mot web site, and it has a 4096 byte protected boot block at $F000, like this: org $ff0d dc.b $cf ; setup a


Looking for 68HC912B32 bootloader source code

Started by Kent Williams in 68HC1220 years ago 2 replies

Hey guys, Previously I've done a fair bit of work with various Microchip PICs in assembler, and am now looking to learn a bit...

Hey guys, Previously I've done a fair bit of work with various Microchip PICs in assembler, and am now looking to learn a bit about 16bit micros and C. I've been given a basic board with an M68HC912B32 chip on it, which basically has the crystal, rs232 level converter, and all


HC12 Inline Assembler & CW V1.2

Started by bitjockey1 in 68HC1221 years ago 3 replies

Hello, Iam trying to port Gordon Doughmans' bootloader for the B32 into the Metrowerks compiler V1.2 so I can program an 912D60A...

Hello, Iam trying to port Gordon Doughmans' bootloader for the B32 into the Metrowerks compiler V1.2 so I can program an 912D60A from the serial port. If I use any of the directives in the program I get an Ignore Directive warning C12062. The help file for the compiler does


SRecCvt parameters DP256

Started by johnpititto1976 in 68HC1220 years ago 4 replies

Hi All, I have almost finished my bootloader program(thanks to great suppport on this message board), except for figuring out...

Hi All, I have almost finished my bootloader program(thanks to great suppport on this message board), except for figuring out the correct parameters for the motorola S-Record formatting program SRecCvt. I have been passing the string, sreccvt.exe -b 16 0x30 32 -rf -o


TechArts BDN12SX and S12D64

Started by WadeA & RebeccaM Smith in 68HC1219 years ago 2 replies

I was able to successfully wipe out the original bootloader code, but it wont let me load another in its place. I get "S-records...

I was able to successfully wipe out the original bootloader code, but it wont let me load another in its place. I get "S-records out of range" or "bad hex data". I even used a line of S-record that comes with the source code of the Dbug12 for the D256, just to


MC9S12DP256B security

Started by Jean-Sebastien Bouchard in 68HC1218 years ago 25 replies

When you implement the built-in security feature on the DP256B mask 1K79x running Normal Single Chip mode, you cannot erase and write EEPROM and...

When you implement the built-in security feature on the DP256B mask 1K79x running Normal Single Chip mode, you cannot erase and write EEPROM and flash on the device. (From Freescale ERRATA MUCts00603 and MUCts00604.) We need to be able to reprogram the MCU while in the field. In order to do this, our firmware update PC tool launches the Bootloader on the MCU, unsecures the device using t...


erasing 256k flash memory with mc9s12dp256

Started by Micro m6net in 68HC1222 years ago 5 replies

Hi, With a self programmed bootloader which runs in Ram, we have some trouble to erase memory flash block with mass_erase...

Hi, With a self programmed bootloader which runs in Ram, we have some trouble to erase memory flash block with mass_erase command. But if we send two times the function, we have a correct erasing. Therefore, same function but in writing mode works properly after erasi


Help on Codewarrior debugger cmd files

Started by apedroso11 in 68HC1218 years ago 5 replies

Hi all, I want the codewarrior (CW) debugger to erase only a part of the flash when it starts. I can see in the...

Hi all, I want the codewarrior (CW) debugger to erase only a part of the flash when it starts. I can see in the "P&E_ICD_Erase_unsecure_hcs12.cmd" file that the debugger will make a MASS ERASE before programming the flash. I want to keep my bootloader programmed into the flash although any of my colleges use the debugger on our targets. I can't find documentation regardi


run-time programming of EEPROM in DP256

Started by danielkolodka2002 in 68HC1218 years ago 6 replies

Hello dear people, actually we are trying to program, using a run-time routine, the EEPROM of the MCU: HCS912DP256, but we could not do it...

Hello dear people, actually we are trying to program, using a run-time routine, the EEPROM of the MCU: HCS912DP256, but we could not do it yet. We modify and traslate to C, the assembler routine used for Erase de EEPROM in the bootloader code, of course we change the code to command the internal FSM, that automatically erase and program this memory. The result is always the same, every t...