cancel
Showing results for 
Search instead for 
Did you mean: 

X-Cube-AI OCTOSPI External Memories

SBébi.1
Associate II

Hi,

 

I'm using the B-U585I-IOT02A development board and I have some problems using external memories with AI. The board has an external PSRAM memory in OCTO SPI and a NOR FLASH in OCTO SPI (quad?) but this seems impossible to use with X-Cube-AI. I am stuck today and I cannot find the information through the various documents that I have seen on internet.

 

1. Is it possible to use OCTO-SPI PSRAM to extend RAM for AI ?

On ST cloud developer, all boards with OCTO-SPI PSRAM seem not to work to expand RAM. On the AI ​​configuration window in CubeMX, it is impossible to choose PSRAM memory because it's not  "physical" memory.

I made different attempts, I set the PSRAM in Memory Mapped Mode, I assigned it in the linker, I assigned the AI ​​activation buffer on the PSRAM, but in addition to being slow, the AI results are incorrect. I know there is a time between a valid write and a read, is this the problem ?

 

2. How to program the model binary into OCTO-SPI External NOR Flash ?

The "Getting started with X-CUBE-AI Expansion Package for Artificial Intelligence (AI)" (UM2526) said "The network_data.bin file must be programmed on the external Flash memory on the board manually
using a tool such as STM32CubeProgrammer (STM32CubeProg)".

I configured my OCTO External NOR Flash in Memory Mapped Mode, however it seems impossible to send the binary through "STM32CubeProgrammer", writing does not work leaving all bytes at 0.

 

Thanks,

0 REPLIES 0