problem using the software of the Three-Phase Power Meter Reference Design

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

problem using the software of the Three-Phase Power Meter Reference Design

962 Views
MSCHOI
Contributor I

I downloaded the THREE-PHASE-POWER-METER-SOFTWARE from https://www.nxp.com/design/design-center/development-boards-and-designs/THREE-PHASE-POWER-METER and compiled it with IAR 7.8. After resolving the build errors, I was able to successfully download the program to the MCU.

However, in Debug mode, pressing the RUN button causes the program to stop and the debugger to disconnect. Stepping through the code shows that it falls into an infinite loop at the point indicated in the figure. Additionally, when the IRTC runs, the debugger connection is also lost.

How can this issue be resolved?

MSCHOI_0-1755653464787.png

MSCHOI_1-1755654138158.png

 

0 Kudos
Reply
11 Replies

905 Views
Celeste_Liu
NXP Employee
NXP Employee

Hello @MSCHOI ,

Thanks for contacting us.

Could you tell me which board you are using? Additionally, what is the SCH version of the board? This can be found on the label attached to the board. Perhaps you could also take a photo of your board and upload it.

Moreover, it would be very helpful if you could let me know how you resolved the build errors.

BRs,

Celeste

0 Kudos
Reply

892 Views
MSCHOI
Contributor I

Hello Celeste_Liu,
I am downloading the firmware to a PCB that I designed based on the reference design.
I have attached the software and the schematic of my PCB.
At this stage, I am only trying to check whether the reference firmware runs without stopping, not verifying other functions of the PCB.
Later, I plan to modify the firmware to suit my needs. However, after compilation, the software simply stops running.

0 Kudos
Reply

855 Views
Celeste_Liu
NXP Employee
NXP Employee

Hello @MSCHOI ,

Thanks for your update. The reason is that you are using the MKM34Z128ACLL5, while the software was written for the KM34Z256. These two are not based on the same die. Please refer to their reference manuals. To migrate the software to the KM34Z128, you need to replace the header files and make modifications in appropriate places.

MKM34Z128ACLL5 RM: MKMxxZxxACxx5RM

KM34Z256 RM:KM34P144M75SF0RM

Have a nice day.

BRs,

Celeste

0 Kudos
Reply

848 Views
MSCHOI
Contributor I

Hello Celeste,

That’s fine.

Although the schematic uses MKM34Z128ACLL5, since this is my first time using this series, I first mounted KM34Z256 on the PCB to match the firmware.

They are pin-to-pin compatible, so there is currently no issue with the MCU.

I apologize for not explaining this earlier. Could you provide the IAR project in debug mode instead of release?

Having a debug IAR project for KM34Z256 would make my work much easier.

0 Kudos
Reply

835 Views
Celeste_Liu
NXP Employee
NXP Employee

Hello @MSCHOI ,

I need to contact the internal team to see if they can provide it. According to our policy, you need to provide the following information.

End Application Name
Project Annual Volume
BRs,
Celeste
0 Kudos
Reply

746 Views
MSCHOI
Contributor I

Hello Celeste,

Over the weekend, I've been trying to run the demo software.

I installed IAR version 7.4 and tried to download the demo software without making any modifications. The only settings I changed were selecting the J-Link debugger and checking the "Use Flash loader" option.

I'm attaching the project which I just compiled. It compiled without any errors or messages.

However, when I attempted to download it, a warning message about a stack plugin appeared. Then, when I pressed the RUN button, the debugger disconnected, just as it did before.

I believed that the MKM34Z256CLL7 (used in the SCH-28709_A schematic I referenced) and the MKM34Z256VLL7 (which is on my PCB) were compatible. Could you please confirm if this is correct? I don't have an MKM34Z256CLL7 on hand, so I was unable to test it myself.

Could you please help me with this issue?

Thank you.

Best regards,

MSCHOI_0-1756120007942.pngMSCHOI_1-1756120066680.png

 

0 Kudos
Reply

702 Views
Celeste_Liu
NXP Employee
NXP Employee

Hello @MSCHOI ,

Sorry for the late reply. Please allow me more time to investigate it. I will let you know when I have more information.

BRs,

Celeste

0 Kudos
Reply

676 Views
MSCHOI
Contributor I

Hello Celeste,

Thank you for your support on my questions.

I will continue waiting for your reply, and I look forward to receiving your feedback ASAP

Best regards,

0 Kudos
Reply

641 Views
Celeste_Liu
NXP Employee
NXP Employee

Hello @MSCHOI ,

Thanks for your patience.

Could you provide the IAR project in debug mode instead of release? Having a debug IAR project for KM34Z256 would make my work much easier.

->> I have already contacted the internal team to get it, and am now waiting for their response.

 

I believed that the MKM34Z256CLL7 (used in the SCH-28709_A schematic I referenced) and the MKM34Z256VLL7 (which is on my PCB) were compatible. Could you please confirm if this is correct? I

->> Actually, I haven't been able to find any information related to the MKM34Z256CLL7. I can find MKM34Z128CLL5 but not KM34Z256CLL7. I suspect there might be a typo in the schematic, perhaps the correct part number is MKM34Z256VLL7. I am still confirming this information with the internal team and will let you know immediately once there is an update.

Have a nice day.

BRs,

Celeste

0 Kudos
Reply

628 Views
MSCHOI
Contributor I

Hello Celeste,

Thank you for your prompt and kind response.

I will be waiting for your next update.

Have a nice day 

Best regards,

0 Kudos
Reply

830 Views
MSCHOI
Contributor I

Thank you, Celeste

My End Application Name is a three-phase power meter, although the model name has not been finalized yet. My meter will be designed to be mounted on a distribution panel.

The annual requirement is expected to be around 5k to 10k, and we have started development.

Is there any hardware issue with running the demo firmware on my PCB? I was confident that the two MCUs are pin-to-pin compatible, but I’m worried there might be some potential issues.


Thank you for your help

0 Kudos
Reply