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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,292 次查看
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

标记 (2)
0 项奖励
回复
1 解答
1,050 次查看
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

在原帖中查看解决方案

2 回复数
1,050 次查看
Daniel_Popa
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 项奖励
回复
1,051 次查看
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