cancel
Showing results for 
Search instead for 
Did you mean: 

External RAM for stm32 eval2 board

pncardella
Associate II
Posted on July 30, 2014 at 14:14

I am working on a project on the stm32 eval2 board that requires about 600 kB of RAM.  Do I need to add external memory to the FMC bus? Or is all the memory I need already provided with the board.  I do not understand this very well, I don�t think, so any help would be appreciated. Also I am using keil v5 and c++.

#eval #stm32 #keil #c++
5 REPLIES 5
Posted on July 30, 2014 at 16:01

[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/RAM%20in%20stm32%20eval%20board&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https%3a//my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx&currentviews=32]Previous Thread

Are you a PC programmer? What kind of computer/engineering skills are you bringing to the party? Trying to gauge here what knowledge we can leverage when explaining things in a manner you will most easily grasp.

Do you have any colleagues with embedded experience?

Do we agree we're talking about the

http://www.st.com/web/en/catalog/tools/PF259094

board?

Have you reviewed the User Manual and Schematic for the design?

Have you observed the chips on the board, that are represented to be memory chips?

The code to enable the external memory bus (FMC/FSMC), and the chips attached to it, will generally be found in the system_stm32f4xx.c file tailored to the board, and the examples for it. Have you look at that?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on July 30, 2014 at 16:14

0690X0000060MmbQAE.gif

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
pncardella
Associate II
Posted on July 31, 2014 at 11:42

I do not have much experience and I do not have any colleagues with embedded experience unfortunately.

I have looked at the schematic and the memory map, but I am having a hard time figuring out where to initialize the RAM.

pncardella
Associate II
Posted on July 31, 2014 at 13:57

From what I am understanding from the memory map (attached), I need to add some external RAM to meet my needs because all of the memory set aside for RAM is being used.

________________

Attachments :

ScreenHunter_001.jpg : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I11P&d=%2Fa%2F0X0000000bkF%2FOfXEFsWeXaF88kRB4Z2R2j2oda38_8B3Od1vOD1JT2M&asPdf=false
Posted on July 31, 2014 at 16:59

Good grief, this is getting to be unnecessarily complicated.

The board should have 32 MB of SDRAM memory situated at 0xC0000000 in the memory map. This memory would need to be initialized (external bus, pins, control, chip) by code in system_stm32f4xx.c -> SystemInit() -> SystemInit_ExtMemCtl()

Look at some FMC/FSMC example for your board

STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Project\STM32F4xx_StdPeriph_Examples\FMC\FMC_SDRAM

STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Project\STM32F4xx_StdPeriph_Examples\FMC\FMC_SRAM

STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Project\STM32F4xx_StdPeriph_Examples\FMC\FMC_NOR

Board Support Packages

STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Utilities\STM32_EVAL\STM324x9I_EVAL

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