1

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

fadedbee
  • 42,671
  • 44
  • 178
  • 308

1 Answers1

1

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.

Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
fadedbee
  • 42,671
  • 44
  • 178
  • 308
  • In order to not get 4 writes when you expect 1, you need to swap the banks, or change the memory properties of the block at 0x6000 0000. See: https://community.st.com/s/question/0D50X00009XkWQE/stm32h743ii-fmc-8080-lcd-spurious-writes – fadedbee Feb 25 '20 at 09:43