cancel
Showing results for 
Search instead for 
Did you mean: 

Flash ERASE/Program does not work if i call HAL_SDRAM_Init(); function

Vprabhu
Associate II

I have trying to implement the in application programming where as to hold the large binary of the application which i need to program into internal flash i use Rx_Buffer mapped in external SDRAM,so when i call HAL_SDRAM_Init() function the flash erase/program does not work other wise when i use buffer pointing in internal RAM works fine(for small application bin)

only the function HAL_SDRAM_Init() causes this problem , if i comment it out everything is fine, please if any one can help me out on this.

Thanks in advance...

3 REPLIES 3

Which STM32 specifically are we talking about? A custom board?

Not sure I'm aware of any specific issues related to internal FLASH vis external SDRAM. What is the exact nature of the failure? Do you get a hard fault, does the wrong data get written? ​

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Vprabhu
Associate II

I am using STM32F429IG MCU in my custom board, the problem is the that HAL_FLASHEx_Erase() does not erase the flash and HAL_FLASH_Program () does not program the flash.

Vprabhu
Associate II

Any answer please