ST Link V2 OSX installation the easy way

Apple Mac OSX
Post Reply
User avatar
madias
Posts: 1198
Joined: Mon Apr 27, 2015 11:26 am
Location: Vienna, Austria

ST Link V2 OSX installation the easy way

Post by madias » Mon Mar 26, 2018 3:44 pm

ST-Link V2 the easy way to install:
Works flawlessly
http://macappstore.org/stlink/

lorurb
Posts: 12
Joined: Fri Dec 07, 2018 10:56 pm

Re: ST Link V2 OSX installation the easy way

Post by lorurb » Mon Dec 10, 2018 6:39 pm

Hi
do i need to install Xcode ?

Thanks

User avatar
sheepdoll
Posts: 289
Joined: Fri May 22, 2015 12:58 am
Location: Silicon Valley Vortex
Contact:

Re: ST Link V2 OSX installation the easy way

Post by sheepdoll » Tue Dec 11, 2018 4:09 am

Uses homebrew which kacks those of us who use macports.

lorurb
Posts: 12
Joined: Fri Dec 07, 2018 10:56 pm

Re: ST Link V2 OSX installation the easy way

Post by lorurb » Tue Dec 11, 2018 12:09 pm

Do I have to install homebrew?

Thanks

lorurb
Posts: 12
Joined: Fri Dec 07, 2018 10:56 pm

Re: ST Link V2 OSX installation the easy way

Post by lorurb » Tue Dec 11, 2018 8:58 pm

I have run all the steps but the Stlink application does not appear to me among my applications in the launchpad

Thanks

User avatar
Kenjutsu
Posts: 149
Joined: Fri May 29, 2015 8:26 am

Re: ST Link V2 OSX installation the easy way

Post by Kenjutsu » Wed Dec 12, 2018 11:26 am

ST Link for macOS via Homebrew installs this version: https://github.com/texane/stlink

It is a suite of command line programs that must be executed via the macOS terminal, thus, you will not find a GUI app under Launchpad
Pieter

OSX: 10.13.6
Arduino IDE: 1.8.5
Blue pill STM32F103C8T6 Dev Board
Maple Mini Clones

lorurb
Posts: 12
Joined: Fri Dec 07, 2018 10:56 pm

Re: ST Link V2 OSX installation the easy way

Post by lorurb » Wed Dec 12, 2018 11:33 am

Kenjutsu wrote:
Wed Dec 12, 2018 11:26 am
ST Link for macOS via Homebrew installs this version: https://github.com/texane/stlink

It is a suite of command line programs that must be executed via the macOS terminal, thus, you will not find a GUI app under Launchpad
Hi

So how can i open Stlink if i will not have the app in launchpad ?

Thanks

User avatar
Kenjutsu
Posts: 149
Joined: Fri May 29, 2015 8:26 am

Re: ST Link V2 OSX installation the easy way

Post by Kenjutsu » Wed Dec 12, 2018 12:06 pm

First, read all the info at https://github.com/texane/stlink, including which application to use to achieve what you want to achieve.

Then, open Terminal on macOS. Use the knowledge you gained by reading up on texane/stlink and type in the appropriate commands
Pieter

OSX: 10.13.6
Arduino IDE: 1.8.5
Blue pill STM32F103C8T6 Dev Board
Maple Mini Clones

User avatar
Kenjutsu
Posts: 149
Joined: Fri May 29, 2015 8:26 am

Re: ST Link V2 OSX installation the easy way

Post by Kenjutsu » Thu Dec 13, 2018 6:40 am

What would you like to use ST Link for?
Pieter

OSX: 10.13.6
Arduino IDE: 1.8.5
Blue pill STM32F103C8T6 Dev Board
Maple Mini Clones

ted
Posts: 312
Joined: Sun Jul 16, 2017 9:57 pm

Re: ST Link V2 OSX installation the easy way

Post by ted » Wed Jan 16, 2019 9:18 pm

Hi
I Have a problem to use St Link on STM32F103.
When from tools I select STM32F1 boards (stm32duinoforum.com/forum), the program is compiling but not uploading, I have this error.

Code: Select all

Arduino: 1.8.8 (Mac OS X), Board: "Generic STM32F103C series, STM32F103C8 (20k RAM. 64k Flash), STLink, 72Mhz (Normal), Smallest (default)"
Sketch uses 14172 bytes (21%) of program storage space. Maximum is 65536 bytes.
Global variables use 3136 bytes (15%) of dynamic memory, leaving 17344 bytes for local variables. Maximum is 20480 bytes.
usage: dirname path
/Users/tedkor/Documents/Arduino/hardware/Arduino_STM32-master 3/tools/macosx/stlink_upload: line 2: /stlink/st-flash: No such file or directory
An error occurred while uploading the sketch
Invalid library found in /Users/tedkor/Documents/Arduino/libraries/libmaple-master: no headers files (.h) found in /Users/tedkor/Documents/Arduino/libraries/libmaple-master
Invalid library found in /Users/tedkor/Documents/Arduino/libraries/libmaple-master: no headers files (.h) found in /Users/tedkor/Documents/Arduino/libraries/libmaple-master
When I select another board - STM32 Board (selected from sub menu ), St link is working =I can upload blinking diode program, but gives me an error when I compiling program #2

Code: Select all

HardwareTimer pwmtimer3(3);
void setup() {
 // pinMode(PA7, PWM);
  pinMode(PB0, PWM);
  pwmtimer3.pause();
  pwmtimer3.setPrescaleFactor(100);       // Timer input clock Prescaler = 1 (= 72MHz input ?)
  pwmtimer3.setOverflow(100-1);            // PWM Period width for 720kHz ?
  pwmtimer3.setCompare(TIMER_CH3, 83);  // PWM High Pulse width is 50% duty (1:1)
  //95=48hz,90 =45hz,88=43hz 85=42hz, 83=
  pwmtimer3.refresh();
  pwmtimer3.resume();
}
void loop() {
}
The error

Code: Select all


'HardwareTimer' does not name a type
Arduino: 1.8.8 (Mac OS X), Board: "Generic STM32F103 series, BluePill F103C8, 64k (default), STLink, Enabled with generic Serial, Smallest (-Os default), Newlib Nano (default)"
Other words I can upload simple program to stm32f103 but not more complex.
How to fix this ?

Post Reply