cancel
Showing results for 
Search instead for 
Did you mean: 

How do i assign FMC_a12 when stmcubemx limits me SDRAM to just 12 bits?

DReis.1
Associate II

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?

0693W000000XDx7QAG.jpg0693W000000XDx2QAG.jpg

7 REPLIES 7

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

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.0693W000000XECqQAO.jpg

Thanks

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

I see in the user manual that the diagrams call out for 13 bit address bus line:

0693W000000XEGdQAO.jpg

Yes, and I'm sure that works, perhaps use the HAL libraries directly rather than getting the dumb code robot involved.

0693W000000XEMRQA4.jpg

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Khouloud ZEMMELI
ST Employee

​Hello @DReis.1​ ,

Could you please check with the latest CubeMX version ? Max bits 13 on my side.

Thanks

Khouloud

Khouloud ZEMMELI
ST Employee

​@DReis.1​ 0693W000000XNEWQA4.png