Search code examples
stm32fmcstm32h743

How do I find the base address of "NOR Flash/PSRAM/SRAM/ROM/LCD 1" on a STM32H743?


With the STM32F427, the generated code included a couple of different #defines which mapped to the address to which I needed to write:

e.g.

#define FMC_BANK3_BASE  ((uint32_t)(0x60000000 | 0x08000000))

Where can I find similar #defines in a CubeMX generated project for the STM32H743? (I think I need FMC_BANK1 here.)

I'm looking for the address at which the memory/lcd is mapped, not the address of the controller registers (which I already have).


Solution

  • While I couldn't find any appropriate #defines, reading the manual I found:

    Figure 95. FMC memory banks (default mapping)

    This showed that Bank 1 is located at 0x6000 0000, as it is on the stm32f413.