Lines Matching +full:license +full:- +full:path
3 # SPDX-License-Identifier: Apache-2.0
14 from pathlib import Path
23 THIS_ZEPHYR = Path(__file__).parents[4] / 'zephyr'
24 ZEPHYR_BASE = Path(os.environ.get('ZEPHYR_BASE', THIS_ZEPHYR))
26 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts", "west_commands"))
32 ESP_IDF_REMOTE = "https://github.com/zephyrproject-rtos/hal_espressif"
48 esptool_path = os.path.join(module_path, 'tools', 'esptool_py')
49 sys.path.insert(0, esptool_path)
56 log.die("No serial ports found. Connect a device, or use '-p PORT' "
70 ret = Path(build_dir) / 'zephyr' / 'runners.yaml'
75 def load_runners_yaml(path): argument
79 with open(path, 'r') as f:
85 log.wrn("no pre-configured runners in {}; "
86 "this probably won't work".format(path))
103 # get build elf file path
104 build_elf_path = Path(build_dir) / 'zephyr' / runners_yaml['config']['elf_file']
111 if item.startswith('--esp-monitor-baud='):
124 # Keep this in sync with the string in west-commands.yml.
127 This interface allows having esp-idf monitor support.'''),
139 help='open serial port based on esp-idf monitor')
143 group.add_argument('-b', '--baud', default=baud_rate, help='Serial port baud rate')
144 group.add_argument('-p', '--port', help='Serial port address')
145 group.add_argument('-e', '--elf', help='ELF file')
146 group.add_argument('-n', '--eol', default='CRLF', help='EOL to use')
147 group.add_argument('-d', '--enable-address-decoding', action='store_true',
155 Path(os.getenv("ZEPHYR_BASE")).absolute()
163 log.die('cannot find espressif hal in $ZEPHYR_BASE/../modules/hal/ path')
172 elf_path = os.path.abspath(elf_path)
181 monitor_path = Path(module_path, "tools/idf_monitor/idf_monitor.py")
182 cmd_path = Path(os.getcwd())
184 …cmd = [sys.executable, str(monitor_path), "-p", esp_port, "-b", args.baud, str(elf_path), "--eol",…
186 # Adding "-d" argument for idf_monitor.py disables the address decoding
188 cmd.append("-d")