Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 145) sorted by relevance

123456

/hal_espressif-latest/tools/esptool_py/test/
Dtest_espefuse.py62 pytest.exit(f"{arg_chip} is not a supported target, choose from {SUPPORTED_CHIPS}")
63 print(f"\nHost tests of espefuse.py for {arg_chip}:")
73 f"{sys.executable} -m espefuse --chip {arg_chip} "
74 f"--virt --path-efuse-file {self.efuse_file.name} -d"
79 f"{sys.executable} -m espefuse --chip {arg_chip} "
80 f"--port {arg_port} -d"
129 with open(file_path, "rb") as f:
130 data = BitStream("0x00") * offset + BitStream(f)
131 blk = data.readlist(f"{data.len // 8}*uint:8")
133 hex_blk = " ".join(f"{num:02x}" for num in blk)
[all …]
Dtest_imagegen.py69 with open(elf, "rb") as f:
70 e = ELFFile(f)
72 assert section, f"{section_name} should be in the ELF"
78 f"comparing seg {seg.addr:#x} sec {sh_addr:#x} len {len(data):#x}"
82 ), f"{section_name} should not be in the binary image"
89 with open(elf, "rb") as f:
90 e = ELFFile(f)
92 assert section, f"{section_name} should be in the ELF"
101 f"comparing seg {seg.addr:#x} sec {sh_addr:#x} len {len(data):#x}"
107 ), f"ELF '{section_name}' section has mis-matching bin image data"
[all …]
Dtest_esptool.py72 self.server_output_file = open(f"{TEST_DIR}/{str(arg_chip)}_server.out", "a")
202 f"{TEST_DIR}/images/ram_helloworld/helloworld-{arg_chip}.bin",
210 print(f'\nRunning the "{args}" command...')
246 f"--before default_reset read_flash {offset} {length} {dump_file.name}"
249 cmd += f" --spi-connection {spi_connection}"
251 with open(dump_file.name, "rb") as f:
252 rb = f.read()
256 ), f"read_flash length {length} offset {offset:#x} yielded {len(rb)} bytes!"
266 ), f"First difference at offset {offs:#x} Expected {ct_b} got {rb_b}"
272 with open(compare_to, "rb") as f:
[all …]
Dtest_merge_bin.py28 with open(os.path.join(IMAGES_DIR, filename), "rb") as f:
29 return f.read()
70 with open(output_file.name, "rb") as f:
71 return f.read()
210 with tempfile.NamedTemporaryFile(suffix=".hex", delete=False) as f:
211 f.write(hex)
217 [(0x1000, f.name), (0x10000, "ram_helloworld/helloworld-esp32.bin")],
221 os.unlink(f.name)
271 with tempfile.NamedTemporaryFile(delete=False) as f:
272 f.write(b":")
[all …]
/hal_espressif-latest/zephyr/scripts/partitions/
Desp_genpartition.py115 … print(f"Generate partition for {flash_size_mb}MB flash with offset 0x{flash_offset_kb*1024:x}kB")
126 …output.append(f" * Copyright (c) {start_year}-{datetime.now().year} Espressif Systems (Shanghai) C…
128 … output.append(f" * Copyright (c) {datetime.now().year} Espressif Systems (Shanghai) Co., Ltd.")
142 print(f"Error: Partition {name} exceeds flash size. Aborting.")
146 output.append(f"\t\t{name.replace('-', '_')}_partition: partition@{current_offset:x} {{")
147 output.append(f"\t\t\tlabel = \"{label}\";")
148 output.append(f"\t\t\treg = <0x{current_offset:X} DT_SIZE_K({int(size_kb)})>;")
150 print(f"{i}, {name:>16},{label:>16}, {current_offset:>8X}, DT_SIZE_K({size_kb})")
156 output.append(f"/* Remaining flash size is {int((flash_size - current_offset) / 1024)}kB")
157 output.append(f" * Last used address is 0x{current_offset-1:X}")
[all …]
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32/
Dmem_definition.py110 with open(f"{efuse_file}", "r") as r_file:
153 f = Field()
154 f.name = "WAFER_VERSION_MAJOR"
155 f.block = 0
156 f.bit_len = 3
157 f.type = f"uint:{f.bit_len}"
158 f.category = "identity"
159 f.class_type = "wafer"
160f.description = "calc WAFER VERSION MAJOR from CHIP_VER_REV1 and CHIP_VER_REV2 and apb_ctl_date (r…
161 self.CALC.append(f)
[all …]
/hal_espressif-latest/components/xtensa/esp32/include/xtensa/config/
Dtie.h130 XCHAL_SA_REG(s,0,0,2,0, f0, 4, 4, 4,0x0030, f,0 , 32,0,0,0) \
131 XCHAL_SA_REG(s,0,0,2,0, f1, 4, 4, 4,0x0031, f,1 , 32,0,0,0) \
132 XCHAL_SA_REG(s,0,0,2,0, f2, 4, 4, 4,0x0032, f,2 , 32,0,0,0) \
133 XCHAL_SA_REG(s,0,0,2,0, f3, 4, 4, 4,0x0033, f,3 , 32,0,0,0) \
134 XCHAL_SA_REG(s,0,0,2,0, f4, 4, 4, 4,0x0034, f,4 , 32,0,0,0) \
135 XCHAL_SA_REG(s,0,0,2,0, f5, 4, 4, 4,0x0035, f,5 , 32,0,0,0) \
136 XCHAL_SA_REG(s,0,0,2,0, f6, 4, 4, 4,0x0036, f,6 , 32,0,0,0) \
137 XCHAL_SA_REG(s,0,0,2,0, f7, 4, 4, 4,0x0037, f,7 , 32,0,0,0) \
138 XCHAL_SA_REG(s,0,0,2,0, f8, 4, 4, 4,0x0038, f,8 , 32,0,0,0) \
139 XCHAL_SA_REG(s,0,0,2,0, f9, 4, 4, 4,0x0039, f,9 , 32,0,0,0) \
[all …]
/hal_espressif-latest/tools/esptool_py/esptool/
Dbin_image.py40 def align_file_position(f, size): argument
42 align = (size - 1) - (f.tell() % size)
43 f.seek(align, 1)
78 def select_image_class(f, chip): argument
97 }[chip](f)
99 magic = ord(f.read(1))
100 f.seek(0)
102 return ESP8266ROMFirmwareImage(f)
104 return ESP8266V2FirmwareImage(f)
109 with open(image_file, "rb") as f:
[all …]
Dcmds.py118 err_msg = f"Unexpected chip ID value {chip_id}."
144 err_msg = f"Unexpected chip magic value {chip_magic_value:#010x}."
160 f"{err_msg} Failed to autodetect chip type."
204 with open(args.filename, "wb") as f:
207 f.write(struct.pack(b"<I", d))
208 if f.tell() % 1024 == 0:
210 "%d bytes read... (%d %%)" % (f.tell(), f.tell() * 100 // args.size)
213 print_overwrite("Read %d bytes" % f.tell(), last_line=True)
235 f"(FlashID={flash_id:#x}, SizeID={size_id:#x}), defaulting to 4MB"
331 f"\tExpected calculated SHA: {hexify(sha_digest_calculated)}\n"
[all …]
/hal_espressif-latest/components/xtensa/esp32s3/include/xtensa/config/
Dtie.h130 XCHAL_SA_REG(s,0,0,2,0, f0, 4, 4, 4,0x0030, f,0 , 32,0,0,0) \
131 XCHAL_SA_REG(s,0,0,2,0, f1, 4, 4, 4,0x0031, f,1 , 32,0,0,0) \
132 XCHAL_SA_REG(s,0,0,2,0, f2, 4, 4, 4,0x0032, f,2 , 32,0,0,0) \
133 XCHAL_SA_REG(s,0,0,2,0, f3, 4, 4, 4,0x0033, f,3 , 32,0,0,0) \
134 XCHAL_SA_REG(s,0,0,2,0, f4, 4, 4, 4,0x0034, f,4 , 32,0,0,0) \
135 XCHAL_SA_REG(s,0,0,2,0, f5, 4, 4, 4,0x0035, f,5 , 32,0,0,0) \
136 XCHAL_SA_REG(s,0,0,2,0, f6, 4, 4, 4,0x0036, f,6 , 32,0,0,0) \
137 XCHAL_SA_REG(s,0,0,2,0, f7, 4, 4, 4,0x0037, f,7 , 32,0,0,0) \
138 XCHAL_SA_REG(s,0,0,2,0, f8, 4, 4, 4,0x0038, f,8 , 32,0,0,0) \
139 XCHAL_SA_REG(s,0,0,2,0, f9, 4, 4, 4,0x0039, f,9 , 32,0,0,0) \
[all …]
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/
Dcsv_table_parser.py18 def expand_vars(f): argument
19 f = os.path.expandvars(f)
20 m = re.match(r"(?<!\\)\$([A-Za-z_]\w*)", f)
22 raise InputError(f"unknown variable '{m.group(1)}'")
23 return f
32 raise InputError(f"Error at line {line_no + 1}: {err}")
34 sys.stderr.write(f"Unexpected error parsing line {line_no + 1}: {line}")
55 f"Error at line {line_no + 1}: {i} missing field name"
70 p.field_name = f"{p.field_name}_{i_count}"
72 p.alt_names = f"{p.alt_names}_{i_count}"
[all …]
/hal_espressif-latest/components/esp_system/port/arch/xtensa/
Dpanic_arch.c34 void panic_print_registers(const void *f, int core) in panic_print_registers() argument
36 XtExcFrame *frame = (XtExcFrame *) f; in panic_print_registers()
98 static void print_illegal_instruction_details(const void *f) in print_illegal_instruction_details() argument
100 XtExcFrame *frame = (XtExcFrame *) f; in print_illegal_instruction_details()
124 static void print_debug_exception_details(const void *f) in print_debug_exception_details() argument
144 if (f == g_exc_frames[1]) { in print_debug_exception_details()
172 static inline void print_cache_err_details(const void *f) in print_cache_err_details() argument
261 static inline void print_memprot_err_details(const void *f) in print_memprot_err_details() argument
295 static inline void print_cache_err_details(const void *f) in print_cache_err_details() argument
364 void panic_arch_fill_info(void *f, panic_info_t *info) in panic_arch_fill_info() argument
[all …]
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32c5/
Dmem_definition.py130 with open(f"{efuse_file}", "r") as r_file:
155 f = Field()
156 f.name = "MAC_EUI64"
157 f.block = 1
158 f.bit_len = 64
159 f.type = f"bytes:{f.bit_len // 8}"
160 f.category = "MAC"
161 f.class_type = "mac"
162f.description = "calc MAC_EUI64 = MAC[0]:MAC[1]:MAC[2]:MAC_EXT[0]:MAC_EXT[1]:MAC[3]:MAC[4]:MAC[5]"
163 self.CALC.append(f)
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32c5beta3/
Dmem_definition.py130 with open(f"{efuse_file}", "r") as r_file:
155 f = Field()
156 f.name = "MAC_EUI64"
157 f.block = 1
158 f.bit_len = 64
159 f.type = f"bytes:{f.bit_len // 8}"
160 f.category = "MAC"
161 f.class_type = "mac"
162f.description = "calc MAC_EUI64 = MAC[0]:MAC[1]:MAC[2]:MAC_EXT[0]:MAC_EXT[1]:MAC[3]:MAC[4]:MAC[5]"
163 self.CALC.append(f)
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32c6/
Dmem_definition.py130 with open(f"{efuse_file}", "r") as r_file:
155 f = Field()
156 f.name = "MAC_EUI64"
157 f.block = 1
158 f.bit_len = 64
159 f.type = f"bytes:{f.bit_len // 8}"
160 f.category = "MAC"
161 f.class_type = "mac"
162f.description = "calc MAC_EUI64 = MAC[0]:MAC[1]:MAC[2]:MAC_EXT[0]:MAC_EXT[1]:MAC[3]:MAC[4]:MAC[5]"
163 self.CALC.append(f)
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32h2/
Dmem_definition.py130 with open(f"{efuse_file}", "r") as r_file:
155 f = Field()
156 f.name = "MAC_EUI64"
157 f.block = 1
158 f.bit_len = 64
159 f.type = f"bytes:{f.bit_len // 8}"
160 f.category = "MAC"
161 f.class_type = "mac"
162f.description = "calc MAC_EUI64 = MAC[0]:MAC[1]:MAC[2]:MAC_EXT[0]:MAC_EXT[1]:MAC[3]:MAC[4]:MAC[5]"
163 self.CALC.append(f)
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32s3/
Dmem_definition.py131 with open(f"{efuse_file}", "r") as r_file:
156 f = Field()
157 f.name = "WAFER_VERSION_MINOR"
158 f.block = 0
159 f.bit_len = 4
160 f.type = f"uint:{f.bit_len}"
161 f.category = "identity"
162 f.class_type = "wafer"
163f.description = "calc WAFER VERSION MINOR = WAFER_VERSION_MINOR_HI << 3 + WAFER_VERSION_MINOR_LO (…
164 self.CALC.append(f)
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32c3/
Dmem_definition.py146 with open(f"{efuse_file}", "r") as r_file:
175 f = Field()
176 f.name = "WAFER_VERSION_MINOR"
177 f.block = 0
178 f.bit_len = 4
179 f.type = f"uint:{f.bit_len}"
180 f.category = "identity"
181 f.class_type = "wafer"
182f.description = "calc WAFER VERSION MINOR = WAFER_VERSION_MINOR_HI << 3 + WAFER_VERSION_MINOR_LO (…
183 self.CALC.append(f)
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32s3beta2/
Dmem_definition.py132 with open(f"{efuse_file}", "r") as r_file:
157 f = Field()
158 f.name = "WAFER_VERSION_MINOR"
159 f.block = 0
160 f.bit_len = 4
161 f.type = f"uint:{f.bit_len}"
162 f.category = "identity"
163 f.class_type = "wafer"
164f.description = "calc WAFER VERSION MINOR = WAFER_VERSION_MINOR_HI << 3 + WAFER_VERSION_MINOR_LO (…
165 self.CALC.append(f)
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32s2/
Dmem_definition.py169 with open(f"{efuse_file}", "r") as r_file:
194 f = Field()
195 f.name = "WAFER_VERSION_MINOR"
196 f.block = 0
197 f.bit_len = 4
198 f.type = f"uint:{f.bit_len}"
199 f.category = "identity"
200 f.class_type = "wafer"
201f.description = "calc WAFER VERSION MINOR = WAFER_VERSION_MINOR_HI << 3 + WAFER_VERSION_MINOR_LO (…
202 self.CALC.append(f)
/hal_espressif-latest/zephyr/scripts/blobs/
Desp_genblobs.py45 with open(SUBMODULES) as f:
46 for submodule in f:
70 with open(path,"rb") as f:
71 f_byte = f.read()
80 with open(SUBMODULES) as f:
81 for submodule in f:
106 with open(MODULE_PATH, "w+") as f:
107 f.write(file_out)
108 f.close()
/hal_espressif-latest/components/esp_system/include/esp_private/
Dstartup_internal.h68 #define ESP_SYSTEM_INIT_FN(f, c, priority, ...) \ argument
69 static esp_err_t __VA_ARGS__ __esp_system_init_fn_##f(void); \
71 …esp_system_init_fn_t esp_system_init_fn_##f = { .fn = ( __esp_system_init_fn_##f), .cores = (c) };…
72 static esp_err_t __esp_system_init_fn_##f(void)
/hal_espressif-latest/components/esp_system/port/soc/esp32/
Dhighint_hdl.S117 beqz \reg, 99f /* not ETS_T1_WDT_INUM or ETS_CACHEERR_INUM */
120 bnez \reg, 98f
127 j 99f
168 beqz a0, 1f
185 beqz a0, 1f
200 beqz a0, 1f
240 bnez a0, 1f
246 beqz a0, 1f
255 j 9f
265 bnez a0, 2f
[all …]
/hal_espressif-latest/tools/esptool_py/ci/
Ddownload_flasher_stubs.py70 print(f"Removing old file {old_file}")
77 print(f"Downloading {url} to {dest}")
80 with open(os.path.join(dest_sub_dir, "README.md"), "w") as f:
81 print(f"Writing README to {f.name}")
82 f.write(
/hal_espressif-latest/components/xtensa/
Dxtensa_intr.c76 xt_exc_handler xt_set_exception_handler(int n, xt_exc_handler f) in xt_set_exception_handler() argument
87 if (f) { in xt_set_exception_handler()
88 _xt_exception_table[n] = f; in xt_set_exception_handler()
131 xt_handler xt_set_interrupt_handler(int n, xt_handler f, void * arg) in xt_set_interrupt_handler() argument
147 if (f) { in xt_set_interrupt_handler()
148 entry->handler = f; in xt_set_interrupt_handler()

123456