cancel
Showing results for 
Search instead for 
Did you mean: 

Bitband keil attribute not working

IGama.1
Associate

Hi ,

I have a problem when using __attribute__((bitband) when using Keil IDE.

However I used bitband using classic marcos

#define BIT_BAND(addr,pin) ( (((addr) & 0xF0000000) +0x2000000) + (((addr) & 0xFFFFF)<<5) + ((pin)<<2) )

 and it works as expected, BUT when I used attributes it does not work .

typedef struct

{

int p0 :1 ;

}BB __attribute__((bitband));

BB test __attribute__((at(0x20000004)));

test.p0 = 1 ;

I​ use stm32f429

0 REPLIES 0