EmbeddedRelated.com
The 2024 Embedded Online Conference

flash programming code for 9S12

Started by Steve Letkeman in 68HC1221 years ago 2 replies

Hi, I have seen a few threads concerning issues in getting the 9s12DP256 to program its own flash memory via serial or CAN and now...

Hi, I have seen a few threads concerning issues in getting the 9s12DP256 to program its own flash memory via serial or CAN and now it's my turn to do this and was wondering if there is any code floating around for this? Thanks, Steve Automated lighting syste


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


Help! BDM cannot communicate

Started by Sarah Skinner in 68HC1221 years ago 3 replies

I bulk erased the flash memory on my 68HCS12DP256, which shouldn't be a problem because I have a BDM POD, but now I cannot...

I bulk erased the flash memory on my 68HCS12DP256, which shouldn't be a problem because I have a BDM POD, but now I cannot communicate with the target. I have tried all the options that Debug12 allows but with no sucess. When I reset the micro I think it is jumpping to Flash but I cannot tell. I am u


HCS12 flash security and cumulative programming

Started by Michal Konieczny in 68HC1219 years ago 2 replies

I'm writing some FLASH programming code, and now I have reached final step of securing the microcontroller. Unsecured microcontroller has ...

I'm writing some FLASH programming code, and now I have reached final step of securing the microcontroller. Unsecured microcontroller has lower bits of byte at 0xff0e equal to 0bxxxxxx10. Now if I want to secure it, I have to write something different there. Because LSB is already zeroed, there are two possibilities: one is to first erase it and then program


hcs12 flash

Started by in 68HC1221 years ago 2 replies

Hello, I use an mc9s12dp256, and my apllication needs to save some parameters in Flash. So I have make a program but it...

Hello, I use an mc9s12dp256, and my apllication needs to save some parameters in Flash. So I have make a program but it doesn't work, it chras my CPU. My config: CPU: m9s12DP256 (single chip) Fosc: 16MHz Fbus: 8MHz If someone foud an erro


Programming Flash of 912DG128A

Started by Anonymous in 68HC1221 years ago 3 replies

Hello I have some problems programming the internal flash arrays 02, 03 on a 912DG128A using P&E Prog12Z. As someone posted...

Hello I have some problems programming the internal flash arrays 02, 03 on a 912DG128A using P&E Prog12Z. As someone posted before, Prog12 will verify the contents as correct but ICD12 and NoICE shows only 0xff at these locations. Does anyone have some hel


Flash Programmer - SCBDMPGMR12

Started by Chengrong Lu in 68HC1221 years ago 3 replies

Hi All, I am looking for a flash programmer for Motorola MC9S12DP256B with the following functions: It can load a...

Hi All, I am looking for a flash programmer for Motorola MC9S12DP256B with the following functions: It can load a firmware image (say S-Record) into MCU and overwrite the existing (crashed) firmware inside the MCU. We also have to keep some calibrat


modifying stack pointer fails when returning execution from RAM

Started by WobberJ in 68HC1219 years ago 4 replies

Hi all, I've posted this to P&E's site, but am cross-posting here for any thoughts. Thanks, JoeW ...

Hi all, I've posted this to P&E's site, but am cross-posting here for any thoughts. Thanks, JoeW ************************************************************* I'm implementing freescale's AN2720, which is a flash write algorithm that pushes the final flash write routine onto the stack and then executes it from RAM. I'm d


HC912D60A flashing

Started by Madis in 68HC1219 years ago 4 replies

Hello! Im new to freescale processors and run into the problems while trying to flash software into it. So maybe you could help me. ...

Hello! Im new to freescale processors and run into the problems while trying to flash software into it. So maybe you could help me. I designed one PWB with 912D60A on board. In order to flash it, I added BDM connector to it (+5V, GND, BDM, Reset), as was recommended by freescale. After receining that manufactured PWB, I started to find a algor


USB flash drive for the HC12

Started by Lewis, Bob in 68HC1220 years ago 3 replies

Hi Everyone: We are using the 9S12DG128a, and ICC12compiler and want to add USB for a flash drive. * Does anyone know of...

Hi Everyone: We are using the 9S12DG128a, and ICC12compiler and want to add USB for a flash drive. * Does anyone know of libraries either shareware or commercially (preferably available for the HC12, but just ANSI C would be fine) in C to implement a windows based file


