M68EVB912B32 Problems

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

M68EVB912B32 Problems

1,496件の閲覧回数
BK706
Contributor I

Hello,

 

I'm new to freescale, and I recently got a M68EVB912B32 board and the corresponding CodeWarrior Evaluation CDs ( Code Warrior Versio 5.9.0 ).

 

I also bought a program from Freescale that came in a folder called BLUE and am transferring a program called CMC_880.s into Codewarrior. Using a BDM Multilink, I am trying program and debug the code. I have run into several errors, but the one that stand out the most for me is: "Error while writing to 8000 to 8400".

 

I don't know if it's related, but when running the program in simulation, for some reason, when I try to initialize the RAM using the SEGMENTS section in the HC912B32 linker file for assembly, nothing gets written to it. I don't know if I'm initializing it properly. What specifically must be done to initialize the RAM, as I might have done it improperly?

 

Something else I am wondering about is the fact that I'm using code from a .S file in my main assembly file. Are there complications with that? And if there are, does anybody have any suggestions on how to fix that?

ラベル(1)
タグ(1)
0 件の賞賛
返信
4 返答(返信)

1,247件の閲覧回数
Lundin
Senior Contributor IV

Out of curiousity, why are you evaluating an obsolete MCU?

0 件の賞賛
返信

1,247件の閲覧回数
kef
Specialist I

I never worked with 912B32, but as I remember, it requires about 12V programming voltage, else flash won't program. On your EVB I would expect either some jumper that applies 12V to the chip, or may be socket to connector to apply  programming voltage. Make sure programming voltge is there.

 

PRM SEGMENTS don't initialize RAM. In debugger simulator menu HC12 FCS -> Configure->Mode is set to "auto on load". This is good for C programs. After you load C program, debugger automatically determines what RAM/ROM areas to activate for simulation. Asm programs most likely don'g include required information and you end with no RAM at addresses of interest. You need to change HC12 FCS -> Configure -> Mode to "user defined" and configure ROM and RAM you wish to use.

 

Your code is for absolute assembler (absolute= Code is placed not at segment defined in PRM, but form ORG <address> directive in your code). Probably you need to make sure your project is made for absolute assembler.

(Some parts of this code looks moke like disassemble of something, because I saw many instances stuff like LDAA 123, instead of LDAA register. It will take you a lot of time to port it to other MCUs)

0 件の賞賛
返信

1,247件の閲覧回数
BK706
Contributor I

Thank you, but now I have another problem. I am trying to use the evaluation board to download code into another external board by means of BDM Out and probe mode (W3-0 and W4-1). However, for some reason, the external board isn't receiving the code, even when the probe mode settings are done. When the external board is unplugged, no error occurs. Does anybody have any idea why this is the case?

0 件の賞賛
返信

1,247件の閲覧回数
BK706
Contributor I

In case people are wondering, here's the code that was purchased (in txt format).

0 件の賞賛
返信