Skip to content
Discussion options

You must be logged in to vote

Option bytes are persistent configuration registers. You can set them via st-link using e.g. Cube Programmer.

You'll need to refer to the reference manual I mentioned, but there's a two-bit setting (TCM_AXI_SHARED) in the option byte (FLASH_OPTSR2_PRG) that lets you configure how the memory layout works.

RM0468 details how this works, see page 133 for the memory layout.
0x24000000 - 0x2401FFFF (128kiB) is AXI SRAM. (this is what the .ld file is configured to use)
0x24020000 - 0x2404FFFF (192kiB) is an additional region that may be mapped depending on the option byte setting. Anything you don't map here will be assigned to ITCM at 0x00000000.

The minimum split for ITCM (64kiB) gives the fu…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@saraverbeecke
Comment options

@jimmo
Comment options

jimmo Oct 6, 2023
Maintainer

@saraverbeecke
Comment options

@jimmo
Comment options

jimmo Oct 6, 2023
Maintainer

Answer selected by saraverbeecke
@jimmo
Comment options

jimmo Oct 6, 2023
Maintainer

@jimmo
Comment options

jimmo Oct 6, 2023
Maintainer

@saraverbeecke
Comment options

@jimmo
Comment options

jimmo Oct 6, 2023
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants