cancel
Showing results for 
Search instead for 
Did you mean: 

linker problems

h239955_stm1_stmicro
Associate II
Posted on September 28, 2004 at 09:06

linker problems

7 REPLIES 7
h239955_stm1_stmicro
Associate II
Posted on July 21, 2004 at 11:30

Sorry for my bad english!

I new at STR7 software developing. I would like to use the str71x software library.

I downloaded the LCD_display-driver found in this forum.

I put the debug-library in the same project directory.

In the projekt confiugration window of the Realview-IDE i've registerd the library in the correct place (i hope)

When i try to build the projekt in the Realview-IDE, i get these errormessages and i have no idea what to do to avoid these errormessages.

I've tried to change the aligment in the project configuration, but that changed nothing.

I think that the files mentioned in the errormessages, are located in the library, because i do not use them in the projekt directory.

Error: L6242E: Cannot link object 71x_vect.o as its attributes are incompatible with the image attributes.

... require 4-byte alignment of 8-byte datatypes clashes with require 8-byte alignment of 8-byte datatypes.

Error: L6242E: Cannot link object 71x_init.o as its attributes are incompatible with the image attributes.

... require 4-byte alignment of 8-byte datatypes clashes with require 8-byte alignment of 8-byte datatypes.

Error: L6242E: Cannot link object retarget.o as its attributes are incompatible with the image attributes.

... require 4-byte alignment of 8-byte datatypes clashes with require 8-byte alignment of 8-byte datatypes.

Error: L6242E: Cannot link object uart.o as its attributes are incompatible with the image attributes.

... require 4-byte alignment of 8-byte datatypes clashes with require 8-byte alignment of 8-byte datatypes.

Error: L6242E: Cannot link object 71x_lib.o as its attributes are incompatible with the image attributes.

... require 4-byte alignment of 8-byte datatypes clashes with require 8-byte alignment of 8-byte datatypes.

Error: L6242E: Cannot link object rccu.o as its attributes are incompatible with the image attributes.

... require 4-byte alignment of 8-byte datatypes clashes with require 8-byte alignment of 8-byte datatypes.

Finished: 6 information, 0 warning and 6 error messages.

h4h

h239955_stm1_stmicro
Associate II
Posted on July 28, 2004 at 06:56

Quote:

On 2004-07-27 10:20, RISC wrote:

Hi,

In your source files replace the str71xDL.lib by the attached one

Hi!

Thanx for the new lib. Works better, but still produce some ERROR after changing some of the headerfiles which came with the original lib (deleted ''inline'' statements in headerfiles)

>Fatal error: C3066E: The code space needed for this object is too large for this

>version of the compiler

>Compilation abandoned.

>Your trial started at: Tue Jun 29 00:00:00 2004

>Your trial will end at: Fri Aug 13 23:59:59 2004

>make: Error code 129, while making 'Debug\main.o'

>*** Command exited with error or warning: 255

If i use the original headerfiles, i get a lot of other error messages

I've attached some of the files, hope it helps...

Any idea?

Hein_b

________________

Attachments :

err2.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtJB&d=%2Fa%2F0X0000000aLP%2F0y0Q3QU.Bncj6iPcFS4X.uhk2aWPFbnFXs0DBCKW0eI&asPdf=false
h239955_stm1_stmicro
Associate II
Posted on July 28, 2004 at 07:48

Aaahhh, solved the problem (nearly)! I'm using an evaluation software with code size limitation (4K!) (a bit small for eval-software, i think!)

thanks again

Hein_b
h239955_stm1_stmicro
Associate II
Posted on July 28, 2004 at 09:36

Hi!

After reinstalling the original headerfiles and copying your 71x_map.h into the directory, i had to redefine vu32, vu16, vu8 to u32, u16, u8

after another compiling, i've got these error messages:

''..\..\..\..\..\..\str71xlib\project\include\rccu.h'', line 139: Error: #136: struct '''' has no field ''CPUDIV''

PCU->CPUDIV = ( PCU->CPUDIV & ~RCCU_FACT_Mask ) | New_Clock;

^

''..\..\..\..\..\..\str71xlib\project\include\rccu.h'', line 139: Error: #136: struct '''' has no field ''CPUDIV''

PCU->CPUDIV = ( PCU->CPUDIV & ~RCCU_FACT_Mask ) | New_Clock;

and some warnings like these:

''..\..\..\..\..\..\str71xlib\project\include\gpio.h'', line 50: Warning: #815-D: type qualifier on return type is meaningless

inline u8 GPIO_BitRead(GPIO_TypeDef *GPIOx, u8 Port_Pin)

^

''..\..\..\..\..\..\str71xlib\project\include\gpio.h'', line 63: Warning: #815-D: type qualifier on return type is meaningless

inline u8 GPIO_ByteRead(GPIO_TypeDef *GPIOx, u8 Port_Byte)

^

Any solutions?

Hein_b
h239955_stm1_stmicro
Associate II
Posted on July 28, 2004 at 13:49

Hi!

sorry, i've seen it too late that there are 2 files to install.

I've changed the CPDIV to CPUDIV and changed ''flagftatus'' to'' flagstatus'' in 71x_type.h

Compilation is ok now, but i'm still in fight with the linker, again these messages:

Error: L6218E: Undefined symbol SWI_Handler (referred from 71x_vect.o).

see the attached file.

Hein_b

________________

Attachments :

c4.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtAJ&d=%2Fa%2F0X0000000aJo%2FcHlkiQ_rB4eoydOiN52WkwmdOjT_LMUhgDh4NKYuzek&asPdf=false
h239955_stm1_stmicro
Associate II
Posted on July 30, 2004 at 08:18

Hi!

> missing file...

This is the decisive hint. Thanks a lot! Thanks for the mail with the complete project. I'll test ist later, my own project works fine now.

Hein _b

h239955_stm1_stmicro
Associate II
Posted on September 27, 2004 at 14:39

Quote:

On 2004-07-27 10:20, RISC wrote:

In your source files replace the str71xDL.lib by the attached one

I did so, now it works nearly fine. But now i have some problems with enabling some interupts. In the refence-manual it is written, the the adress-space of EIC starts at 0xFFFFF800. Using the LIB and going down to assemblerlevel i see, the the compiled code uses 0xE000F800 as the startadress for EIC. Do i misunderstand something?

H4H

Hein_b