Slower acces to SRAM2 and CCM SRAM than SRAM1 on STM32G473
Hi,
I have an STM32g473 with 120kb or RAM, running at 169,75MHz.
I have some image data stored starting at 0x2000_0000 which comprise of a palette of 235 colors in 00rrggbb format (1 word per color), follower by 304 lines of 370 pixels (one byte each, which is used as an index in the palette to get RGB value.)
The data are copied in RAM to avoid wait states when loading them from flash, which mean most is in SRAM1 but the last 85 lines are in SRAM2 and MCC SRAM. The code is in flash.
The first line of data display correctly, but the last 85 lines get one extra cycle per pixel (most probably due to reading the data).
I could not find anything in the RM0440 that explains where this one cycle penalty come from. The only peripheral I use in addition to SRAMs and Flash (for the code) are the DACs and one GPIO (the gpio is not accessed during the loop that sends the pixels and get the penalties)
Can someone help understanding this?
