Skip to main content
Associate
November 11, 2024
Solved

M1 Macbook pro can't use st-link to run programs

  • November 11, 2024
  • 5 replies
  • 5086 views

Hello. The following is machine-translated so it might seem a bit strange. I'd like to ask if I can use my only computer, the "MacBook Pro with M1 version", to connect to ST-LINK V2 to program the STM32 on a C8T6 chip's PCB board. I've tried using V1 before but without success. STM32CubeIDE couldn't recognize ST-LINK, and thus it wasn't able to program. I hope you can help me solve this problem. Thank you very much.

Best answer by Ozone

I suppose you need Mac-specific USB drivers for the ST-Link,
This applies to the standalone version and the onboard version many ST boards come with.

Those drivers are usually not installed with CubeIDE, it must be done separately.

I suggest to start with connecting the ST-Link to your Mac, and check if and how it recognizes the USB device.
I am not a Mac user, so I can't give any further hints - try a google search instead.

5 replies

mƎALLEm
Technical Moderator
November 11, 2024

Hello @yangyan and welcome to the community,

You need to check if your system fits the following for CubeIDE:

From the release note:

SofLit_0-1731323417611.png

 

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
yangyanAuthor
Associate
November 11, 2024

Thanks for your reply,I have successfully downloaded CubeIDE and compiled the program. The only problem is that I can't find an ST-LINK that is compatible with the MacBook to connect to the PCB board and perform the programming. I wonder if I can buy st-link v2 to link my Mac book         P.S.I'm just a Beginner to study the operation related to single-chip microcomputers.

yangyanAuthor
Associate
November 11, 2024

this's my Mac version

Ozone
OzoneBest answer
Principal
November 11, 2024

I suppose you need Mac-specific USB drivers for the ST-Link,
This applies to the standalone version and the onboard version many ST boards come with.

Those drivers are usually not installed with CubeIDE, it must be done separately.

I suggest to start with connecting the ST-Link to your Mac, and check if and how it recognizes the USB device.
I am not a Mac user, so I can't give any further hints - try a google search instead.

yangyanAuthor
Associate
November 14, 2024

I can't link it, and I can't find any possible information from internt you are my last hope ,can you offer me the Mac-specific USB drivers for the ST-Link,

Ozone
Principal
November 14, 2024

According to the error message displayed in the screenshot, the ST-Link works fine.
It says the target is held in reset, which means it has an issue with the target MCU - the part you called "STM32 8T6".

So, there seems to be an issue with the target,

Ozone
Principal
November 18, 2024

I am not really familiar with the Cube Programmer or the STM32CubeIDE , this would be a good opportunity for ST support staff to chime in ...

yangyanAuthor
Associate
November 18, 2024

Of course, what do I need to do to find them?

Pavel A.
Super User
November 18, 2024

P.S.I'm just a Beginner to study the operation related to single-chip microcomputers.

For best experience with development and debugging on STM32 (and many other things) -  get a Windows laptop. Nothing too fancy. 8-16 GB RAM, SSD and full size USB ports.

Buy a new ST-LINKv3 if your board does not have a ST-LINK built-in.

And be happy ever after.

yangyanAuthor
Associate
November 18, 2024

wuwuwu,this Mac was bought 4 years ago, and now I don't have enough money ,as a collage student ,I have 207 USD per month.(QAQ)

Pavel A.
Super User
November 18, 2024

The school does not provide computers to students? Still using clay tablets and old MACs?

Time is your most valuable resource now. Lost time will not return. You need solid, working tools that save your time and productivity.

 

yangyanAuthor
Associate
November 19, 2024

Thanks for your advice, I should really consider buying a second-hand computer within the next 1.5 years

Generally speaking, Chinese universities will not provide a computer that can be used freely for a long time.

I will Remember your teachings,In this era when short videos are popular, it is indeed extremely easy for time to slip away inadvertently.I used to, or rather now, when I can't get up, I would waste a lot of time on short videos.

but now I should open the DFU ,update my st-link v2 through some methods I don't know yet.Light up my LED  in my new c8t6 as soon as possible.