Skip to content

Commit 6d74dd9

Browse files
authored
Merge pull request #134 from github0null/dev
v3.7.0 update
2 parents 8d31050 + 06e54e5 commit 6d74dd9

File tree

11 files changed

+155
-77
lines changed

11 files changed

+155
-77
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44

55
***
66

7+
### [v3.7.0]
8+
9+
**Change**:
10+
- Use [.NET6](https://dotnet.microsoft.com/en-us/download/dotnet/6.0) runtime, not `Mono`.
11+
- No longer support `X86 (32Bit)` platform.
12+
13+
**Optimize**:
14+
- Remove some discarded extension settings.
15+
- Optimize multi-thread build speed.
16+
17+
***
18+
719
### [v3.6.4]
820

921
**Fixed**:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## Summary 📑
1010

11-
> Supported Platforms: **Windows (Windows 7 SP1 and later)**, **Linux x86_64**
11+
> Supported Platforms: **Windows X64 (>= Windows 10)**, **Linux x64**
1212
1313
A mcu development environment for `8051/AVR/STM8/Cortex-M[0/0+/3/4/7]/RISC-V/Universal-Gcc` on VsCode.
1414

README_ZH-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
## 简述 📑
88

9-
> 受支持的平台: **Windows (Windows 7 SP1 and later)**, **Linux x86_64**
9+
> 受支持的平台: **Windows X64 (>= Windows 10)**, **Linux x64**
1010
1111
一款适用于 8051/STM8/Cortex-M/RISC-V 的单片机开发环境。
1212

package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"homepage": "https://github.com/github0null/eide/blob/master/README.md",
3333
"license": "MIT",
3434
"description": "A mcu development environment for 8051/AVR/STM8/Cortex-M/RISC-V",
35-
"version": "3.6.4",
35+
"version": "3.7.0",
3636
"preview": false,
3737
"engines": {
3838
"vscode": "^1.63.0"
@@ -419,12 +419,6 @@
419419
"markdownDescription": "%settings.jlink.install.folder%",
420420
"default": "${userRoot}/.eide/tools/jlink"
421421
},
422-
"EIDE.JLink.DeviceXmlPath": {
423-
"type": "string",
424-
"scope": "machine",
425-
"markdownDescription": "%settings.jlink.device.xml%",
426-
"default": ""
427-
},
428422
"EIDE.OpenOCD.ExePath": {
429423
"type": "string",
430424
"scope": "machine",

res/data/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
version: '1.0'
44

5-
binary_min_version: '6.0.0'
5+
binary_min_version: '7.0.0'

src/CodeBuilder.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,10 @@ export abstract class CodeBuilder {
319319
outDir.CreateDir(true);
320320

321321
// generate command line
322-
const cmds = [`${this.getBuilderExe().path}`].concat(this.getCommands());
323-
const exeName: string = resManager.getMonoName();
324-
const commandLine = CmdLineHandler.getCommandLine(exeName, cmds);
322+
const commandLine = CmdLineHandler.getCommandLine(
323+
this.getBuilderExe().noSuffixName,
324+
this.getCommands()
325+
);
325326

326327
return commandLine;
327328
}
@@ -385,12 +386,12 @@ export abstract class CodeBuilder {
385386
target: this.project.getCurrentTarget(),
386387
toolchain: toolchain.name,
387388
toolchainLocation: toolchain.getToolchainDir().path,
388-
toolchainCfgFile: toolchain.modelName,
389+
toolchainCfgFile: NodePath.normalize(`../cfg/${toolchain.modelName}`),
389390
buildMode: 'fast|multhread',
390391
showRepathOnLog: settingManager.isPrintRelativePathWhenBuild(),
391392
threadNum: settingManager.getThreadNumber(),
392393
rootDir: this.project.GetRootDir().path,
393-
dumpPath: File.ToLocalPath(this.project.ToRelativePath(dumpDir, false) || dumpDir),
394+
dumpPath: File.ToLocalPath(outDir),
394395
outDir: File.ToLocalPath(outDir),
395396
ram: memMaxSize?.ram,
396397
rom: memMaxSize?.rom,
@@ -934,7 +935,7 @@ export class ARMCodeBuilder extends CodeBuilder {
934935

935936
extraCommands.push({
936937
name: 'axf to elf',
937-
command: `mono "\${BuilderFolder}${File.sep}utils${File.sep}axf2elf${exeSuffix()}" -d "${tool_root_folder}" -b "${ouput_path}.bin" -i "${ouput_path}.axf" -o "${ouput_path}.elf" > "${axf2elf_log}"`
938+
command: `axf2elf -d "${tool_root_folder}" -b "${ouput_path}.bin" -i "${ouput_path}.axf" -o "${ouput_path}.elf" > "${axf2elf_log}"`
938939
});
939940
}
940941

src/EIDEProjectExplorer.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,9 +2429,8 @@ export class ProjectExplorer implements CustomConfigurationProvider {
24292429
paramsFile.Write(JSON.stringify(cmdList));
24302430

24312431
/* launch */
2432-
const resManager = ResManager.GetInstance();
2433-
const cmds = [`${ResManager.GetInstance().getBuilder().path}`].concat(['-r', paramsFile.path]);
2434-
const commandLine = CmdLineHandler.getCommandLine(resManager.getMonoName(), cmds);
2432+
const exeName = ResManager.GetInstance().getBuilder().noSuffixName;
2433+
const commandLine = CmdLineHandler.getCommandLine(exeName, ['-r', paramsFile.path]);
24352434
runShellCommand('build-workspace', commandLine);
24362435
}
24372436

src/OperationExplorer.ts

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -237,20 +237,6 @@ export class OperationExplorer {
237237
}
238238
});
239239

240-
icoPath = resManager.GetIconByName('SerialPort_16x.svg');
241-
this.provider.AddData({
242-
label: view_str$operation$open_serialport,
243-
command: {
244-
title: view_str$operation$open_serialport,
245-
command: '_cl.eide.Operation.OpenSerialPortMonitor'
246-
},
247-
tooltip: view_str$operation$open_serialport,
248-
iconPath: {
249-
light: icoPath.path,
250-
dark: icoPath.path
251-
}
252-
});
253-
254240
const tcList: ToolchainName[] = ['AC5', 'GCC', 'IAR_STM8', 'SDCC', 'Keil_C51', 'RISCV_GCC', 'ANY_GCC', 'GNU_SDCC_STM8'];
255241
const toolchainManager = ToolchainManager.getInstance();
256242
const checkResults = tcList.map((tcName) => { return toolchainManager.isToolchainPathReady(tcName); });
@@ -1249,8 +1235,9 @@ export class OperationExplorer {
12491235
terminal.show(true);
12501236

12511237
/* send command */
1252-
const commandLine = `"${resManager.getSerialPortExe().path}" ${paramList.join(' ')}`;
1253-
terminal.sendText(`${resManager.getMonoName()} ${commandLine}`);
1238+
const exeName = resManager.getSerialPortExe().noSuffixName;
1239+
const cmd = paramList.join(' ');
1240+
terminal.sendText(`${exeName} ${cmd}`);
12541241

12551242
} catch (error) {
12561243
GlobalEvent.emit('error', error);

src/ResManager.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export class ResManager extends events.EventEmitter {
165165

166166
enumSerialPort(): string[] {
167167
try {
168-
const cmd = `${this.getMonoName()} "${this.getSerialPortExe().path}"`;
168+
const cmd = this.getSerialPortExe().noSuffixName;
169169
const data = ChildProcess.execSync(cmd, { env: process.env });
170170
const portList: string[] = JSON.parse(CodeConverter.trimUtf8BomHeader(data));
171171
if (!Array.isArray(portList)) { throw Error("get current port list error !"); }
@@ -383,10 +383,6 @@ export class ResManager extends events.EventEmitter {
383383
return File.fromArray([this.getBuilderDir().path, 'bin', `serial_monitor${exeSuffix()}`]);
384384
}
385385

386-
getMonoName(): string {
387-
return 'mono';
388-
}
389-
390386
/* --------------- tools -------------------- */
391387

392388
getUtilToolsDir(): string {
@@ -444,9 +440,8 @@ export class ResManager extends events.EventEmitter {
444440
/* load extension device list */
445441
try {
446442

447-
const eideDefFile = SettingManager.GetInstance().getJlinkDevXmlFile();
448443
const jlinkDefFile = File.fromArray([SettingManager.GetInstance().getJlinkDir(), 'JLinkDevices.xml']);
449-
const file = jlinkDevXmlFile || eideDefFile || jlinkDefFile;
444+
const file = jlinkDevXmlFile || jlinkDefFile;
450445

451446
if (file && file.IsFile()) {
452447
const parser = new x2js({

src/SettingManager.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -345,16 +345,6 @@ export class SettingManager {
345345
return defPath || 'null';
346346
}
347347

348-
getJlinkDevXmlFile(): File | undefined {
349-
const path = this.getConfiguration().get<string>('JLink.DeviceXmlPath');
350-
if (path) {
351-
const file = new File(path);
352-
if (file.IsFile()) {
353-
return file;
354-
}
355-
}
356-
}
357-
358348
getStvpExePath(): string {
359349
return this.replaceEnvVariable(
360350
this.getExePathFromConfig('STM8.STVP.CliExePath', 'STVP_CmdLine') || 'null'
@@ -416,7 +406,7 @@ export class SettingManager {
416406

417407
getThreadNumber(): number {
418408
const num = this.getConfiguration().get<number>('Builder.ThreadNumber') || -1;
419-
if (num <= 0) { return os.cpus().length + 2; }
409+
if (num <= 0) { return os.cpus().length; }
420410
return num;
421411
}
422412

0 commit comments

Comments
 (0)