MBDT: VCOM on iMXRT

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

MBDT: VCOM on iMXRT

237 Views
Sam_ECU
Contributor V

Hello @stefancinipeanu 

I'd like to have a VCOM on USB1 and have been following your example below:

https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/iMXRT-Model-won-t-solve-when-activating...

I take the SDK-Example in MCUXpresso "evkmimxrt1060_dev_cdc_vcom_bm" and copy the files into my Matlab Config folder:

Sam_ECU_0-1716117585867.png

I define the directories as:

Sam_ECU_3-1716117899942.png

 

And the source files as:

Sam_ECU_1-1716117823187.png

 

(I also tried:

Sam_ECU_2-1716117870768.png)

But the model builds with errors:

Sam_ECU_4-1716117945763.png

 

How best to resolve?

 

I also found capabilities in MCUConfig:

Sam_ECU_5-1716118036709.png

But it generates the same errors:

Sam_ECU_6-1716118061893.png

 

What is the best way to have a VCOM using software from MBDT?

 

Regards,

Sam

 

0 Kudos
Reply
2 Replies

48 Views
stefancinipeanu
NXP Employee
NXP Employee

Hello @Sam_ECU,

The reason why you have the error regarding the definition of main function twice is because of the virtual_com.c file from the evkmimxrt1060_dev_cdc_vcom_bm MCUXpresso example. That file contains the main function for that particular application and there will a conflict with the main function defined in the Simulink generated code from ert_main.c file.

stefancinipeanu_0-1719828824751.png

Try not to add those source files virtual_com.c and virtual_com.h in Simulink project.

Regards!

Stefan.

 

0 Kudos
Reply

100 Views
Sam_ECU
Contributor V

Hello @stefancinipeanu 

Is it possible to receive help with the issue?

0 Kudos
Reply