cancel
Showing results for 
Search instead for 
Did you mean: 

How can use st-link as a uart for STM32L072CZ ?

PPati.18
Associate II

How can use st-link as a uart for STM32L072CZ ......?

We have CMWX1ZZABZ-091 LoRa module, this module contain STM32L072CZ mcu.

When we connect this module using STLINKv2, com port is not showing.

I could not able to do programming to this module.

How can we program this module, can any one help me ?

Following ST Link v2 i am using

0690X000008iOKxQAM.png

CMWX1ZZABZ-091 LoRa module

0690X000008iOL7QAM.png

Thanks.

5 REPLIES 5
Uwe Bonnes
Principal II

First, you have an Stlink clone, not a STM genuine one. Look at the print on the clone and connect clone TX to target RX and vice versa. If you want a known working setup, get a STM32 LoRa Discovery kit.

The ST-LINK V3 provides a serial port.

You could use a USB to CMOS Serial type adapter or use a MAX3232 type chip to get to RS232 levels.​

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
S.Ma
Principal

Not an ST STLink V2, looks like anyone can use ST logo these days...

Here is the right one:

 

The 20 pin JTAG connector has USART pins wired.

Same for STLinkV3

Uwe Bonnes
Principal II

Those clones like the one above are clone the Stlink of a STlink V2 as on a nucleo board. So Uart is implemented.

Some of them are V2-1​ models, the OP says he doesn't get a VCP, so I lean against that.

I'm using the V3 with these Murata devices.​

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..