Message Edited by Technoman64 on 05-18-200608:43 AM
Not, programing........
prm
EEPROM = READ_ONLY 0x0400 TO 0x0FFF;
DEFAULT_RAM INTO RAM;
EEPROMDATA INTO EEPROM;
--------------
in my code main.
#pragma CONST_SEG EEPROMDATA
const int MyIntegerArray[6] = {0,1,2,3,4,5};
#pragma CONST_SEG DEFAULT
-------------------------
progammer Staus:
Block Module Name Address Range Status
0 EEPROM 400 - FFF Enabled/Blank/Unprotected - Selected <<<<<?
1 FLASH_4000 4000 - 7FFF Enabled/Blank/Unprotected - Selected
2 FLASH_C000 C000 - FFFF Enabled/Programmed/Unprotected - Selected
3 FLASH_3 308000 -33BFFF Enabled/Blank/Unprotected - Selected
4 FLASH_2 348000 -37BFFF Enabled/Blank/Unprotected - Selected
5 FLASH_1 388000 -3BBFFF Enabled/Blank/Unprotected - Selected
6 FLASH_0 3C8000 -3FBFFF Enabled/Programmed/Unprotected - Selected
congratulation........t+
I have done this more than once with Codewarrior and a HCS12DJ256. The EEPROM is erased and programmed with no issues on my system.
Try moving the Test int out of the main() function and into global address. Also look at the Map file to determine if the compiler optimized the array out.