cancel
Showing results for 
Search instead for 
Did you mean: 

I have application with Two layers first layer for live video and the second for the gui. the camera buffer in external sdram and the gui in internal ram but i have pixel distortion in gui. what might cause it?

MSale.1
Senior

I have doubt that the bandwidth of the internal memory which is 1536MB/s is too fast. i am using stm32h743 at 480 MHz and the AXI bus speed is 240MHz.

11 REPLIES 11
MSale.1
Senior

Problem was solved

Good =)

Can you explain how you solved it ? It might help others.

Thank you in advance.

/Alexandre

@Alexandre RENOUX​ 

Hi,

Sorry for late reply. i disabled the cache which solved the problem.

I have another question. how can i Create a loader for parallel nor flash to store the assets there?

Regards

Mahmoud

Hello,

Which IDE are you using ? Depending on the IDE the loader file will be different.

/Alexandre

@Alexandre RENOUX​ 

I am using the CUBE IDE

Mahmoud

You need to change the *.ld file in the STM32CubeIDE folder.

In this file you will see something similar to :

MEMORY
{
  DTCMRAM    (xrw)    : ORIGIN = 0x20000000,   LENGTH = 128K
  ITCMRAM    (xrw)    : ORIGIN = 0x00000000,   LENGTH = 64K
  RAM        (xrw)    : ORIGIN = 0x24000000,   LENGTH = 256K
  RAMFB      (xrw)    : ORIGIN = 0x24040000,   LENGTH = 768K
  FLASH      (rx)     : ORIGIN = 0x08000000,   LENGTH = 2048K
  OSPI	     (xrw)    : ORIGIN = 0x90000000,   LENGTH = 64M
// If not already written, add you memory with the origin address and the size
}

You create your memory label with the right origin address and size if it is not already written in the file.

Then further in the file, you will find something like :

ExtFlashSection :
  {
    *(ExtFlashSection ExtFlashSection.*)
    *(.gnu.linkonce.r.*)
    . = ALIGN(0x4);
  } >OSPI //modify this label if necessary

ExtFlashSection is the Section for the assets. Here it is stored in the OctoSPI Flash memory. Just modify the label to match your NOR parallel Flash.

/Alexandre

@Alexandre RENOUX​ 

Dont i need to write loader if the memory is not supported in the st link utility folder?

You are using ST Link Utility ?

If so, you should use STCubeProgrammer. ST Link Utility is not maintained anymore and we advise everyone to use the currently supported software CubeProgrammer. Can you see if it your NOR Flash is supported by CubeProgrammer ?

This memory is an external memory you added to your custom board, isn't it ?

/Alexandre

@Alexandre RENOUX​ 

Yes, i am using one in custom board but sadly its not supported. so if i used another flash which is supported can i use the loader in the cube programmer?