S32K144 Program Partition

cancel
Showing results for 
Search instead for 
Did you mean: 

S32K144 Program Partition

Jump to solution
41 Views
PradeepAithal
Contributor II

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.

0 Kudos
1 Solution
29 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

View solution in original post

0 Kudos
3 Replies
30 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

View solution in original post

0 Kudos
25 Views
PradeepAithal
Contributor II

Due to interrupt while program partitioning is happening control was jumping to p flash.

thanks for your support

0 Kudos