Skip to main content
Visitor II
March 23, 2024
Solved

How to configure external memory in NUCLEO-H745ZI

  • March 23, 2024
  • 7 replies
  • 5914 views

Hello Team,

I want to add external memory to NUCLEO-H745ZI board. In that board i have configured 2SPI, Ethernet (without RTIOS) and Timmer for that I need huge memory. This there any configuration or steps to add external memory to board.

 

Best Regards,
Gagan Gowda
 

    This topic has been closed for replies.
    Best answer by mƎALLEm

    1. Can you provide steps for STM32H745I-DISCO Board also how to create a project for SDRAM


    Use CubeMx and try to follow the parameters already available in the BSP.


    2. Why SDRAM cannot be configure with STM32H745ZIT6 (LQFP144 package)? Can you provide the reason?

    Already answered that question: 

    SofLit_0-1711438281019.png

     

    7 replies

    Super User
    March 23, 2024

    Unfortunately adding external RAM to Nucleo boards is too hard. For a fast external RAM you need a more expensive Discovery type board.  If you need storage for data files, use a standard SD-card (gigabytes of storage) or SPI/QSPI flash. The Discovery boards have external flash and SD as well.

    For the application features you've mentioned (Ethernet, SPI, timers without RTOS) the H745 has a plenty of internal memories. You don't need any external memories for that alone.

    Graduate II
    March 23, 2024

    Check some of the DISCO/DK boards as these have SDRAM and QSPI NOR FLASH

    Adding SDRAM or large parallel RAM is non-trivial, check the part data sheet and data manual to see if you have available pins to implement anything. QSPI NOR FLASH is generally viable via 6 pins on the connector headers.

    Technical Moderator
    March 24, 2024


    I want to add external memory to NUCLEO-H745ZI board. In that board i have configured 2SPI, Ethernet (without RTIOS) and Timmer for that I need huge memory.

    Just wanted to understand: why you need to add an external huge memory for just 2xSPI, Ethernet and a timer? 

    The MCU could do that natively (2MB of Flash/1MB of RAM) without adding any external memory unless you have another data to store and you didn't mention it.

    Meanwhile, as said above, adding external memory, mainly high speed memory such as SDRAM/QSPI,  is hard and restrictive because of the timing constraints and some layout requirements unless you need a low perf with memory access at low speed.

     

    ggowd.1Author
    Visitor II
    March 25, 2024

    Hi SofLit,

    I have integrated Nucleo-h745zi Board with AD7768 4-Channel. For every 0.25msec we are collecting 32k data when it comes to 1 sec data size should 126000 data (32-bit). we need 4 arrays of 126000 size (32 bit), so we need huge memory to store data. If not possible to add external memory, then could you suggest board compatible for the above requirement.

    PFA of warning memory where a single array of 126000 size is used.  

    Best Regards,
    Gagan Gowda

    Graduate II
    March 25, 2024

    Are you sure about requirments 1s buffer.? In normal situations buffers for ADC is around 5-50ms.

    Graduate II
    March 25, 2024

    Before playing with external RAM, I'd think about other strategies of how to record and handle data and buffers.

    Maybe reduce initial buffers size, but use more buffers, use DMA's double buffering, send data more frequently.

    Or is the 1 second storage an absolute must? If yes, why? Maybe check if the data sink (PC?) can run more smoothly to ensure buffers can be cleared often enough.

    Graduate II
    March 25, 2024

    Better check again which / if DMA can access which RAM areas, incl. external.

    Technical Moderator
    March 25, 2024

    Sorry If you need 32-bit mode with an LQFP package you need to select LQFP208

    SofLit_2-1711370599608.png

     

    Technical Moderator
    March 26, 2024

    As stated before, STM32H745IITX (LQFP176 package) can support only SDRAM up to 16-bit.

    Regarding your second question, the SDRAM driver of this board (BSP) is already available from here. But again only SDRAM in 16-bit mode is available with this board:

    SofLit_0-1711436534550.png

     

    ggowd.1Author
    Visitor II
    March 26, 2024

    Hi SofLit,

    1. Can you provide steps for STM32H745I-DISCO Board also how to create a project for SDRAM configuration in STMCUBE_IDE.

    2. Why SDRAM cannot be configure with STM32H745ZIT6 (LQFP144 package)? Can you provide the reason?

     

    Best Regards,
    Gagan Gowda

    mƎALLEmAnswer
    Technical Moderator
    March 26, 2024

    1. Can you provide steps for STM32H745I-DISCO Board also how to create a project for SDRAM


    Use CubeMx and try to follow the parameters already available in the BSP.


    2. Why SDRAM cannot be configure with STM32H745ZIT6 (LQFP144 package)? Can you provide the reason?

    Already answered that question: 

    SofLit_0-1711438281019.png