Hi @mesutkilicmak,
The below API functions have to be placed into SRAM (".ramcode" section), as show below.
- C40_Ip_MainInterfaceSectorErase
- C40_Ip_MainInterfaceSectorEraseStatus
- C40_Ip_MainInterfaceWrite
- C40_Ip_MainInterfaceWriteStatus
Then, the core must not access the block from interrupts. The interrupts must be either masked (PRIMASK = 1), or the vector table as well as the ISR() functions and the data the ISR() access must not be in the block.
C40_Ip.h.
Before the declaration:
#if ( 1 == C40_RAM_CODE_ENABLE
/* ram code start */
#define FLS_STOP_SEC_CODE
#include "Fls_MemMap.h"
#define FLS_START_SEC_RAMCODE
#include "Fls_MemMap.h"
#endif
After the declaration.
#if ( 1 == C40_RAM_CODE_ENABLE )
/* ram code end */
#define FLS_STOP_SEC_RAMCODE
#include "Fls_MemMap.h"
#define FLS_START_SEC_CODE
#include "Fls_MemMap.h"
#endif
if #define C40_RAM_CODE_ENABLE 1, the above four flash API functions are placed in the ".ramcode" section.
Regards,
Daniel