EEPROM Sector Erase/Program cycle count

Started by sunil1ind in 68HC1214 years ago

I am using MC9s12D64 micro which has 1k EEPROM. It has 256 sectors.I need to monitor how many times each sector is...

I am using MC9s12D64 micro which has 1k EEPROM. It has 256 sectors.I need to monitor how many times each sector is erased/programmed. Is there any built in register where i can get this information. In MC9S12DJ64 Device User Guide V01.13 it is mentioned that "The program/eras


HC912 EEPROM Write/Erase vs Interrupts

Started by Killingsworth, Steve in 68HC1215 years ago 2 replies

I have been using a set of routines for over a year to read and write to the internal EEPROM memory of a 68HC912DG128A processor....

I have been using a set of routines for over a year to read and write to the internal EEPROM memory of a 68HC912DG128A processor. The routines have worked without incident. During the development phase of these routines I thought it necessary to disable interrupts before accessing t


hc12 A4 in expanded wide mode

Started by Heath in 68HC1214 years ago 2 replies

Hello, I am having trouble getting the Hc12 A4 chip to work in expanded wide mode. Specifically I am having problems reading...

Hello, I am having trouble getting the Hc12 A4 chip to work in expanded wide mode. Specifically I am having problems reading and or writing to an eeprom, which has been checked manually and is working correctly. When trying to read from the EEPROM only the even addresses are b


EEPROM sector Erase/program count

Started by sunil1ind in 68HC1214 years ago 6 replies

I am using MC9s12D64 micro which has 1k EEPROM. It has 256 sectors.I need to monitor how many times each sector is...

I am using MC9s12D64 micro which has 1k EEPROM. It has 256 sectors.I need to monitor how many times each sector is erased/programmed. Is there any built in register where i can get this information. In MC9S12DJ64 Device User Guide V01.13 it is mentioned that "The program/erase c


Writing to EEPROM

Started by Pascal in 68HC1214 years ago 3 replies

Hello, Oliver Thamm sent me this function when i tried to write on the EEPROM and it works good. INT8...

