Mapping EEPROM to RAM

Started by vvibin2003 in 68HC1219 years ago 8 replies

Hi, I want to implement a shadow RAM ,for holding my data in the EEPROM. So my requirement is to have some portion of the RAM...

Hi, I want to implement a shadow RAM ,for holding my data in the EEPROM. So my requirement is to have some portion of the RAM mapped to EEPROM locations so that ,it will always have the contents of EEPROM .So this allows me to avoid the frequent reading of EEPROM and to writ


Placing Data Objects in EEPROM

Started by bernd71093 in 68HC1217 years ago 3 replies

Hi experts, I want to access data in the EEPROM space 0xC00. The target is the S12XDP512. The compiler I use is called Cosmic v4.6. ...

Hi experts, I want to access data in the EEPROM space 0xC00. The target is the S12XDP512. The compiler I use is called Cosmic v4.6. The EEPROM space definition in the linkfile looks like: ========================================================= +seg .eeprom -b 0xC00 -o 0x13FC00 -m 1024 var_eeprom.o //my file with the eeprom data //(-b: logic


S12X EEPROM emulated?

Started by joshcurtz in 68HC1217 years ago 7 replies

So I've been using the S12XDP512 for quite some time and someone told me that the Freescale folks said the EEPROM is not "real" EEPROM but ...

So I've been using the S12XDP512 for quite some time and someone told me that the Freescale folks said the EEPROM is not "real" EEPROM but is actually an "emulated" EEPROM. He says this is the case because the S12X's EEPROM is not byte eraseable and is based on "flash technology". Does one really call this "emulated EEPROM"? I'm


standalone EEPROM write on MC9S12A256B / 1k79x ?

Started by christian_theiss_2003 in 68HC1219 years ago 6 replies

Hi all, I have come across of some strange unexplained behaviour if I try to write to the 4k EEPROM of my HCS12 derivative: ...

Hi all, I have come across of some strange unexplained behaviour if I try to write to the 4k EEPROM of my HCS12 derivative: a) writing to the EEPROM with BDM attached works walking through my application code which successfully writes to the EEPROM b) wri


Cosmic: @eeprom doesn't work

Started by Klaus Kaiser in 68HC1219 years ago 2 replies

Hello, I use the IdeaCPU12 V2.10f from Cosmic. To store a character in the EEPROM of a MC9S12DG256B, I defined a variable like...

Hello, I use the IdeaCPU12 V2.10f from Cosmic. To store a character in the EEPROM of a MC9S12DG256B, I defined a variable like this: @eeprom char foo; Accordinc to Cosmic docs, this should be enough to make the compiler insert a call to a EEPROM writing function i


bulk erasing eeprom

Started by Anish in 68HC1220 years ago 6 replies

Hi I am trying to bulk erase the 768 Byte EEPROM in 6812b32. I have written an assembly code for erasing it. I can see thru the...

Hi I am trying to bulk erase the 768 Byte EEPROM in 6812b32. I have written an assembly code for erasing it. I can see thru the debugger that when my code executes the eeprom is erased and all contents are FF but when I reset my processor then eeprom contains my previous data.


EEPROM not readable on reset? (MC68HC912B32)

Started by drranu in 68HC1217 years ago 13 replies

Hey. Is there an initialization sequence necessary to be able to read EEPROM (byte-erasable) on reset? Here's my situation: MC68HC912B32...

Hey. Is there an initialization sequence necessary to be able to read EEPROM (byte-erasable) on reset? Here's my situation: MC68HC912B32 microcontroller. 1. The first line of my program clears COPCTL. 2. The next several lines copy bytes from EEPROM (starting at $0D00) into RAM (starting at $0800). 3. The program is located in flash EEPROM at


Writing to EEPROM: Basics needed

Started by Roth Markus in 68HC1218 years ago 6 replies

Gents For a certain application it would be nice if I could write to the EEPROM at run time. I have never been writing to the...

Gents For a certain application it would be nice if I could write to the EEPROM at run time. I have never been writing to the EEPROM, so my knowledge for this special feature is zero. What I am looking for is a short briefing on what I need to do that. E.g. are th


Problems programming the EEPROM

Started by Doug Brainard in 68HC1219 years ago 3 replies

Hi All, I'm new at trying to program the EEPROM and was hoping you guys could shed some light on the problem I'm having. First...

Hi All, I'm new at trying to program the EEPROM and was hoping you guys could shed some light on the problem I'm having. First off, I am using the MC9S12DG128B with a 40MHz external clock (20MHz bus). According to Metroworks, I have the EEPROM located at 0x2000-0x27FF as de


Cosmic C eeprom programmer.

Started by Andrew Lohmann in 68HC1218 years ago 5 replies

