2020-05-11 08:49 AM
I am trying to program an STM32H7x3 device. My memory device (AS4C16M16SA) has address bits A0 - A12 and seems to need each of the 13 signals for access. However, when I go into STMCubeMX there is a max on SDRAM of 12 address bits.
It seems like I should be able to assign the A12 address to pin PG2 based on Table8 in the DS12117 product document.
How can I override STMCubeMX to allow me to connect the full address bus?
2020-05-11 09:02 AM
I'll flag the post.
Check PG2 isn't committed to some other function.
Worse case let it auto-gen the code, and then selectively edit it to add the pin, and address width configurations.
2020-05-11 09:38 AM
Good point, I can just wire to the pin and then clean up the auto-gen code. Can you confirm that will work with the FMC? I'd be worried the controller couldn't interface with the extra pin - but that doesn't really make sense because there are larger width memory chips that need 16 bit address.
The PG2 pin isn't required for anything in particular.
Thanks
2020-05-11 09:51 AM
Guessing there is a rule related to lower pin count devices.
@Imen DAHMEN @Amel NASRI @Khouloud GARSI can you review this for the STM32H753IIK [UFBGA176] rules/templates, thanks.
2020-05-11 09:54 AM
I see in the user manual that the diagrams call out for 13 bit address bus line:
2020-05-11 10:13 AM
Yes, and I'm sure that works, perhaps use the HAL libraries directly rather than getting the dumb code robot involved.
2020-05-13 06:31 AM
Hello @DReis.1 ,
Could you please check with the latest CubeMX version ? Max bits 13 on my side.
Thanks
Khouloud
2020-05-13 06:35 AM
@DReis.1