Good morning, I’m already using my second Nucleo-G474RE board, and for the second time, after some time, this error starts appearing when I try to use external mode “Communication error for system ‘’: Wrong port or no response from a target.
Good morning and thank you for your forum post! May I ask you for additional information to help you debug this issue? Specifically, the following may be helpful:
-
Are you able to flash the microcontroller? If so, does it behave as expected before trying to launch the external mode?
-
Are you able to connect if you increase the discretization step size in the Coder Options? If so, you could place a CPU load block in the model to gauge how close you are to the CPU utilization limit. It is possible that the model works fine but the external mode puts us over the top.
-
Are you experiencing the issue for all PLECS models or just some PLECS models? If the issue is only present for some PLECS models, would you be able to post one such model?
-
What jumpers are connected on your Nucleo board? The image below shows valid jumper connections.
1.Yes, I am able to flash the microcontroller, and it behaves as expected before launching the External Mode.
2.I am not able to connect, even after increasing the discretization step size in the Coder Options.
3.The issue occurs with all PLECS models.
4.Unfortunately, the image is not loading, but I haven’t changed any jumper settings — they are exactly as they were when the microcontroller was delivered.
Thank you for checking these points! I don’t have an immediate idea of what the problem could be. What version of PLECS and the STM32 TSP are you running?
In case you haven’t done this yet, you could try to connect external mode via serial instead of JTAG:
What environment are you running PLECS in? A few users have recently reported difficulties flashing the microcontroller on Windows 11 and circumnavigated the issue by installing STM32 Cube IDE (see STM32 PLECS coder does not compile or flash - #2 by Jonas), but that already appears to work in your case.