On the Nucleo401, you're ALREADY connected on serial2 by default.
The ST-Link device acts as both a flasher, and a USB<->TTL converter, and communicates with the Espruino on Serial2 on pins A2, A3.
Does Serial1 work?
@DrAzzy started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
On the Nucleo401, you're ALREADY connected on serial2 by default.
The ST-Link device acts as both a flasher, and a USB<->TTL converter, and communicates with the Espruino on Serial2 on pins A2, A3.
Does Serial1 work?