Hi Todor
IAR 3.11A seems to be quite an old version. When the NE64 project was originally developed in 2004/2005 IAR 4.11 was used. It is well known that there are also often incompatibilities between IAR versions which sometimes need a smaller (or larger) adjustment somewhere (see ARM V4 compared to V5 - you need several days of effort to get a working V4 project running again with V5...!).
But in your case doesn't seem to be the main problem.
I don't know what the DBG_CODE is but you seem to have been able to solve it by adding the segment.
The FILE_ROUTINE is however something that I can explain. The uTasker project works with linear program memory and uses one bank for the file system. Since file system accesses require a bank to be switched, against a program bank, it is important that the file system access routines don't happen to be located in the bank that is switched out. Therefore the routines are forced to a certain location at the start of the internal FLASH so that this can never happen (this being a fixed bank that can't be switched out).
It looks as though the size of this region is too small for the code produced by your compiler version. I expect that, since it is an older compiler, it is also producing slightly larger code. The linker complains that it needs another 0x11 bytes of space. This can probably be compensated for by adjusting the setting in the linker script file uTasker_mc9s12ne64.xcl
// we force file control routine to start of code
Original:
-DFILE_ROUTINESTART=04000
-DFILE_ROUTINEEND=0407f
Adjusted to allocate another 0x11 bytes space:
-DFILE_ROUTINESTART=04000
-DFILE_ROUTINEEND=04090
Good luck
Regards
Mark
PS. Note that the NE64 is not recommended for new projects. Do also take a look at moving to the Coldfire M522XX since this is the best Freescale one to start with (there is also a device which is 98% pin compatible with an NE64!). A demo board costs $50 including debugger and 128k limited special edition of Codewarrior and enables much more powerful projects to be achieved with much less effort. Also the devices are no more expensive that an NE64, so there is no reason for anyone (educational users or professionals) to start new work or projects with the NE64.