EEPROM on 9s12x512

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

EEPROM on 9s12x512

跳至解决方案
3,771 次查看
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.
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
2,211 次查看
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 项奖励
回复
3 回复数
2,211 次查看
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 项奖励
回复
2,212 次查看
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 项奖励
回复
2,211 次查看
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 项奖励
回复