Hi, I am trying to get the EEPROM programmer in Cosmic C to work. The example below returns 255, 255 incorrectly. ...

Hi, I am trying to get the EEPROM programmer in Cosmic C to work. The example below returns 255, 255 incorrectly. #pragma space [] @EEPROM @EEPROM UCHAR Eeprom_[10]; #pragma space case 'w': case 'W': { printf ("\n


EEPROM write simulation with Codewarrior

Started by in 68HC1220 years ago 2 replies

Hello, Is it possible to simulate EEPROM writing with the simulator in Metrowerks Codewarrior V2.0 (special edition)? ...

Hello, Is it possible to simulate EEPROM writing with the simulator in Metrowerks Codewarrior V2.0 (special edition)? I use code generated by processor expert to write the EEPROM and when the function WriteSector() checks the CBEIF flag in ESTAT the memo


EEPROM Read and Write Access

Started by nealskura in 68HC1219 years ago 8 replies

I understand that in order to program any word or byte into EEPROM, the sector in which it resides must first be erased. But is it...

I understand that in order to program any word or byte into EEPROM, the sector in which it resides must first be erased. But is it true that the erase and program process takes a full 20ms?? And that during this time, no other access can be made to EEPROM... even reading from ano


HC12D60A, EEprom and Flash programming

Started by bitjockey1 in 68HC1219 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


Stopping CodeWarrior erasing EEPROM

Started by Andrew Leech in 68HC1217 years ago 2 replies

Hi all, Does anyone know how you stop CodeWarrior (V3.1) from erasing the 4K EEPROM when it loads the application via the Debugger ? ...

Hi all, Does anyone know how you stop CodeWarrior (V3.1) from erasing the 4K EEPROM when it loads the application via the Debugger ? I have moved my EEPROM to live at &H4000 - &H4FFF , and I think I've told CodeWarrior about this in the .prm file, but the debugger always 'blanks' it. I've just updated CW with the latest updat


run-time programming of EEPROM in DP256

Started by danielkolodka2002 in 68HC1216 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...


9S12D64 and P&E Micro's Cyclone Pro

Started by Wade A Smith in 68HC1217 years ago 2 replies

Any one out there know more than the pathetic PEMicro's documentation says? We have not been able to find any way to program EEPROM on the...

Any one out there know more than the pathetic PEMicro's documentation says? We have not been able to find any way to program EEPROM on the 9S12D64 using the Cyclone Pro. In fact there is no mention in the documentation (nor examples) on "How To" work with EEPROM. Our program depends heavily on values in EEPROM to start and run. But we havent even been able to get the Cyclone Pro to recog...


How to tell Code Warrior debugger NOT to erase EEPROM

Started by apedroso11 in 68HC1217 years ago 2 replies

Hi all, I want the CodeWarrior debugger to NOT erase the EEPROM everytime I download user code to my DP256 or everytime I want to use the...

Hi all, I want the CodeWarrior debugger to NOT erase the EEPROM everytime I download user code to my DP256 or everytime I want to use the BDM. I have tried to comment this debugger commands: //mass erase eeprom //wb 0x110 CLKDIV // set ECLKDV clock divider //wb 0x114 0xFF // EPROT all protection disabled //wb 0x115 0x30 // clear PVIOL and ACCERR in ESTAT register //ww 0x118 0...


Eeprom r/w via CAN

Started by kinggsm in 68HC1219 years ago 3 replies

I need software for read/write eeprom via CAN-bus

I need software for read/write eeprom via CAN-bus


Banked EEPROM/RAM with 68HC12A4 & Codewarrior

Started by levijunkert in 68HC1217 years ago

Hardware/Software Preface: Currently we are using an Axiom CMD12-Rev A development board (HC12A4 with Expanded Wide Memory). This board has...

Hardware/Software Preface: Currently we are using an Axiom CMD12-Rev A development board (HC12A4 with Expanded Wide Memory). This board has 64K external EEPROM and 512k external RAM (we added in the RAM our selves). This memory runs in a 16bit wide data bus. That means that there are two chips for EEPROM (2x32k) and RAM (2x256k). We are using Metroworks Codewarri


DJ64 eeprom programming in low temperature

Started by jo_wan_soo in 68HC1216 years ago 9 replies

We are using HCS12 micro ( MCS12DJ64 CPV 2L86D mask set) in our automotive CAN application . Recently, we have discovered some problem...

We are using HCS12 micro ( MCS12DJ64 CPV 2L86D mask set) in our automotive CAN application . Recently, we have discovered some problem with eeprom programming in low temperature ( -20 degree Celsius ) environment. Our automotive application is programmed to write some datum to DJ64??s eeprom before turning the power off . The application runs fine in room temperature ( 10 ?V 20 deg...