Hi Lav
It sounds as though the UART 1 is being opened twice in the project, otherwise it wouldn't get to
if (!(driver_mode & MODIFY_CONFIG)) {If this is the case (and wanted), the caller can set
fnOpen( TYPE_TTY, MODIFY_CONFIG, &tInterfaceParameters )rather than
fnOpen( TYPE_TTY, FOR_I_O, &tInterfaceParameters )and this should avoid the need to change the TTY code.
The run-time error is VS telling you that the stack (presumably in the routine
fnCheckRx()) was corrupted between the routine being started and exiting. I don't think that I have heard of this before, but it wouldn't show up with VS6.0 since it doesn't do the stack checking. VS6.0 was used exclusively to develop the NE64 project.
I also can't comment on the LCD difficulty. The LCD code is the same between the NE64 and SAM7X packages but there have been a number of simulator improvements between the two. This is possibly a bug in the NE64 simulator but again I haven't had reports of this particular case.
I am however wondering why you have chosen to use the NE64? The uTasker NE64 project has not been further developed for about 2 years now and is not recommended for new designs. The device was interesting in 2004 when it first came out but essentially died when Freescale introduced the Coldfire M5223X. The Coldfire is vastly more powerful and easier to use, with much more memory, more and better peripherals, and even costs less than the NE64. [For NE64 based products it can almost be placed on the old NE64 footprint and be used - there are only a few quite small modifications required].Unless there is a very important reason for using the NE64 I would switch to a Coldfire V2:
http://www.utasker.com/forum/index.php?topic=256.0The Coldfire project is available as V1.4 and will almost certainly be compatible with any SAM7X project code too - both in the simulator and on the target.
Regards
Mark