Author Topic: SP7 Compilation Problems - Can't Load Library  (Read 9036 times)

Offline burhoom

  • Newbie
  • *
  • Posts: 2
    • View Profile
SP7 Compilation Problems - Can't Load Library
« on: December 09, 2008, 01:18:58 PM »
I applied SP7 for M52233DEMO and replaced the "config.h" file as described in other threads but when I try to compile I end up with the following error:

Could not find or load the file "C_4i_CF_RegABI_SZ_MSL.a" for target "M5223X_RAM" for project "uTaskerV1.3.mcp".

Note that when I first ran the project using code warrior (v5.9 that came with the board) it conveted the project (.mcp) file to a newer version and at the end displayed the follwoing message:

"Files missing from files view hierarchy" and C_4i_CF_RegABI_SZ_MSL.a was placed in 'rescued' items folder.

Could you please help?

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: SP7 Compilation Problems - Can't Load Library
« Reply #1 on: December 09, 2008, 01:54:36 PM »
Hi

The demo project doesn't need any libraries so you should be able to delete this (C_4i_CF_RegABI_SZ_MSL.a) from the project and then it will link. I suppose the library was added by the converter and has since changed name or something...

See the following for notes on the use of libraries: http://www.utasker.com/forum/index.php?topic=96.0

Regards

Mark

Offline burhoom

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: SP7 Compilation Problems - Can't Load Library
« Reply #2 on: December 09, 2008, 03:15:25 PM »
Many thanks Mark. The project compiles fine but the M5223X_RAM target is still throwing errors:

Link Error   : Overflow in segment: user from section: .text
Segment reserved size is: 0x00007c00 -- Overflow of: 0x0000c770

Link Error   : Overflow in segment: user from section: .data
Segment reserved size is: 0x00007c00 -- Overflow of: 0x0000c7d0

Link Error   : Overflow in segment: user from section: .bss
Segment reserved size is: 0x00007c00 -- Overflow of: 0x0000cab4

Link failed.

I'm assuming that this is to do with the size of the project and that it can't be debugged from RAM anyway so tried running the simultator using Visual Stduio 2003 but the following errors were produced:

LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
PortSim.obj : error LNK2019: unresolved external symbol "void __cdecl fnInjectSPI(unsigned char *,unsigned short,int)" (?fnInjectSPI@@YAXPAEGH@Z) referenced in function "void __cdecl fnExecute(int,int)" (?fnExecute@@YAXHH@Z)
PortSim.obj : error LNK2019: unresolved external symbol "void __cdecl fnInjectSerial(unsigned char *,unsigned short,int)" (?fnInjectSerial@@YAXPAEGH@Z) referenced in function "void __cdecl fnExecute(int,int)" (?fnExecute@@YAXHH@Z)
.\Debug/uTaskerV1-3.exe : fatal error LNK1120: 2 unresolved externals

This happens for both SP7 and SP8. Do these errors make any sense?

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: SP7 Compilation Problems - Can't Load Library
« Reply #3 on: December 09, 2008, 03:54:12 PM »
Hi

Yes, the 32k of SRAM on the M5223x is too small to run the complete project. It is only really useful for testing parts of it (eg. when quite a lot of options are disabled to get the code size down adequately to fit and also have enough SRAM to use for heap and stack).

The FLASH build should be OK and, once loaded to the board, can also be debugged quite well.

The simulator linker errors are due to the missing routines fnInjectSerial() and fnInjectSPI() which are in WinSimMain.cpp from SP6.
Here is the SP8 header - they were added at change {8}

Code: [Select]
   18.01.2007 Correct array size                                         {1}
   26.01.2007 Increase ucDoList[10000]; to ensure no overrun {2} and OVERLAPPED data structure in fnSendSerialMessage
              made static {3} to ensure that it stay in scope during the complete write operation.
   13.02.2007 Solve GDI memory leak {4} / Improve LCD refresh            {5}
   15.09.2007 Add M5222X support
   15.09.2007 Add Luminary LM3SXXXX support
   22.09.2007 Add M5221X support
   21.10.2007 Add Enumeration test support                               {6}
   02.11.2007 Add RTS modem control support                              {7}
   13.11.2007 Add port simulator                                         {8}
   25.12.2007 Extended UART support to 4 channels                        {9}
   26.12.2007 Add LPC21XX support
   08.01.2008 Ethernet code made conditional on Ethernet availability    {10}
   28.04.2008 Add shift key monitor and negative toggle (for ADC use)    {11}
   17.06.2008 Remove TA port for 64 pin M5222X and M5221X                {12}
   19.06.2008 Add USB disconnect support                                 {13}
   19.06.2008 USB state display added                                    {14}
   19.06.2008 fnInjectUSB() added                                        {15}
   13.08.2008 Add M5225x support                                         {16}

Since suggests a problem with the installation of the SPs since both SP7 and SP8 have this content.

Please check the installation sequence as defined in http://www.utasker.com/docs/uTasker/uTaskerV1.3_user_guide.PDF (page 4/11).

Regards

Mark