Skip to main content
Pratik Panchal
Associate
July 10, 2018
Question

How to calculate supported external SRAM size for STM32L Microcontroller ?

  • July 10, 2018
  • 2 replies
  • 1932 views
Posted on July 10, 2018 at 15:55

#stm32-l4 #sram
This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
July 10, 2018
Posted on July 10, 2018 at 17:00

Determine if you are going to use an 8-bit or 16-bit data bus, and then look at how many address bit you're using

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Pratik Panchal
Associate
July 11, 2018
Posted on July 11, 2018 at 11:41

Thanks for a quick response here.

0690X00000602NuQAI.png

as per this memory mapping diagram below is to consider maximum SRAM calculation.

For FMC Bank 3 

0x1000 0000 address available

AddressLine is 16 bit

Dataline is 16bit

Now how I can calculate total supportable SRAM?

Tesla DeLorean
Guru
July 11, 2018
Posted on July 11, 2018 at 17:30

Depending on the bank you're looking at 64MB or 256MB, probably more than you can afford to implement externally.

It's is likely to also be constrained by the pins available on the specific device you're using, and you don't specify that.

You also don't really specify what you're attempting to achieve in your design, and that's going to drive appropriate chip choices.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Pratik Panchal
Associate
July 13, 2018
Posted on July 13, 2018 at 16:49

I am going to use STM32L476VGT6 Controller, Now I need to calculate how much external SRAM memory can be interfaced with

STM32L476VGT6

.

I am going to use 16 data lines.

0x10000000 address available and data bits is 16.

For memory calculation

= 0x10000000  x 16  (0x10000000 converted to decimal)

= 268435456 x 16 

= 4294967296 bits

= 4194304 Kbits

= 512 MBytes 

So we can add up to 512MB SRAM external to

STM32L476VGT6.

Please Correct me if something wrong calculation is done.