MKM33 and MKM34 code compatibility

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MKM33 and MKM34 code compatibility

1,350 Views
alexeypanteleyc
Contributor II

Hello!

We have the prototypes based on MKM33, but the software is developed for MKM34. When we flash the prototype with the software, sometimes it works good, but sometimes not (default_srt, or the program counter goes to the middle of nowhere).

Could you please advise if MKM33 and MKM34 are software compatible? As far as I know, the difference between the MKM33 and MKM34 is only in the number of AFE channels. We use the channels 0 and 2 in our project, which are presented in the both MCUs. The code optimization is off. What could be the reason of the problem? Or we need to rebuild the software anyway?

Thanks and regards,

Alexey

Labels (1)
0 Kudos
Reply
3 Replies

1,123 Views
alexeypanteleyc
Contributor II

Hi, Jingjing!

The part in the prototype: MKM33Z128ACLH5 IN29N CTZD1438A

The part we have firmware for: PHOTON PMKMZ128CLL5 ON74G QQAA1239J

While debugging, we see that the MCU goes from arch_delay(1000000l) function to default_srt.

If we change the value, for example for 100, the program counter goes to some unpredictable place.

If we comment this function, the issue occurs in other different lines.

Thank you,

Alexey

0 Kudos
Reply

1,123 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Alexey,

    MKM33Z128ACLH5  and PMKM34Z128CLL5 have some differences.

   You can find it from this picture:

pastedImage_1.png

pastedImage_2.png

    So, please check your code, change the header file to KM33, and check the code, whether you operate the PIN and module which KM33 don't have?

    Besides, check the clock system, whether the code clock system configuration is the same as your board? Eg, if use the external crystal, the code configuration should meet your board demand, or use the internal IRC.

   You can comment the code in your main function, modify it as the simplest, then it will help you to check the root problem.


Have a great day,
Jingjing

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

0 Kudos
Reply

1,123 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Alexey,

   Could you provide the full name of KM33 and KM34 which you are using?

   Then I can help you to check the difference.

    Besides, you can debug your code, when the code have problem, which line code caused that problem?

    You can refer to this post to check it:

https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/ 

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 Kudos
Reply