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
Solved! Go to Solution.
Hi Harry,
M10AFV should be MK10DX64Vxxx, just like this picture:
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!
-----------------------------------------------------------------------------------------------------------------------
Hi Harry,
M10AFV should be MK10DX64Vxxx, just like this picture:
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!
-----------------------------------------------------------------------------------------------------------------------
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
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!
-----------------------------------------------------------------------------------------------------------------------
Thank you, I will try these
Harry