cancel
Showing results for 
Search instead for 
Did you mean: 

Does STM32L431 support bit band operation

HSX.1
Associate II

What are the SRAM bit band area address and its bit band alias area address, and the peripheral bit band area address and its bit band alias area address, if supported?

14 REPLIES 14

These are the GPIO address0693W000006ExT4QAK.jpg

So?

Are those addresses within the bit banded region of the above table?

If you feel a post has answered your question, please click "Accept as Solution".
Uwe Bonnes
Principal III

b.t.w. no need to bitband access GPIO_ODR. Use GPIO_BSRR instead! And for reading GPIO, simple use IDR and mask out the bit.

as Uwe mentions below, you don't need bit banding for the GPIO registers - use the BSRR register. From the reference manual "The purpose of the GPIOx_BSRR and GPIOx_BRR registers is to allow atomic read/modify accesses to any of the GPIOx_ODR registers."