How to read Simulink signals from HVP-MC3PH with FreeMASTER ?

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

How to read Simulink signals from HVP-MC3PH with FreeMASTER ?

Jump to solution
1,046 Views
lethuer
Contributor V

Hi,

i want to read some signals from a Simulink model with FreeMASTER.

For example the voltage U_dcb which should be connected to ADCA_CH1.

What exactly I have to configure to read the value with FreeMASTER ?

Configuration FreeMASTER.PNG

In the model configuration at the tab FreeMASTER Config tab the Option Enable FreeMASTER has been activated.

If I start FreeMASTER and connect the board via the galvanic isolated USB to Serial (J4) I'm not able to detect the board like it is shown in this Video: https://www.nxp.com/video/:S32K144EVB-OOBE

0 Kudos
1 Solution
804 Views
lethuer
Contributor V

Hi dumitru-daniel.popa‌,

of course you are right !

The Controller communicates via PTD6 and PTD7

UART.png

So I have to set the FreeMASTER Config like it is shown below:

FreeMASTER Konfiguration.PNG

After that you have to load the correct MAP file in FreeMASTER, hich is generated by building the model. It is recommended to choose the .elf file and not the .map

Also you have to choose the same Baud Rate in FreeMASTER and Simulink.

FreeMASTER Projektoptionen.png

View solution in original post

2 Replies
804 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi lethuer‌,

The FreeMASTER config from Simulink looks ok. That's about all you have to do in SW.

Of course, that SW setup must match the HW. 

I see the board user manual that multiple HW choices are available. Have you configured the Jumpers to sent UART signals from PTE1 and PTE0 to J4 ?

Thank you!

Daniel

0 Kudos
805 Views
lethuer
Contributor V

Hi dumitru-daniel.popa‌,

of course you are right !

The Controller communicates via PTD6 and PTD7

UART.png

So I have to set the FreeMASTER Config like it is shown below:

FreeMASTER Konfiguration.PNG

After that you have to load the correct MAP file in FreeMASTER, hich is generated by building the model. It is recommended to choose the .elf file and not the .map

Also you have to choose the same Baud Rate in FreeMASTER and Simulink.

FreeMASTER Projektoptionen.png