if (STATUS_C40_IP_SECTOR_PROTECTED == C40_Ip_GetLock(targetSecNum)){C40_Ip_ClearLock(targetSecNum, FLS_MASTER_ID);} /* Erase sector */C40_Ip_MainInterfaceSectorErase(targetSecNum, FLS_MASTER_ID);do{delay = MY_DELAY;while(delay--); C40Status = C40_Ip_MainInterfaceSectorE...
Solved: Hello After using S32DS to generate the C40_Ip component, we found the following macros in the C40_Ip_Cfg.h file: #define
1,Add __attribute__((section (".acfls_code_ram"))) to void C40_Ip_MainInterfaceWriteLogicalAddress(uint32 Address) function of C40_Ip.c SDK file. __attribute__((section (".acfls_code_ram"))) void C40_Ip_MainInterfaceWriteLogicalAddress(uint32 Address,PFLASH_Type * C40_Ip_pPFlash...
if(C40_Ip_Compare(startaddr, dlen, Fls_DATA_BUFF) == STATUS_C40_IP_SUCCESS) { //update the return status as true retval = true; } } //lock the flash memory once again FlsHdlr_Sector_Lock(startaddr,dlen); return retval; } Thank you in Advance an...
However, in the C40_iP_Cfg.h file: Starting address: 0x1000_0000U (same as datasheet) End address: 0x1000_FFFFU (only up to 7th sector, 64KB limit) Is there any configuration setting or register that needs to be modified to enable access to the remaining 64KB (sec...
When I looked at the C40 function, I found that there is such a judgment in the function C40_Ip_CheckLockDomainID: if ((uint32)VirtualSector != FLS_MAX_VIRTUAL_SECTOR)This judgment means that the parameter VirtualSector passed in cannot be equal to FLS_MAX_VIRTUAL_SECTOR, but the va...
if (STATUS_C40_IP_SECTOR_PROTECTED == C40_Ip_GetLock(targetSecNum)){C40_Ip_ClearLock(targetSecNum, FLS_MASTER_ID);} /* Erase sector */C40_Ip_MainInterfaceSectorErase(targetSecNum, FLS_MASTER_ID);do{delay = MY_DELAY;while(delay--);...
When I looked at the C40 function, I found that there is such a judgment in the function C40_Ip_CheckLockDomainID: if ((uint32)VirtualSector != FLS_MAX_VIRTUAL_SECTOR)This judgment means that the parameter VirtualSector passed in cannot be equal to FLS_MAX_VIRTUAL_SEC...
https://community.nxp.com/t5/S32K/S32K344-C40-IP-Hardware-Fault-Problem/td-p/1697432 Place this function to SRAM too: C40_Ip_MainInterfaceHVJobStatus() Check the .map file to confirm the functions are in SRAM. Regards, Daniel 0 Kudos Reply 11-28-2024 05:15 PM 95...
1. The C40 driver is a non-AUTOSAR IP layer. You can refer to the 02: S32K3xx Real-Time Drivers (RTD) training and chapter 21 (Embedded Flash Memory c40asf) from the S32K3XX reference manual. 2. Yes, the FEE and FLS drivers are derived from MCAL. 3. Depending on which AUTOSAR...