This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

I set GPIO22 as output in a8's app, but the register value is no changed!



ipnc rdk3.8.0 8148

I set GPIO22 as output in uboot 0x48140A9C's value can changed ok.

but I set GPIO22 as output in a8's app, but the register value is no changed!

my a8's app code :

unsigned int uval, addr;
129                            
130     
131     //read ad18 reg        
132     addr =0x48140A9C;      
133     uval = RD_MEM_32( addr  );
134     printf( "0x48140a9c-r---direct:%08x\n", uval);  
135     
136     //write ad18 to gpio   
137     //uval |= 0x00000080;  
138     uval = 0x00070082;     
139     WR_MEM_32(addr, uval);
140
141     //read writed value    
142     uval = RD_MEM_32( addr  );
143     printf( "0x48140a9c-w---direct:%08x\n", uval);  

the result:  

0x48140a9c-r---direct:00050002
0x48140a9c-w---direct:00050002

look forwards for your answer!

why 0x48140A9C 's value no change?