Hi Jeff
I'll take a guess - based on the fact that the Serial Monitor sets the SRAM to be at a fixed location (using INITRM - see the following post for details:
http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&message.id=938#M938
)
This tells me that the original code you used was set up like this - it is also not possibe to change it after it has been written once in normal mode. It sets 0x39 and the SRAM is located between 0x2000..0x3fff.
The SRAM position must correspond to the setting in your linker. It may be that the initialisation file you are now using sets the RAM somewhere else so if you want to get the origianl code (which was running with the serial monitor) to run without the serial monitor you must ensure that the initialisation code (usually one of the very first instructions) is setting the RAM to be at the same location as required by the file. (Typical in assemble file using: movb #0x39, INITRM; (RAM 0x2000 - 0x3fff))
This may help.
By the way, take also a look at the uTasker (see post
http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&message.id=897
)
It is a complete operating system with TCP/IP stack including FTP, TELNET and FLASH file system as well as a real time simulator, allowing your projects to be developed and tested on the NE64 simulator before downloading to the target. It also allows project upgrades to the M5223X by setting a compiler switch. It is free for non-commercial work and is supported here and by personal email, also free of charge. It is delivered with ready-to-run Codewarrior, IAR and GNU projects so will enable you to save lots of time.
Regards
Mark Butcher
www.mjbc.ch
(Alban linked)
Message Edited by Alban on 2006-08-30 10:26 AM