EEPROM on 9s12x512

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

EEPROM on 9s12x512

Jump to solution
2,093 Views
Keep_Smiling_2
Contributor I
I can read and write 2045 locations in the EEPROM addressing space starting at
EEPROMStart and going 2045 locations.   When I try to access the rest of the 4k
the processor hangs and resets itself? Any clues?
Thank you.
Labels (1)
Tags (1)
0 Kudos
1 Solution
533 Views
Alban
Senior Contributor II
Hi Terry,
 
I'm not sure you'll keep smiling, but I'll try anyway.
 
Is it data store/read you do from these locations, or code execution ?
 
Code Execution has a prefetch pipeline as documented in the CPU reference manual. If you fetch outside implemented memory, you get a Illegal Address Reset....
 
Cheers,
Alban.

View solution in original post

0 Kudos
3 Replies
533 Views
Keep_Smiling_2
Contributor I
Tom,
   Yes, It is suppoased to be 4K, but as soon as I try to read or write the 2046th location the reset takes me into the weeds..... I know I read that there is about 4 locations of unusable space for overhead. I'm using the Processor expert  to access each byte of EEPROM:  EEPROMStart + OFFSET is valid until the 2046th location is addressed. Any clues now?
Terry
0 Kudos
534 Views
Alban
Senior Contributor II
Hi Terry,
 
I'm not sure you'll keep smiling, but I'll try anyway.
 
Is it data store/read you do from these locations, or code execution ?
 
Code Execution has a prefetch pipeline as documented in the CPU reference manual. If you fetch outside implemented memory, you get a Illegal Address Reset....
 
Cheers,
Alban.
0 Kudos
533 Views
J2MEJediMaster
Specialist I
I'm looking at the MC9S12XDP512 family data sheet (MC9S12XDP512V2.pdf) and it appears that the most this part could have is 4K of EEPROM. I don't know what size you access your "location" as, but if it's a word or larger you might be running off the end of EEPROM memory and triggering an illegal address reset exception.

---Tom
0 Kudos