EmbeddedRelated.com

Programming all of the EEprom (HCS12A256) using CodeWarrior 2

Started by Robert L. Harris in 68HC1220 years ago 1 reply

The calibration tables have grown to exceed the 3k of EEprom normally visible with the "normal" mapping. Until now, default tables...

The calibration tables have grown to exceed the 3k of EEprom normally visible with the "normal" mapping. Until now, default tables have been placed between 0x400 and 0xfff and programming the chip with the default tables and the code was easy. (Default tables are inc


M68HC912B32

Started by Rivan Rivaldy in 68HC1215 years ago 5 replies

Hi all, Currently I'm a bit confused in using the M68HC912B32 MCU. I got a few questions regarding this MCU. 1. After successfully uploading...

Hi all, Currently I'm a bit confused in using the M68HC912B32 MCU. I got a few questions regarding this MCU. 1. After successfully uploading all the necessary program into the MCU EEPROM, how do we start the MCU to actually execute all the program that we've uploaded? Is it done by simply resetting the MCU? I've uploaded the program into $0D00 (EEPROM) and I've put the address into the RE...


Codewarrior - processor expert - Generate PRM file

Started by in 68HC1221 years ago

Hello, I am working on a project with a MC9S12A128B processor with Metrowerks Codewarrior and processor expert V2.00 ...

Hello, I am working on a project with a MC9S12A128B processor with Metrowerks Codewarrior and processor expert V2.00 (special edition). In order to declare variables and structures in EEPROM area I have added a new segment for the EEPROM in the .prm file


EEPROM based file system via SPI

Started by Mark Butcher in 68HC1218 years ago

Hi All I have just published a tutorial showing how to add an EEPROM to the SPI of the HCS12 (with diagrams and photos of the adapter for...

Hi All I have just published a tutorial showing how to add an EEPROM to the SPI of the HCS12 (with diagrams and photos of the adapter for typical EVB and DEMO boards) for use as an external file system - it is specifically for the NE64 to increase the program code space to 64k while still allowing web pages (up to 64k) to be served from simple and cheap external memory. http://www....


Problem with EEPROM in MC9S12D64

Started by panalogic2 in 68HC1216 years ago 1 reply

I am developing code for a hand-held product that uses the MC9S12D64 processor. The product uses the internal EEPROM to store a number of...

I am developing code for a hand-held product that uses the MC9S12D64 processor. The product uses the internal EEPROM to store a number of 4-byte calibration values, generated when the product is calibrated. I am using the PEMicro's Win32, PROG12Z and ICD12Z programs to author, program and debug the code, connecting to the BDM via PEMicro's Multilink USB Multilink interface. The code i...


BDM Hardwre Command and EEPROM Read/Write

Started by shangdawei in 68HC1220 years ago 2 replies

Hi, all members, I have a question : I want to read/write EEPROM of cpu12 via BDM Hardware Command, But how can i do ? I...

Hi, all members, I have a question : I want to read/write EEPROM of cpu12 via BDM Hardware Command, But how can i do ? I think, I can use Reset & BKGD pin(MODA=MODB=0) , BKGD = 0, make CPU12 @ Special Single Chip Mode, So I can use READ_BD_BYTE/READ_BYTE/WR


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


How can i read/write EEPROM of HC12 via BDM Command ?

Started by shangdawei in 68HC1220 years ago 5 replies

I want to read/write EEPROM of HC12 via BDM Command , But I dont known Which BDM Command Can i use ? Has anybody any advise ?...

I want to read/write EEPROM of HC12 via BDM Command , But I dont known Which BDM Command Can i use ? Has anybody any advise ? I have BDM2COM interface ...


floating point no in eeprom

Started by Anish in 68HC1221 years ago 2 replies

Hi I want to store a floating point number to a location in eeprom. This is my code float resulta; unsigned char...

Hi I want to store a floating point number to a location in eeprom. This is my code float resulta; unsigned char *introm_var0 = (unsigned char *) 0xD40; resulta = 0.56; *introm_var0 = resulta; The problem is that it stores 00 in that location.


'S12 EEPROM routine

Started by bruce_at_pocket_neurobics in 68HC1222 years ago 2 replies

The 'S12 EEPROM programming is similar to Flash programming, but has an extra command "Sector Modify" to allow a sector erase (4...

The 'S12 EEPROM programming is similar to Flash programming, but has an extra command "Sector Modify" to allow a sector erase (4 bytes) to be immediately followed up by two word writes. As I understand it, the first write is embedded in the "Sector Modify" command, and


Problem in loading file into flash of DP256....

Started by Yogeesh in 68HC1221 years ago 1 reply

Hi, We have problems loading our .h12 file into DP256 in Evaluation Board M68KIT9S12DP256. This is in our '.lkf' file.. ...

Hi, We have problems loading our .h12 file into DP256 in Evaluation Board M68KIT9S12DP256. This is in our '.lkf' file.. ----- +seg .data -b0x800 -m0x1b57 -n.data # data start address +seg .eeprom -b0x400 # eeprom start address if needed +def __sbss=@.bss # s


Running HiWave using wine

Started by "Jim...@googlemail.com [68HC12]" in 68HC128 years ago 18 replies

Hi Guys, Does anyone know if you can run HiWave (From code Warrior) using wine in linux? If you do you know how, I'm struggling to get it...

Hi Guys, Does anyone know if you can run HiWave (From code Warrior) using wine in linux? If you do you know how, I'm struggling to get it to flash the EEPROM. Thanks Jim


MC9S12DP256 unlocking problems

Started by markstaples999 in 68HC1219 years ago 14 replies

Hello all, I am running in secure mode, however I need to write some parameters off to the EEPROM so that they aren't lost...

Hello all, I am running in secure mode, however I need to write some parameters off to the EEPROM so that they aren't lost when the power goes off. So I want to unlock the chip, save the parameter, and then lock it up again. I am having problems with the


How to make an HCS12 doorstop

Started by hashlock in 68HC1218 years ago 8 replies

Hi folks, Is it my understanding that if I erase an HCS12's FLASH, but not its EEPROM, and then reset the device before programming the...

Hi folks, Is it my understanding that if I erase an HCS12's FLASH, but not its EEPROM, and then reset the device before programming the security byte (0xFF0F) to 0xFE, that BDM will no longer work? Have I just created a doorstop to add to my collection? :) Hans


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


Security of MC9S12DG128 MCU

Started by Dariusz Kusinski in 68HC1219 years ago 3 replies

Hi, I've a problem with processor security against reading the content of FLASH/EEPROM by unauthorised persons. I've...

Hi, I've a problem with processor security against reading the content of FLASH/EEPROM by unauthorised persons. I've read the documentations and application notices (AN2206 etc.) but I'm still unsure how the security should be made. My project based on the MC9S


Minimum equipment to re-program HC12

Started by Trevor Wigle in 68HC1221 years ago 7 replies

We have been using the CABLE12 interface cable to program a 68HC12 target for the last year. We use the Cosmic compiler to generate...

We have been using the CABLE12 interface cable to program a 68HC12 target for the last year. We use the Cosmic compiler to generate .H12 files which are then downloaded to the Flash and EEPROM (using Cosmic's ZAP) of the MC912 processor on our product. We would like to be able


Flashing Over EEPROM: A Newbie Question

Started by thunderweasel71 in 68HC1221 years ago 12 replies

Gentle Denizens: I am using CodeWarrior for the HC12 w/ the Processor Expert package, and my target is the MC9S12A64. I am...

Gentle Denizens: I am using CodeWarrior for the HC12 w/ the Processor Expert package, and my target is the MC9S12A64. I am using the BDM MultiLink to flash program with. This is a completely newbie question (I am, in fact, a newbie to all of the items noted above)


External Memory Capabilities of the HC12

Started by zajaco2 in 68HC1217 years ago 6 replies

Hello, I am relatively new to the 68HC12 (about 5 months) and I'm using it in a project that I've been working on. I know that the 68HC12...

Hello, I am relatively new to the 68HC12 (about 5 months) and I'm using it in a project that I've been working on. I know that the 68HC12 has an external addressing scheme that will allow one to reach 1MBytes worth of data. My question is this: What types of external memories are available? I have found an I2C 1Mbit EEPROM and some SPI flash memories, but nothing near 1MBytes that I...


One-step programming of 9S12D64

Started by Wade A Smith in 68HC1218 years ago 3 replies

Does anyone know of a one-step method to program a 9s12D64? We can only get PEMicro to load Flash or EEPROM, but not both, even with extra...

Does anyone know of a one-step method to program a 9s12D64? We can only get PEMicro to load Flash or EEPROM, but not both, even with extra documentation from their web site. (see the thread "9S12D64 and P&E Micro's Cyclone Pro" for the continuing saga of frustration. BTW, why does management get so pushy ONLY when they are ready to start producing, even though they knew programming was nee...