Skip to main content
ASing.28
Associate II
May 1, 2023
Question

Need support to use serial monitor in arduino ide or in putty through SWD pins PA13 and PA15 in STM32 Nucleo L152RE Board

  • May 1, 2023
  • 4 replies
  • 4639 views


_legacyfs_online_stmicro_images_0693W00000bj8E4QAI.png 

This topic has been closed for replies.

4 replies

Tesla DeLorean
Guru
May 1, 2023

SWD pins are PA13/PA14, the SWO/SWV would be PB3

This isn't how Arduino does serial monitor in any case.

You'd typically use the on-board ST-LINK/V2-1 and it's VCP/CDC implementation.

The stand-alone board doesn't support USART connectivity.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
ASing.28
ASing.28Author
Associate II
May 1, 2023

Okay thanks ! then what should i do for the Serial monitor or debugging ?

Tesla DeLorean
Guru
May 1, 2023

Use the connection on the NUCLEO board itself, or if you've broken that find a USB to CMOS Serial Dongle, like those from SiLabs.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Peter BENSCH
Technical Moderator
May 1, 2023

The blue fake ST-LINK/V2 shown in the picture of the setup, which almost certainly does not contain an STM32, regularly leads to problems because something does not work. Because of the problems, people here in the community keep asking for help, but at least STMicroelectronics cannot provide it - simply because the tool is an illegal replica that ST neither knows about nor has manufactured, nor can take responsibility for.

As @Community member​  has mentioned, the NUCLEO-L152RE shown in the photo has an ST-LINK/V2-1 debugger, i.e. even original and fully functional and not restricted ST-LINK, with which you can debug and program without further aids (ok, only the mini-USB cable and a host computer are necessary).

Did you know that you can also break off this ST-LINK/V2-1 from the NUCLEO and use it stand-alone, just like the blue fake - only without the housing and of course fully functional and legal?

Details on this can be found, for example, in UM1724, section 6.2.3.

Regards

/Peter

ASing.28
ASing.28Author
Associate II
May 2, 2023


_legacyfs_online_stmicro_images_0693W00000bjB9NQAU.pngBut Still not working with also

Tesla DeLorean
Guru
May 2, 2023

You've pictured a jumble.of wires, what are we supposed to do with that??

Identify what is connected to what with a diagram or schematic.

The On-Board ST-LINK/V2-1 used with the NUCLEO has a UART VCP connection, WHY aren't you using that?

Explain what you're doing BETTER..​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
ASing.28
ASing.28Author
Associate II
May 2, 2023

Ok!