Hello, Oliver Thamm sent me this function when i tried to write on the EEPROM and it works good. INT8 wrSectEETS(UINT16 *dest, UINT16 *src) { // check addr: must be aligned 32 bit if((UINT16)dest & 0x0003) return -1; // check if ECL


how to avoid erasing eeprom with Codewarrior 3

Started by ra in 68HC1215 years ago 2 replies

Hello Has anyone figured out how to avoid having Codewarrior 3 erase the eeprom every time one flashes the code with the ICD-12...

Hello Has anyone figured out how to avoid having Codewarrior 3 erase the eeprom every time one flashes the code with the ICD-12 target module? With version 2, one could achieve this by editing "P&E_ICD_erase_unsecure_hcs12.cmd", but with version 3 there is a new mech


EEPROM setup/erase/program for HC912D60

Started by Wade A Smith in 68HC1215 years ago 4 replies

I'm having a real challenge trying to sort out the code for EEPROM setup and programming for the HC912D60. I know how the...

I'm having a real challenge trying to sort out the code for EEPROM setup and programming for the HC912D60. I know how the HC11E20 is set up, but I see conflicting methods for the HC912D60 and no example code. In some examples (B32, A4) they set it up like the HC11


Problem in flash erasing if EEPROM is touched

Started by br_professional in 68HC1214 years ago 2 replies

Hi all, I am trying to erase and program Flash Block 0 of MC9S12DP256B. I am doing this by executing my erase and program...

Hi all, I am trying to erase and program Flash Block 0 of MC9S12DP256B. I am doing this by executing my erase and program routines from RAM and I am successful in this. But if I write data to EEPROM, before I start to erase the flash memory, it is not allowing to erase the


Difference between D-Flash and Emulated EEPROM

Started by yadunandan kasu in 68HC1210 years ago

Dear Everyone, I am working with the MC9S12XS128 MCU. This MCU doesnt have the EEPROM but it has D-Flash. And I studied the data sheet...

Dear Everyone, I am working with the MC9S12XS128 MCU. This MCU doesnt have the EEPROM but it has D-Flash. And I studied the data sheet for MC9S12XEP100 refference manual and the application note AN3490.pdf. Which says MC9S12XEP100 has the optional Emulated EERPOM which can be done by carefully partioning the availabe D-Flash. And the document says it has many advantages like .. ...


Problem writing a sample program to HCS12DP256 eeprom

Started by Cilo in 68HC1214 years ago 2 replies

Hi, I'm using a HCS12DP256 with ICC12 v6.xx compiler and I want to program EEPROM (at address 0x0400) with the S19 file...

Hi, I'm using a HCS12DP256 with ICC12 v6.xx compiler and I want to program EEPROM (at address 0x0400) with the S19 file attached... The problem is that I keep getting the following error from DBug12 v4.x.x after I execute BULK and LOAD! >bulk >load


Program INITRM INITRG INITEE on 9s12a64

Started by Pascal in 68HC1214 years ago 5 replies

Hello, I don't undersant very well wich values should i put in these registers. My eeprom is at 0x400 to 0x7FF My RAM 0x800...

Hello, I don't undersant very well wich values should i put in these registers. My eeprom is at 0x400 to 0x7FF My RAM 0x800 to 0xFFF I have INITRM=9 INITEE=1 and INITRG=0 But i think that there is a pb between adress RAM and adress EEPROM Thank


flash eeprom bootup problem

Started by venkat subramanian in 68HC1214 years ago 5 replies

hi I am trying to use 912b32 board to run a code from the flash eeprom. I programmed it but when I set the jumper to EVB mode, for...

hi I am trying to use 912b32 board to run a code from the flash eeprom. I programmed it but when I set the jumper to EVB mode, for some reason, the code doesnt boot( start running) I tried to check if the code was truly present, by connecting another board in POD mode an


remap EEPROM, doc error on INITEE

Started by Jefferson Smith in 68HC1212 years ago 6 replies

Uh, I must not be up to speed on how to remap memory. The 2K EEPROM of the MC9S12DG128B is [0..0x07ff] on powerup. I was going to quicly remap...

Uh, I must not be up to speed on how to remap memory. The 2K EEPROM of the MC9S12DG128B is [0..0x07ff] on powerup. I was going to quicly remap it to [0x0800..0x0fff] for compatibility, but I had not noticed something before about INITEE (see 9S12DT128BDGV1.pdf). I could supposedly remap it to "any 2K boundary", but with INITEE I can only set [EE15..EE12]. I would need to set EE1


EEPROM Variable Storage On MC9S12C128

Started by jmey...@emittechnologies.com in 68HC1210 years ago 6 replies

Hello, I need to store four strings into non-volatile storage. One string will be 15 chars in length and the other three will be 10 chars in...

Hello, I need to store four strings into non-volatile storage. One string will be 15 chars in length and the other three will be 10 chars in length. The strings may be written less that 10 times in the device's lifetime, but will be read possibly thousands of times. It is very important that the strings remain in memory if the power is lost! Is EEPROM the right place for this? I am working w...


Programming all of the EEprom (HCS12A256) using CodeWarrior 2

Started by Robert L. Harris in 68HC1215 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 68HC1210 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...


internal 2k EEPROM erase and write

Started by Always_Funy in 68HC1215 years ago

Hello all, I wrote functions to erase and write the internal EEPROM of the 912DG128A. This functions work fine on the first...

Hello all, I wrote functions to erase and write the internal EEPROM of the 912DG128A. This functions work fine on the first three micro. On the next five micro only the erase function works. I ask me why. The first three micro have the inscription: MC912DG12


Codewarrior - processor expert - Generate PRM file

Started by in 68HC1215 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 68HC1212 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 68HC1210 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...