Hello @Omar_Anguiano ,
Thanks for your reply. Well i just inhibited the semc_init function and it works fine.
My application is executed on Qspi Flash with XIP and SDRAM is used to place heap as mentioned in the main question.
Well i'm facing another problem that is easy to reproduce :
Placing Stack and global data on SDRAM are making troubles. (However placing only heap on sdram works as charm).
Here is the steps to reproduce the problem:
- In the SDK project "evkmimxrt1170_nand_flash_management_cm7" i added the flag XIP_BOOT_HEADER_DCD_ENABLE=1 for using DCD init for SDRAM.
- I commented the line that reinitialize semc (SEMC_Init(SEMC, &config);) for not losing SDRAM ROM config.
- I placed Stack heap and global data on SDRAM :

- And then all the application goes wrong.
As i mentioned below adding only heap to sdram works for me.
Regards.