S32K144 Program Partition

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K144 Program Partition

跳至解决方案
3,916 次查看
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 项奖励
回复
1 解答
3,904 次查看
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

在原帖中查看解决方案

0 项奖励
回复
3 回复数
3,905 次查看
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

0 项奖励
回复
3,900 次查看
PradeepAithal
Contributor II

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

thanks for your support

0 项奖励
回复
3,915 次查看
PradeepAithal
Contributor II
0 项奖励
回复