KL03 flsl_flash error

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

KL03 flsl_flash error

跳至解决方案
1,101 次查看
Lupo
Contributor III

Hello,

developing with a KL03 processor using the KDS v3.00 with KDSK 1.20 and using the flsl_flash component I am facing  a strange error.

 

Stepping manually (F5/F6) through the instructions of the function FlashCommandSequence() in file FlashCommandSequence.c, the flash memory gets correctly written or erased but if program is running normally, processor does never go over the following loop and resets:

while(0x0U == (REG_BIT_GET(temp, FTFx_SSD_FSTAT_CCIF)))     /* wait till CCIF bit is set */

 

Processor uses the internal clock and watchdog is disabled; before starting the flash instruction CCIF is high and ACCERR and FPVIOL flags are low; adding delays does not help.

 

What else? Thanks for any suggestion, Michael

标签 (1)
0 项奖励
回复
1 解答
958 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Michael Hauptman,

      Did you relocate your FlashCommandSequence function to  the RAM by using  g_FlashLaunchCommand = (pFLASHCOMMANDSEQUENCE)RelocateFunction((uint32_t)ramFunc , 0x100 ,(uint32_t)FlashCommandSequence);?

    Besides, please attach your problem project, I need to check it.

Waiting for your reply


Have a great day,
Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
2 回复数
959 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Michael Hauptman,

      Did you relocate your FlashCommandSequence function to  the RAM by using  g_FlashLaunchCommand = (pFLASHCOMMANDSEQUENCE)RelocateFunction((uint32_t)ramFunc , 0x100 ,(uint32_t)FlashCommandSequence);?

    Besides, please attach your problem project, I need to check it.

Waiting for your reply


Have a great day,
Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
958 次查看
Lupo
Contributor III

Hi Jingjing,

you are right! I am not fully confident with the KDSK and I missed that instruction...

Btw the classic PEx in KDS or CW is very, very, better than the KDSK version to help developpers!

Many thanks, Michael

0 项奖励
回复