Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

github0null/eide_shell_flasher_index

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

25 Commits

Repository files navigation

EIDE Shell Flasher Index

注意事项:每次新添加一个烧录器,都需要在 scripts 目录下新建一个目录,用于存放 program_flash.sh 烧录脚本,目录名就是 下面的 id

index.json type definition:

export interface ShellFlasherIndexItem {
	/**
	 * tool id (lower case, without whitespace)
	 * 
	 * format: 
	 * 		'<mcu_class>.<interface_protocol>.<tool_name>' 
	 * 
	 * interface_protocol:
	 * 		uart
	 * 		swim
	 * 		swd
	 * 		jtag
	 * 
	 * example: 
	 * 		'mcs51.uart.stcflash'
	 * 		'w801.uart.wm_tool'
	 * 		'stm8.swim.stm8flash'
	*/
	id: string;
	/**
	 * human readable name
	*/
	name: string;
	/**
	 * detail for this tool
	*/
	detail?: string;
	/**
	 * provider (auther)
	*/
	provider?: string;
	/**
	 * platform requirement, like: win32, linux, darwin ...
	*/
	platform: string[];
	/**
	 * eide shell flasher config, refer: src/HexUploader.ts -> CustomFlashOptions
	*/
	flashConfigTemplate: {
		bin: string;
		commandLine: string;
		eraseChipCommand: string;
	}
	/**
	 * scripts install path (default is workspace folder)
	*/
	scriptInstallDir?: string;
	/**
	 * binary resources (optional)
	*/
	resources: {
		// platform require, like: win32, linux, darwin ...
		[platform: string]: {
			url: string; // zip, 7z direct download link (https), like: 'https://test.com/gcc.zip'
			zipType: 'zip' | '7z' | 'none'; // if zipType == 'none', field 'url' will be ignored
			locationType: 'workspace' | 'global';
			/**
			 * if 'locationType' == 'workspace', Install Dir is '${workspaceFolder}/<location>'
			 * 
			 * if 'locationType' == 'global', Install Dir is '${userHome}/.eide/tools/<location>'
			*/
			location: string;
			setupCommand?: string; // (optional) This command will be execuate after resource has been unziped
		}
	}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /