What part is M10AFV3N86B

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

What part is M10AFV3N86B

跳至解决方案
1,289 次查看
harrykoukoutos
Contributor I

We have received a part labeled M10AFV3N86B CTVCQE. It should be a MK10DX64VLF5, but, as we have a hardware fault trap accessing registers in the FTFL group we wonder if it is another part

标记 (1)
0 项奖励
回复
1 解答
1,117 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Harry,

    M10AFV should be MK10DX64Vxxx, just like this picture:

pastedImage_1.png

   For the package, you should check your hardware, If it is 48 LQFP (7 mm x 7 mm), then it is MK10DX64VLF5.

   You said when you access the FTFL register, you get hard fault, please tell me which register you access?

    Beside, please disable the global interrupt before your do the FTFL operation.

Wish it helps you!


Have a great day,

Kerry

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

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,118 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Harry,

    M10AFV should be MK10DX64Vxxx, just like this picture:

pastedImage_1.png

   For the package, you should check your hardware, If it is 48 LQFP (7 mm x 7 mm), then it is MK10DX64VLF5.

   You said when you access the FTFL register, you get hard fault, please tell me which register you access?

    Beside, please disable the global interrupt before your do the FTFL operation.

Wish it helps you!


Have a great day,

Kerry

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

0 项奖励
回复
1,117 次查看
harrykoukoutos
Contributor I

Thank you for your answer.

The code fragment is as follows:

FTFL->FCCOB0 = 0x80; //select the PGMPART command

FTFL->FCCOB1 = 0x00;

FTFL->FCCOB2 = 0x00;

.....

The trap happens on the second line. The tool is the KEIL system. Could it be that in this part the sequence cannot be executed from flash? On a bigger part it worked fine!

Yours,

Harry Koukoutos

0 项奖励
回复
1,117 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Harry,

 1. check your KEIL optimization level in the options

    Please modify your optimization level to none.

2. Disable the global interrupt before do flash operation, after the flash operation, you can enable it again.

3. Copy the FTFL launch command code to RAM.

Wish it helps you!


Have a great day,
Kerry

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

1,117 次查看
harrykoukoutos
Contributor I

Thank you, I will try these

Harry

0 项奖励
回复