MCPcopy Create free account
hub / github.com/Marus/cortex-debug / get_ST_DIR

Function get_ST_DIR

src/stlink.ts:8–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6import { EventEmitter } from 'events';
7
8function get_ST_DIR() {
9 switch (os.platform()) {
10 case 'win32':
11 return 'C:\\ST';
12 case 'darwin':
13 return '/Applications/STM32CubeIDE.app/Contents/Eclipse';
14 default:
15 const dirName = (process.env.HOME || os.homedir()) + '/st';
16 return fs.existsSync(dirName) ? dirName : '/opt/st';
17 }
18}
19
20// Path of the top-level STM32CubeIDE installation directory, os-dependant
21const ST_DIR = get_ST_DIR();

Callers 1

stlink.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected