FreeMASTER Communication Problem

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

FreeMASTER Communication Problem

Jump to solution
1,954 Views
dariusz_hurek
Contributor II

Good afternoon, ladies and gentlemen,
I bought the TWR-KM34Z75M and try to realize a single phase energy measurement with it.
My IDE is IAR EW (Version 8.40.2)
The program for visualization is FreeMASTER 3.0.

On the page www.nxp.com I found example programs for this topic. Among other things there is also an example for a single phase energy measurement given.
The archive file is deposited in the appendix.

In the folder for One Phase Energy Measurement there is a "readme.pft" file with explanations for the settings of both programs (IAR EW and FreeMASTER). Since the program code already exists, I assume that no more changes are necessary.

There is also a project for FreeMASTER.

The FreeMASTER setup instruction requires the communication interface to be configured. I can do this so far.
When pressing the button "Test Connection" the following is shown.

pastedImage_3.pngpastedImage_1.png

The menu dadrüber looks like this, and looks mostly like in "readme.pdf" file. When pressing the "Test Connection" button the following message appears.

pastedImage_4.png

pastedImage_5.png

When trying to scan the address again, the following message appears.

pastedImage_8.png

pastedImage_7.png

Communication with the project cannot be established and the visualization does not work.

pastedImage_9.png

Can someone give me a hint to solve the problem?
Thank you in advance.

1 Solution
1,791 Views
MarMi
NXP Employee
NXP Employee

Dear Dariusz,

I have tried the same example with FreeMASTER 2.0 and it works in my case.

Please refer to animation below:

_1phmeter_example_debug.gif

Kind regards,

Martin M.

View solution in original post

3 Replies
1,790 Views
dariusz_hurek
Contributor II

I removed and reinstalled the sample library. After that the communication worked.
It also works with version 3.0

What exactly it was I cannot find out.

0 Kudos
1,791 Views
MichalH
NXP Apps Support
NXP Apps Support

Hello Dariusz,

I have just tried with FreeMASTER 3.0 and I was able to connect to the board too. Martin's animation is correct. Here are some detailed screenshots to get PDBDM set up:

In project Options, select the Packet Driven BDM Communication Plug-in. Press Configure button.

pastedImage_1.png

 

As TWR-KM34 board has P&E Micro OpenSDA interface as a factory setting, select the BDM Communication Plug-in (this covers all P&E Micro modules). Press Configure.

pastedImage_2.png

Select CortexM and OpenSDA conneciton:

pastedImage_3.png

Pressing Test Connection should print sane data retrieved from CPU core over JTAG/BDM:

pastedImage_4.png

Press OK to return to PDBDM settings. Now you need to find an address of the PDBDM buffer. Select 0x1FFFE000 as Low Limit and search for the buffer. 

pastedImage_7.png

The buffer should be located:

pastedImage_8.png

Pressing the Test Connection should probe the board and return successfully:

pastedImage_9.png

The board is now connected and FreeMASTER should be able to communicate.

1,792 Views
MarMi
NXP Employee
NXP Employee

Dear Dariusz,

I have tried the same example with FreeMASTER 2.0 and it works in my case.

Please refer to animation below:

_1phmeter_example_debug.gif

Kind regards,

Martin M.