Skip to main content
BKOSI.1
Associate III
September 11, 2020
Solved

STM32CubeAI : External memories

  • September 11, 2020
  • 2 replies
  • 1135 views

Hi,

We are working to an ANN development on TensorFlow, this ANN works on computer and not on MCU.

During implementation throught CubeMX, an estimation of RAM and Flash permit to select an appropriate MCU.

My question is, ANN implementation is only available if we use internal RAM and Flash or we can run ANN on external RAM ?

BR,

    This topic has been closed for replies.
    Best answer by fauvarque.daniel

    On the network view you have an additional popup window (with the 0693W000003RRTaQAO.png button) where you can ask to use external memories.

    On STM32 known boards, if there is external memory, it will automatically insert the BSP code to use that memory in the generated code.

    If you use external memory you can ignore the message that the amount of RAM / Flash required is bigger than the one availbale

    When using external memory, the weights are located in external memory and a network_data.bin file is generated so you can flash it on the external memory

    The same applies for external RAM, you can put the activation buffer in external RAM

    Regards

    Daniel

    2 replies

    fauvarque.daniel
    fauvarque.danielBest answer
    ST Employee
    September 11, 2020

    On the network view you have an additional popup window (with the 0693W000003RRTaQAO.png button) where you can ask to use external memories.

    On STM32 known boards, if there is external memory, it will automatically insert the BSP code to use that memory in the generated code.

    If you use external memory you can ignore the message that the amount of RAM / Flash required is bigger than the one availbale

    When using external memory, the weights are located in external memory and a network_data.bin file is generated so you can flash it on the external memory

    The same applies for external RAM, you can put the activation buffer in external RAM

    Regards

    Daniel

    BKOSI.1
    BKOSI.1Author
    Associate III
    September 16, 2020

    Hi,

    Thank you for this precision,

    Regards,

    Benjamin