CAN-Loader for Reprogramming the MC9S12DG128B FLASH

Started by georgdetlef in 68HC1221 years ago 2 replies

Hi developer -(friends..), Reprogramming specialists! I am working heavily on CAN-Module with interfacing to 24V-I/O'S and the...

Hi developer -(friends..), Reprogramming specialists! I am working heavily on CAN-Module with interfacing to 24V-I/O'S and the MC9S12DG128B. I want to ?Reprogramming the MC9S12DG128B FLASH Memory" at the CAN-Bus. Does anyone know how this method or program-code?


HC12D60A, EEprom and Flash programming

Started by bitjockey1 in 68HC1221 years ago 2 replies

Hello, I am using CW to develop and app using the HC12D60A MCU. I have settings in EEprom that I don't want overwritten when...

Hello, I am using CW to develop and app using the HC12D60A MCU. I have settings in EEprom that I don't want overwritten when the debugger is started. I have the section declared as "NO_INIT" in my flash.prm file, but the EEprom still gets initialized to FF's on


Programming 68HC912B32 Flash

Started by alienprey2000 in 68HC1221 years ago 1 reply

I have some simple code which is runing fine through Cosmic's ZAP debugger. I believe that ZAP actually programs the onboard flash...

I have some simple code which is runing fine through Cosmic's ZAP debugger. I believe that ZAP actually programs the onboard flash so I assumed that after it was programmed I would be able to power down, remove the BDM interface, power back up and the chip would run the code (def


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


Codewarrior & flash data problem

Started by Jordi Costa in 68HC1221 years ago 2 replies

I sent this question days ago and I don't receive any answer. Now I will try to explain the problem better. I'm new in HCS12...

I sent this question days ago and I don't receive any answer. Now I will try to explain the problem better. I'm new in HCS12 programming and after successful tests with Codewarrior Processor Expert using SPI, SCI, timers, etc., now I'm trying to store some data in flash. I thought that C


Write flash in normal single chip mode?

Started by lenux22 in 68HC1221 years ago 3 replies

Hello, everybody! Is it posible to program or erase Flash in HCS12 (DG128) from code executed from on-chip RAM in...

Hello, everybody! Is it posible to program or erase Flash in HCS12 (DG128) from code executed from on-chip RAM in Normal Single Chip Mode? WBR, lenux


DP256 - DP512 Transition

Started by Jonathan Masters in 68HC1215 years ago 5 replies

Hello All. I have recently started to upgrade an old board that uses DP256B's with DP512. I managed to program the board a couple of days ago...

Hello All. I have recently started to upgrade an old board that uses DP256B's with DP512. I managed to program the board a couple of days ago with no issues. Today, I ran into a problem with my application code - it couldn't write to paged flash when downloading data from my PC app. This was quickly identified as a problem with the bank select in my flash loading routine. However no...


Re: : Programming the flash in EVB - HC912DG128

Started by Dr.D.C.Bandara in 68HC1221 years ago 1 reply

Dear All, I recently bought an EVB from Motorola containing HC912DG128 chip and the SDI debug tool. But I want to use the board...

Dear All, I recently bought an EVB from Motorola containing HC912DG128 chip and the SDI debug tool. But I want to use the board with the debugger 12. The manual says that the board is provided with flash unprogrammed. Can you tell me in detail how to put debug12 code in the EVB's fla


flash data storing & realibility

Started by Jordi Costa in 68HC1220 years ago 20 replies

Hi all, I'm writing a program that needs to store a large amount (thousands?) of small chunks of data (maybe 32 bytes length)...

Hi all, I'm writing a program that needs to store a large amount (thousands?) of small chunks of data (maybe 32 bytes length) into flash (cpu 12DG256). No problems in read / write / erasure, but I found what I think is a weak point in the process. Sometimes, due writing of new data in previous


How to unsecure HSC12 via BDM?

Started by lenux22 in 68HC1221 years ago 2 replies

Hello, all! We made our own programming device for HCS12 via BDM and playing with it: read/write registers, writing to SRAM,...

Hello, all! We made our own programming device for HCS12 via BDM and playing with it: read/write registers, writing to SRAM, etc... Today we trying to write flash (i.e. program FCNFG, FCMD, FADDR, FDATA registers). All working fine, untill we do mass erase. After that all flash bytes,



The 2024 Embedded Online Conference