help using intEEPROM bean with Full Chip Simulator on HCS12X.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

help using intEEPROM bean with Full Chip Simulator on HCS12X.

ソリューションへジャンプ
1,117件の閲覧回数
holder
Contributor I

Hi Folks,

  I am using CodeWarrior v5.1 with Processor Expert. Target is MC9S12XDT512.

I am having trouble getting the intEEPROM working in the simulator. Here is what I tried to start.

 

1. create tutorial project (GuessTheNumber).

2. add IEE1 intEEPROM component from Processor Expert.

3. Set IEE1 "Start Address" to 13F000, "Used Size" to 400.

4. Make project.

5. Run project using FCS.

 

When the call to PE_low_level_init() returns I see the error :

FCS Warning (ID 9): writing to unimplemented register at pc=0xfe822d'L, Value: 0x4A, Memory Address: 0x110. EEPROM CONTROL module not implemented.

 

Can some kind soul tell me what I am doing wrong?

 

thx,

bob

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
770件の閲覧回数
kef
Specialist I

Beans have nothing to do with simulator. Beans generated code should work on real hardware. And I meant previously that simulator support for EEPROM is not complete. What you have to do on real hardware to write or erase EEPROM: write to EEPROM, write command register, write status register, wait for operation complete - this all won't work properly in current simulator.

 

Yes, you found good point in documentation:

"Registers of this (EEPROM) module are implemented to allow read and write access but no module specific functionality"

 

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
771件の閲覧回数
kef
Specialist I

EEPROM simulation is not full implemented. You get only EEPROM registers defined in memory space, for which you get warning every time you access them.

0 件の賞賛
返信
771件の閲覧回数
holder
Contributor I

Are you certain about this? If I remove the EEPROM bean from the project I still get the same error message when accessing the EEPROM when running the simulator- so what is the value of adding the bean? Something is not right if I get the message with and without the bean in the FCS.

 

Specifically reading the file FCS_Notes_MC9S12DP512.pdf the 4Kbyte EEPROM Module is tagged with subscript 1.

 

1) Any memory is integral part of the core simulator

 

 It is NOT tagged with subscript 3 which indicates the behavior you describe.

 

3) Registers of this module are implemented to allow read and write access but no module specific functionality

 

Freescale, can you comment on the functionality of the EEPROM bean in the FCS?

 

thank you,

bob

 

 

0 件の賞賛
返信
771件の閲覧回数
kef
Specialist I

Beans have nothing to do with simulator. Beans generated code should work on real hardware. And I meant previously that simulator support for EEPROM is not complete. What you have to do on real hardware to write or erase EEPROM: write to EEPROM, write command register, write status register, wait for operation complete - this all won't work properly in current simulator.

 

Yes, you found good point in documentation:

"Registers of this (EEPROM) module are implemented to allow read and write access but no module specific functionality"

 

0 件の賞賛
返信