Hi ,
In my workspace i implemented Command sequence function as per the suggestion like below__attribute__((section (".code_ram")))
static rb_status_t rbFlash_DRV_CommandSequence();
static rb_status_t rbFlash_DRV_CommandSequence()
{
rb_status_t ret = E_OK; /* Return code variable */
/* Clear CCIF to launch command */
FTFC->FSTAT |= 0x80;
while (0U == (FTFC->FSTAT & 0x80))
{
}
/* Check if an error is occurred */
if ((FTFC->FSTAT & (0x1 | 0x10 | 0x20 | 0x40)) != 0U)
{
ret = E_NOT_OK;
}
return ret;
}
but i'm seeing reset occurring when control hit this function.
if this function is part of P flash then at least if i do step operation in debug mode i don't see any reset and even EEPROM partition is happening.
i'm using the same linker file and startup files provided by the S32 design studio for S32K144.
Solved! Go to Solution.
Hi,
Can you share the project so that I can test it on my side?
Please make sure the function does not read any flash resources.
BR, Daniel
Hi,
Can you share the project so that I can test it on my side?
Please make sure the function does not read any flash resources.
BR, Daniel
Due to interrupt while program partitioning is happening control was jumping to p flash.
thanks for your support