Hi all, 1) I'm trying to get a MC9S12DG128B to work with the P&E Programmer and debugger. Compile and link goes with the GNU compiler. I have program that can be programmed, but when I jump into a subroutine either by CALL, or JSR, no returnaddres is written in the stack, altough the SP is decremented. I'm certain that my stack is in RAM. I declared it in a memory.x file. 2) Is it necessary to use log2phy.exe when working with P&E to convert logical S19-files to physical S19-files? I downloaded a version from the net to try this, but it is generating a runtime error when I use it in a DOS-box. Does anyone have a working one, or what can be the problem?? PETER |
|
Stack Problem / Log2Phy.exe
Started by ●January 27, 2004
Reply by ●January 27, 20042004-01-27
Hi all, 1) I'm trying to get a MC9S12DG128B to work with the P&E Programmer and debugger. Compile and link goes with the GNU compiler. I have program that can be programmed, but when I jump into a subroutine either by CALL, or JSR, no returnaddres is written in the stack, altough the SP is decremented. I'm certain that my stack is in RAM. I declared it in a memory.x file. 2) Is it necessary to use log2phy.exe when working with P&E to convert logical S19-files to physical S19-files? I downloaded a version from the net to try this, but it is generating a runtime error when I use it in a DOS-box. Does anyone have a working one, or what can be the problem?? PETER |
Reply by ●January 27, 20042004-01-27
Peter: I use log2phy all the time. It should be a 32 bit windows program. The version I have allows a pull down box which has your processor type on it. I have never had any trouble making it work for me. Regarding your other problem. Check your link file. See where the code is being placed. If it is in a paged memory bank you should set the PPAGE register on power on. I would force the linker to put my initialization code in a non-banked area $C000 is a good place. This should be easier to debug initially until you get hardware working. Also it would be advisable to look at the S record output from your compiler. See where it is placing the code segments - make sure your linker is doing what you think it is. Manually check the LDS instruction which is almost always the first instruction. Good luck Steve Dillier HighPoint Technology ----- Original Message ----- From: peter_lingier To: Sent: Tuesday, January 27, 2004 4:56 AM Subject: [68HC12] Stack Problem / Log2Phy.exe Hi all, 1) I'm trying to get a MC9S12DG128B to work with the P&E Programmer and debugger. Compile and link goes with the GNU compiler. I have program that can be programmed, but when I jump into a subroutine either by CALL, or JSR, no returnaddres is written in the stack, altough the SP is decremented. I'm certain that my stack is in RAM. I declared it in a memory.x file. 2) Is it necessary to use log2phy.exe when working with P&E to convert logical S19-files to physical S19-files? I downloaded a version from the net to try this, but it is generating a runtime error when I use it in a DOS-box. Does anyone have a working one, or what can be the problem?? PETER --------------------To learn more about Motorola Microcontrollers, please visit http://www.motorola.com/mcu o learn more about Motorola Microcontrollers, please visit http://www.motorola.com/mcu ------ Yahoo! Groups Links a.. To |