iMXRT: Error with External Mode

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

iMXRT: Error with External Mode

170 Views
Sam_ECU
Contributor V

Hello,

I'm trying to connect to the iMXRT1062 over MCU-Link to run in external mode in Matlab with XCP Serial Interface.  I get the same issue on a custom board and the 1060-EVK over OpenSDA with the External Mode example.

Essentially I'm trying to connect to a running target. The aim is to calibrate using external mode over serial after flashing the device with MCU-Boot-Utility.

I set the device up as so (Com11 for MCU-Link):

Sam_ECU_0-1717262194278.png

I build the code and flash it to the board (over SDA with EVK and with MCU-Boot-Utility for the custom board).

When using the "Connect" function in Simulink it generates the error:

Sam_ECU_1-1717262502881.png

How do I fix the issue?

How is it recommended to tune a custom board with MBDT code in Simulink over XCP?

Regards,

Sam

0 Kudos
2 Replies

26 Views
stefancinipeanu
NXP Employee
NXP Employee

Hello @Sam_ECU 

Looking to the error you are encountering, my first question would be how did you generate the code to use external mode feature? Did you press first Build, Deploy & Start button and then trying to connect from external mode menu? If this is the case, you have to know that the normal build does not contain all the External Mode over XCP Serial protocol communication stack that has to run on the board.

To run External Mode, after you configured the XCP Serial communication interface setting from Target hardware resources menu <- Hardware Implementation tab, you have to press the Monitor & Tune button from RUN ON HARDWARE menu in the Simulink model, as in the picture below:

stefancinipeanu_1-1719826109964.png

When you press this button, all the XCP Serial communication interface sources will be added, compiled for your specific hardware and automatically downloaded on your 1062-EVK. Then, Simulink will automatically connect to the board and will display the logged signals in the Simulink scope in real-time.

Let me know if this works!

Regards!

Stefan.

0 Kudos

65 Views
Sam_ECU
Contributor V

Hello NXP,

Could I receive help with the issue?

0 Kudos