cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f4 family gpio boundary address

Bkim.6
Associate II

hello

i'm having a question. why gpioX boundary address(range) is 1kb ???

according to datasheet, GPIOA's boundary address is 0x4002 0000 - 0x4002 03FF.

but offset for register to be set is 0x00 - 0x24.

i think that using 1kb to cover that range is inefficient.

1 REPLY 1
TDK
Guru

> i think that using 1kb to cover that range is inefficient.

Actual memory is not being addressed here, it is just a register interface which uses the memory address interface for convenience.

The total address space spans 4GB, there isn't really a compelling reason for saving 1kB here and there.

A lot of other peripherals span 1kB or multiples thereof as well, presumably that was chosen as the minimum alignment space.

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