Hi sir,
I have used code shared by you. And i am able to write and read back code from flash memory.
I have integrated this code with my application code which consists of lwip code, App wizard GUI Code.
When i am testing the integrated code with my application, following observed:
a. Flash operation cycle (Cycle means Flash Erase,Write,Read back data) executing intermittently i.e.(sometimes worked around 200 cycles i.e. 30 minutes, sometimes failed after 50 cycles).
b. While testing integrated code, errors are coming in flash_page_program() function,
sometimes on flash_init() function, sometimes continuously showing the error
"Bus Stalled/Executing Operation normally" Error is showing.
My application Memory Sequence follows as:
<memory can_program="true" id="Flash" is_ro="true" size="0" type="Flash"/>
<memory id="RAM" size="512" type="RAM"/>
<memoryInstance derived_from="Flash" driver="MIMXRT1050_SFDP_QSPI.cfx" id="BOARD_FLASH" location="0x60000000" size="0x4000000"/>
<memoryInstance derived_from="RAM" id="BOARD_SDRAM" location="0x80000000" size="0x1e00000"/>
<memoryInstance derived_from="RAM" id="NCACHE_REGION" location="0x81e00000" size="0x200000"/>
<memoryInstance derived_from="RAM" id="SRAM_DTC" location="0x20000000" size="0x20000"/>
<memoryInstance derived_from="RAM" id="SRAM_ITC" location="0x0" size="0x20000"/>
<memoryInstance derived_from="RAM" id="SRAM_OC" location="0x20200000" size="0x40000"/>
My Requirement:
--------------------------------------------------
Application is having lwip code to receive the UDP packet from external system through Ethernet application, and Appwizard code to display the GUI & update the values received from the UDP packet to GUI parameters.
Please clarify the following:
1. What is linker script and how it will work?
2. How to resolve the my issue.
Please find the attachments of integrated code & independent flash code.
Mobile: 9620620953