Hello @stefancinipeanu
I'd like to have a VCOM on USB1 and have been following your example below:
I take the SDK-Example in MCUXpresso "evkmimxrt1060_dev_cdc_vcom_bm" and copy the files into my Matlab Config folder:
I define the directories as:
And the source files as:
(I also tried:
)
But the model builds with errors:
How best to resolve?
I also found capabilities in MCUConfig:
But it generates the same errors:
What is the best way to have a VCOM using software from MBDT?
Regards,
Sam
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.
Try not to add those source files virtual_com.c and virtual_com.h in Simulink project.
Regards!
Stefan.
Hello @stefancinipeanu
Is it possible to receive help with the issue?