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
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
Hi Alexey,
MKM33Z128ACLH5 and PMKM34Z128CLL5 have some differences.
You can find it from this picture:
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!
-----------------------------------------------------------------------------------------------------------------------
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!
-----------------------------------------------------------------------------------------------------------------------