cancel
Showing results for 
Search instead for 
Did you mean: 

STM32N6 Example to initialize all available ram using HAL or other functions without playing with low level settings or registers

TheImmortal
Associate II

Hello there,

I cant find full working example about ram initializations and relevant RISAF settings,

I need to get at least 2.5MB region for camera data capture, I found clk and power enable functions, but it does not working, when I increase memory size in .ld file the code does not run...

I guess I use correct clk and power registers:

__HAL_RCC_AXISRAMx_MEM_CLK_ENABLE();

RAMCFG_SRAMx_AXI_NS->CR &= ~RAMCFG_CR_SRAMSD;

I use FSBL and my code will fit there not reaching 512KB limit.

CubeMX do not have a lot of settings there, RISAF do not have default values or some help hints which there can help, and there is no memory map window like let say for H7 and other mcu's...

How to correctly initialize and use all the RAM ?

Thanks.

0 REPLIES 0