Hello,
In my application, i am using NOR Flash, which is AT25SF321B. I want to try to execute simple functions in "flexspi_nor_polling_transfer_cm7". Set same configs into my project to execute but while initializing FlexSpi, my app crushed.
I shared my config and driver folders. Can you help me to find what is wrong?
Solved! Go to Solution.
Hello @Bkaya
While the flash is being written or deleted, it must not be accessed in any other way. In particular, this means no code execution. Executing the FlexSPI code from the RAM is a good idea, but don't forget the constants from the '.rodata' section, which is also located in the flash. However, no other code may be executed, especially interrupts can cause problems.
Regards
Hi @Masmiseim ,
Yes, i execute the code from the external flash(XiP). I have external 4MB flash and 32MB ram .
I write linker script because but not same in example because datas is bigger than SRAM_OC1 in my app. After that ı debug the code but crashed after flex_spi_nor_flash_init().
So my questions are;
1) I set .bss section to my external ram as you can see above but example set them into SRAM_DTC_cm7 section. is this can be reason of crash?
2) I linked flexspi_nor_flash_ops.c file to SRAM_OC1 so why does not my code work?
3) Can i debug step by step this example? Or should i run the code and follow steps from console?
Best Regards.
Hello @Bkaya
While the flash is being written or deleted, it must not be accessed in any other way. In particular, this means no code execution. Executing the FlexSPI code from the RAM is a good idea, but don't forget the constants from the '.rodata' section, which is also located in the flash. However, no other code may be executed, especially interrupts can cause problems.
Regards
Hello @Bkaya,
do you execute the code from the flash (XiP)?