Skip to main content
Bkim.6
Associate
March 3, 2022
Question

stm32f4 family gpio boundary address

  • March 3, 2022
  • 1 reply
  • 1423 views

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.

This topic has been closed for replies.

1 reply

TDK
March 3, 2022

> 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""."