I recently acquired two STM32 G474REs. I was running some tests in external mode. According to the Plecs documentation, it is possible to connect several devices to external mode, as stated on page 8 of the STM32 manual in Plecs. Every time I try to connect to external mode on both, the following error appears.
Does anyone know how to enable external mode on both STMs at the same time?
To connect to two boards simultaneously, you will need to go into Coder Options→Target→General, select “Specify serial number”, and enter the serial numbers of the connected boards. Each board has a unique serial number. I use the STM32CubeProgrammer (a tool provided by ST) to determine the serial number of each connected board. See the attached screenshots.
I made some modifications to your attached PLECS model: I added a status LED that indicates that the code is executing on the target, I modified the synchronization chain, and I changed the serial numbers (see the attached model). Using this modified model, I can connect to two boards simultaneously. To replicate this on your system, you will need to change the serial numbers for both subsystems.
One possible reason for the connection issue you experienced may have been that the code was not executing on the target; adding a status LED is a simple way to test this before connecting via external mode.