TriBoard TC397 v2.0 not connecting

27 views (last 30 days)
Massimo
Massimo on 22 Nov 2024 at 8:31
Commented: Massimo on 22 Nov 2024 at 9:50
Hello,
I'm currently trying to use the "Monitor & Tune" option in simulink, however it stops giving the following error message:
"External Mode Open Protocol Connect command failed
Could not connect to target application: XCP internal error: timeout expired, in response to XCP CONNECT command"
The serial port selected is COM8 which is the same port that appears in device manager.
"Build & Run" tool is working without issues, and serial communication is definetively possible, as I checked with custom code(which didn't work very well with code generation but proved that serial communication between host and board is possible).
Does anybody know if it is somehow possible to get data generated on the aurix to the host computer using serial communication and without the use of custom code?

Answers (1)

Saurabh
Saurabh on 22 Nov 2024 at 8:55
The error indicates an issue with the connection to the board. To solve this issue check the COM Port used to communicate with the board. If an Auxiliary port(COM3) is being used, try connecting to a UART port(COM4) and try "monitor and tune" again.
Ensure the COM port set at 'Configuration Parameters > Hardware Implementation > Target hardware resources > External mode' is the same as the COM port of the serial interface.
To ensure other aspects of the board and MATLAB are setup properly, double check the following:
Ensure MATLAB Code, Simulink Coder, Embedded Coder are installed properly, Ensure relevant support packages
are installed including required 3rd party software. Perform Pending updates on Support Packages. Check that the model in consideration does not use blocks unsupported for code generation or for deployment in the specified target.
I hope this helps.
  1 Comment
Massimo
Massimo on 22 Nov 2024 at 9:50
The only COM port available is described in device manager as "Infineon DAS JDS COM (COM4)", I don't know if it automatically installs the wrong drivers or if it's correct as is.
Communication using serial shell code samples from the AURIX developer studio works without perfectly so I don't think it's a board problem.
Could it be a compatibility issue? I didn't install the exact version for every required software:
Hightec compiler 4.9.3.0 instead of 4.9.4.1
Infineon DAS 8.1 instead of 8.0.5
That said, I am perfectly able to flash the generated code from a simulink project to the board without any problems, so I don't think that is the issue.

Sign in to comment.

Products


Release

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!