S32K144 flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K144 flash

781 Views
fancycang
Contributor I

Hi

On the S32DS2.2 for ARM platform, the flash module can control the internal flash erasure and writing of the MCU. But in S32DS3.5, the flash module cannot be used for operation. My specific code:

 /*test flash demo start*/
    uint8_t bufferii[8] = {1,2,3,4,5,6,7,8};
    volatile uint8_t readbuoo[8] = {0};
    /* Declare a FLASH config struct which initialized by FlashInit, and will be used by all flash operations */
    flash_ssd_config_t flashSSDConfig;
 
 
    // /* Disable cache to ensure that all flash operations will take effect instantly, this is device dependent */
//        MSCM->OCMDR[0u] |= MSCM_OCMDR_OCM1(0x3u);
//        MSCM->OCMDR[1u] |= MSCM_OCMDR_OCM1(0x3u);
    FLASH_DRV_Init(&Flash_InitConfig0,&flashSSDConfig);
    INT_SYS_DisableIRQGlobal();
 
    FLASH_DRV_EraseSector(&flashSSDConfig,0x10000000,4096);
    INT_SYS_EnableIRQGlobal();
 
    INT_SYS_DisableIRQGlobal();
    FLASH_DRV_Program(&flashSSDConfig, 0x10000000,8,bufferii);
 
    INT_SYS_EnableIRQGlobal();
 
uint8_t* readbuff;
readbuff = 0x10000000;
for(uint8_t i=0;i<8;i++)
{
   readbuoo[i] = *(uint32_t*)(readbuff+i) ;
}
FLASH_DRV_EraseSector this function is unavailable
0 Kudos
Reply
4 Replies

767 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Have you tested the flash_partitioning_s32k144 of S32K1 SDK RTM 4.0.3 in S32DS v3.4?

flash_partitioning_s32k144 S32SDK_S32K1XX_RTM_4.0.3.png

Best Regards,
Robin

0 Kudos
Reply

765 Views
fancycang
Contributor I
Hi Robin
I try this demo ,and i only debug flash and start shakedown test.SDK RTM 4.0.1 flash_partitioning_s32k144 S32DS v3.5
There will be an error as a result, and I am currently investigating the cause of the problem. During my debugging process,i find the function while error
ret = FLASH_DRV_SetFlexRamFunction(&flashSSDConfig, EEE_ENABLE, 0x00u, NULL);
internal :
/* Calling flash command sequence function to execute the command */
ret = FLASH_DRV_CommandSequence(pSSDConfig);
Best Regards,
cang
0 Kudos
Reply

760 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

When testing this project, please pay attention to the highlighted Note in my last reply.
1. There is S32K1 SDK RTM 4.0.3 with S32DS v3.4. Please do not use SDK RTM 4.0.1 in S32DS v3.5.
2. According to the currently available information, we don’t have any plan to integrate S32K1 SDK 4.0.3 into S32DS 3.5 or above version.
3.In the future, only the S32K1 RTD version will be updated and the SDK version will no longer be updated. If you have just started project development, it is recommended to use the latest S32K1 RTD 2.0.0 with S32DS v3.5.

0 Kudos
Reply

700 Views
fancycang
Contributor I
thanks
i will try
0 Kudos
Reply