Marc Kleine-Budde a écrit :
> Nicolas TOUCHARD wrote:
>
>> I'm working with PXA270 and ptxdist 0.10.4 ( gcc 4.0.2).
>>
>> In my soft I use, global structure. In using, some of them are destroyed.
>> I verify all my size declaration, and all seem to be good.
>>
>> to resolv it, sometime I've to declar the global static and sometimes
>> not .. not very rigorous !!
>> The most strange is when it's working with static global structure, if I
>> pass it to non static , it's not working !!
>>
>
> Please give us the code, so that we can look into it. (We're not
> telephatic :)
>
it's big soft, with many files ... see below for the structure
declaration.
>
>> I really think of a linker or compiler problem.... My compiler command
>> is : arm-softfloat-linux-gcc -wall -O3 -msoftoat.
>>
>
> Have you tested your Programm on your linux developement host with your
> distributions compiler?
>
good remark ! Yes I've tested it , and it's working well on my host PC !
Nicolas
#######################################################################
structure declaration
#######################################################################
// Objet utilisé pour l'émission des trames maître
typedef struct
{
unsigned char ucMaster;
unsigned char ucFonction;
unsigned char ucAdresse;
unsigned char tucData[aMAC_BUFSIZE_DATA];
union
{
unsigned char tucCRC[2];
unsigned short int uiCRC;
} uIntegrity;
unsigned char ucSize;
} T_MACMasterFrame;
// Objet utilisé pour la réception des trames esclaves
typedef struct
{
unsigned char ucError;
unsigned char ucAdresse;
unsigned char ucFonction;
unsigned char ucSize;
unsigned char tucData[aMAC_BUFSIZE_DATA];
union
{
unsigned char tucCRC[2];
unsigned short int uiCRC;
} uIntegrity;
} T_MACSlaveFrame;
typedef struct
{
unsigned char ucState;
T_MACMasterFrame tAsk;
T_MACSlaveFrame tAnswer;
unsigned char ucTimeOutSec;
TDateTimeObject tDateTimeout;
unsigned char ucCptTentative;
} T_SYTGEOBusManager;
static T_SYTGEOBusManager tSytgeoBus;
--
Nicolas Touchard
NKE electronics
Rue Gutenberg Z.I. de Kerandré
56700 HENNEBONT - FRANCE
Email : [EMAIL PROTECTED]
Tél. : (33) 2-97-36-10-12
Fax : (33) 2-97-36-55-17
--
ptxdist mailing list
[email protected]