2005-08-25 08:19 PM
2005-08-24 04:43 AM
Hi, in the .LD file I can put any location to locate the libgcc.a. I now putted there:
SEARCH_DIR( ''C:\Program Files\Hitex\GnuToolPackageArm\arm-elf\lib'' ) SEARCH_DIR( ''C:\Program Files\Hitex\GnuToolPackageArm\lib\gcc-lib\arm-elf\3.3.2\thumb\interwork'' ) I think this works because if I remove the libraries from these folders I get compiler error: ''missing -lgcc'' etc. But this does not solve my problem. I have no option to put sentence in: -L C:\Program Files\Hitex\GnuToolPackageArm\lib\gcc-lib\arm-elf\3.3.2\thumb\interwork I also implemented your order of including the libraries. I also specified to the thumb/interwork paths. No effect:-( All the (GNU) experts of Hitex are on vacation, but they promised me that I can speak to someone who knows 'something'' about it tomorrow. I really he knows the problem. I really appreciate your work till now, thanks, To be continued............2005-08-25 07:56 PM
It is finally working!!!!!!!! It was a compiler option I changed. The default option was: -c -gdwarf-2 -MD -mapcs-frame -O0 -mcpu=arm7tdmi -w -mthumb-interwork
I changed it into: -mcpu=arm7tdmi -c -gdwarf-2 -MD -Wall -O -mthumb-interwork -mapcs-frame(still don't know what it means) This option I got from a project that was deliverd with Hitop5. I one by one changed all the linker and compiler options between the working and not working project. Thanks again for all the help I become. Without it I was still thinking that the error was in the compiler instead of wrong option in the IDE. Regards, Jim2005-08-25 08:19 PM
Glad to hear you have it working.
for an explanation on -mapcs-frame you could try reading this. http://www.heyrick.co.uk/assembler/apcsintro.html