We have a board in production many years, using MK20DX256VLK7, no problems. Manufacturing built more boards using MK20DX256VLK10. FW boots with HardFault IRQ. I am currently tracking down with JTAG.
Question - Are DX7 & DX10 uPs interchangeable without any FW changes? Is the ONLY difference between these two uPs the Clock speed, 72MHz vs. 100MHz? Are there any register values that need to be changed for me to use DX10 (i.e. CLK registers maybe, LLWU Registers (this seems to be where hard fault occurs). Also, I am having hard time finding reference manual for these exact two uP variants. Can you please provide NXP links.
thanks,
Dan
Hi Pavel, good news. I added enabling of LLWU bit 28 in SCGC4 and code is running now. Code gets farther, is running, enters Low power mode (either STOP mode or VLLS1 mode. Upon waking up due to external stimuli, seems I hit another issue.
What may be very helpful, is there any way for NXP to provide a list of ALL Register differences between DX7 & DX10? This way we can for sure know if we are missing any other Register settings when running DX10 in code written for DX7.
thanks,
Dan
Hello, my name is Pavel, and I will be supporting your case, I have some questions about your project, what is the IDE that you are using? Is necessary to compile the project with the MCU target configured to avoid any unexpected issues.
Kinetis K20: 100MHz Cortex-M4 up to 512KB Flash (80pin) (nxp.com)
Kinetis K20: 72MHz Cortex-M4 up to 288KB Flash (80 pin) (nxp.com)
Best regards,
Pavel
Hi Pavel, Good to hear from you. We use Eclipse IDE. Good point you make, let me verify which uP is being selected in project settings. I did not think to change uP and recompile. I verified again today, FW runs fine when using DX10 uP if I comment out any code dealing with LLWU configuration. This same FW runs fine on DX7 without commenting out LLWU related lines of code.
I will look into your question and reply back here.
thanks,
Dan
Hello, these are the parts DN and DX with Z parts.
There is not enough information about the LLWU from your case but reviewed the RM about those MCUs, and maybe the hard fault is occasioned by the Clock Gate.
But on the RM of MK20DX256VLK7 does not have that information.
Could you elaborate further about the LLWU? How are you set up this?
Best regards,
Pavel
Hello, I recommend using a separate project for those MCUs, that´s not the only difference the MCG in the major time is not similar, and this will not change in one line only.
Maybe this app note could help you understand the differences, but please do not use the same project for different MCUs in your application.
nxp.com/docs/en/application-note/AN4445.pdf
Best regards,
Pavel
Hi Pavel, I have been going thru AN4445.PDF. On first page, the table list part numbers and none of them = MK20DX256VLK7 vs. MK20DX256VLK10. How do we know AN4445 applies to my processors? Title of AN4445 is "Kinetis 100MHz Rev 1.x to 2.x Migration Guide".
thanks,
Dan
Pavel, From App Note AN4445 you shared, is the rev 1.X of DX10 basically equivalent to DX7? Then DX10 Rev 2.X made a number of additions, changes, deletes?
"This document shows differences and describes the details of migrating from Kinetis 100 MHz Rev. 1.x to Rev. 2.x."
Hello, I apologize if my last message was not clear, and sorry I confused the MK20DX256VLK10 with MK20DX256ZVLK10.
I attached the app note because I think the MCU has a Z as the initial part.
Let me know more about if you separate the project.
Best regards,
Pavel
Pavel,
Specifically,
1. I need to know all differences between MK20DX256VLK7 vs. MK20DX256VLK10. You pointed one out to me up above. Are there more differences between these two processors.
2. Are there any more die revs planned for either of these two parts?
3. Can you provide list of all die revs for these two parts and any App Notes spelling out all the differences between each die rev.
If you can answer these specific three questions, that will help us to proceed.
PS - So I believe now the previous AN4445.PDF you provided is of no interest to me. because it pertains to the "Z" version of DX10. Is this correct?
thank you,
Dan
Hello, sorry for the late response.
PS - So I believe now the previous AN4445.PDF you provided is of no interest to me. because it pertains to the "Z" version of DX10. Is this correct?
Yes, my mistake.
I recommend opening an example for the new MCU to use the configuration of the MCG and migrate the common module.
I´m afraid no app notes or documents like this.
Best regards,
Pavel
I recommend opening an example for the new MCU to use the configuration of the MCG and migrate the common module.
- What examples are you referring to pavel? Can you please provide a link.
thanks,
Dan
Hello, here you can download the SDK SDK Builder | MCUXpresso SDK Builder (nxp.com)
The MCUXpresso is built on the highly popular Eclipse platform.
Best regards,
Pavel
OK Thanks, I will give it a look. Seems NXP would make things easier for developers or engineers supporting existing fielded products to determine in an easy manner differences between a code base written for DX7 vs DX10, rather than read 1400 page RM or port a new SW support package into their FW code base.
Hello, thanks for your comments this will be taken into consideration, it would be helpful to have a migration document about this.
Best regards,
Pavel