> Date: Thu, 2 Oct 2008 09:01:34 +0200
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> CC: [email protected]
> Subject: Re: [ECOS] FW: [ECOS] eCos Array memory size
>
>> Hi, I code this application using C. I am not sure where it is being
>> allocated. Is there a way to check it?
>
> Since it is in C, you are allocating it and you have control over
> it. How are you allocating it? Since you don't seem to understand C,
> maybe you can post some of your code?
>
> Andrew
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>

Basically my code is to declare a raw_data[2238] arrary and pass it to 
receive_response_14443a_readall function.
In this function, I will read all the incoming response from the RFID tag.

In my other functions, I also used the similar approach but with a smaller 
raw_data value of raw_data[500] to get the response value and it works.

Below are the codes:

void Read_all_14443a_type1(cyg_uint32 uid0, cyg_uint32 uid1, cyg_uint32 uid2, 
cyg_uint32 uid3) {
        
        cyg_uint32 request[9];
        cyg_uint32 binary[71]; 
        cyg_uint32 symbol[89]; 
        cyg_uint32 processed_data[124];
        cyg_uint32 CRC;
        int i,parity_check,byteValue;
        int responseFlag=0;
        int raw_data [2238]; 
        .
        . 
        .
                responseFlag=receive_response_14443a_readall(raw_data,1,0,500);

int receive_response_14443a_readall(int *raw_data, int loopvalue, int delay, 
int listen) {

        cyg_uint32 readDOUT, readDSYNC;
        readDOUT=0x00;
        int timeout = 0;
        int i,j;
        int k=0;
        int responseFlag=0;
        int count=0;
        delay_us(15);
        .
        . 
        .
        do{
                HAL_READ_UINT32(AT91_PIOC+AT91_PIO_PDSR,readDSYNC);
                readDSYNC= readDSYNC & 0x8;
        }
        while(readDSYNC ==0x8);
                                
        HAL_READ_UINT32(AT91_PIOC+AT91_PIO_PDSR,readDOUT);
        readDOUT= readDOUT & 0x40;      
                                
        if(readDOUT == 0){
                k++;
                *raw_data=0;
        }
        else
                *raw_data=1;
        
        delay_us(3);
        count++;
        raw_data++;     

Thanks for helping...   
_________________________________________________________________
Join the Fantasy Football club and win cash prizes here!
http://fantasyfootball.sg.msn.com

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Reply via email to