Home
last modified time | relevance | path

Searched refs:checksum (Results 1 – 13 of 13) sorted by relevance

/hal_espressif-latest/components/esp_hw_support/
Desp_clk.c60 uint32_t checksum; member
63 _Static_assert(offsetof(retain_mem_t, checksum) == sizeof(retain_mem_t) - sizeof(uint32_t), "Wrong …
69 uint32_t checksum = 0; in calc_checksum() local
72 …for (uint32_t i = 0; i < (sizeof(retain_mem_t) - sizeof(s_rtc_timer_retain_mem.checksum)) / 4; i++… in calc_checksum()
73 checksum = ((checksum << 5) - checksum) ^ data[i]; in calc_checksum()
75 return checksum; in calc_checksum()
77 #define IS_RETAIN_MEM_VALID() (s_rtc_timer_retain_mem.checksum == calc_checksum())
152 s_rtc_timer_retain_mem.checksum = calc_checksum(); in esp_rtc_get_time_us()
/hal_espressif-latest/tools/esptool_py/esptool/
Dbin_image.py290 def save_segment(self, f, segment, checksum=None): argument
298 if checksum is not None:
299 return ESPLoader.checksum(segment_data, checksum)
301 def save_flash_segment(self, f, segment, checksum=None): argument
313 return self.save_segment(f, segment, checksum)
327 checksum = ESPLoader.ESP_CHECKSUM_MAGIC
330 checksum = ESPLoader.checksum(seg.data, checksum)
331 return checksum
333 def append_checksum(self, f, checksum): argument
336 f.write(struct.pack(b"B", checksum))
[all …]
Dloader.py436 def checksum(data, state=ESP_CHECKSUM_MAGIC): member in ESPLoader
874 self.checksum(data),
931 self.checksum(data),
957 self.checksum(data),
1136 self.checksum(data),
Dcmds.py891 image.checksum,
894 if image.checksum == calc_checksum
1017 image.checksum,
1020 if image.checksum == calc_checksum
/hal_espressif-latest/components/bootloader_support/src/
Desp_image_format.c88 …ata_t *data, bool silent, bool do_load, bootloader_sha256_handle_t sha_handle, uint32_t *checksum);
90 … silent, bool do_load, bootloader_sha256_handle_t sha_handle, uint32_t *checksum, esp_image_metada…
93 …ata_len, bool do_load, bootloader_sha256_handle_t sha_handle, uint32_t *checksum, esp_image_metada…
137 uint32_t *checksum = (do_verify) ? &checksum_word : NULL; in image_load() local
167 CHECK_ERR(process_segments(data, silent, do_load, sha_handle, checksum)); in image_load()
521 …data_t *data, bool silent, bool do_load, bootloader_sha256_handle_t sha_handle, uint32_t *checksum) in process_segments() argument
529 … CHECK_ERR(process_segment(i, next_addr, header, silent, do_load, sha_handle, checksum, data)); in process_segments()
550 … silent, bool do_load, bootloader_sha256_handle_t sha_handle, uint32_t *checksum, esp_image_metada… in process_segment() argument
608 …cess_segment_data(index, load_addr, data_addr, data_len, do_load, sha_handle, checksum, metadata)); in process_segment()
629 …a(const uint32_t *src, bootloader_sha256_handle_t sha_handle, uint32_t *checksum, esp_image_metada… in process_esp_app_desc_data() argument
[all …]
/hal_espressif-latest/components/bt/common/btc/profile/esp/blufi/
Dblufi_prf.c99 uint16_t checksum, checksum_pkt; in btc_blufi_recv_handler() local
124 checksum = blufi_env.cbs->checksum_func(hdr->seq, &hdr->seq, hdr->data_len + 2); in btc_blufi_recv_handler()
126 if (checksum != checksum_pkt) { in btc_blufi_recv_handler()
127 BTC_TRACE_ERROR("%s checksum error %04x, pkt %04x\n", __func__, checksum, checksum_pkt); in btc_blufi_recv_handler()
196 uint16_t checksum; in btc_blufi_send_encap() local
236 checksum = blufi_env.cbs->checksum_func(hdr->seq, &hdr->seq, hdr->data_len + 2); in btc_blufi_send_encap()
237 memcpy(&hdr->data[hdr->data_len], &checksum, 2); in btc_blufi_send_encap()
243 checksum = blufi_env.cbs->checksum_func(hdr->seq, &hdr->seq, hdr->data_len + 2); in btc_blufi_send_encap()
244 memcpy(&hdr->data[hdr->data_len], &checksum, 2); in btc_blufi_send_encap()
/hal_espressif-latest/tools/esptool_py/docs/en/advanced-topics/
Dfirmware-image-format.rst143 …| 15 | Hash appended (If 1, SHA256 digest is appended after the checksum) …
162 …thus making the file size a multiple of 16) is the checksum of the data of all segments. The check…
166 …SHA256 digest “simple hash” (of the entire image) is appended after the checksum. This digest is s…
Dserial-protocol.rst32 … ``0xDB 0xDD``, respectively. The replacing is to be done **after** the checksum and lengths are c…
53 | 4-7 | Checksum | Simple checksum of part of the data field (only used for some commands, se…
214 … | Error code ``0xC1`` on checksum error. …
253 … | Error code ``0xC1`` on checksum error. …
282 The checksum field is ignored (can be zero) for all commands except for MEM_DATA, FLASH_DATA, and F…
298 The checksum is only applied to this final "data to write" section, not the first 16 bytes of data.
300 …calculate checksum, start with seed value 0xEF and XOR each individual byte in the "data to write"…
304 …Because this checksum is not adequate to ensure valid data, the SPI_FLASH_MD5 command was added to…
370 …The 8-bit checksum used in the upload protocol is not sufficient to ensure valid flash contents af…
374 …The 8-bit checksum used in the upload protocol is not sufficient to ensure valid flash contents af…
/hal_espressif-latest/tools/esptool_py/flasher_stub/include/
Dstub_flasher.h73 int32_t checksum; member
/hal_espressif-latest/tools/esptool_py/flasher_stub/
Dstub_flasher.c323 if (data_checksum != command->checksum) { in cmd_loop()
/hal_espressif-latest/components/esp_phy/src/
Dphy_init.c803 static esp_err_t phy_crc_check_init_data(uint8_t* init_data, const uint8_t* checksum, size_t init_d… in phy_crc_check_init_data() argument
809 if (crc_size_conversion != *(uint32_t*)(checksum)) { in phy_crc_check_init_data()
/hal_espressif-latest/tools/esptool_py/docs/en/esptool/
Dbasic-commands.rst220 …header with the quantity of these segments, and also writing only their checksum. This segment pla…
282 * **Validity Checks**: Each line in an Intel Hex file has a checksum to help find errors and make s…
/hal_espressif-latest/components/bootloader/
DKconfig.projbuild1057 includes the size of the app image, checksum, hash and also the signature sector