/hal_espressif-3.4.0/components/esptool_py/esptool/flasher_stub/ |
D | stub_commands.c | 46 if (addr % FLASH_SECTOR_SIZE != 0) return 0x32; in handle_flash_erase() 47 if (len % FLASH_SECTOR_SIZE != 0) return 0x33; in handle_flash_erase() 53 if (esp_rom_opiflash_erase_sector(addr / FLASH_SECTOR_SIZE) != 0) return 0x35; in handle_flash_erase() 55 if (SPIEraseSector(addr / FLASH_SECTOR_SIZE) != 0) return 0x35; in handle_flash_erase() 58 if (SPIEraseSector(addr / FLASH_SECTOR_SIZE) != 0) return 0x35; in handle_flash_erase() 60 len -= FLASH_SECTOR_SIZE; in handle_flash_erase() 61 addr += FLASH_SECTOR_SIZE; in handle_flash_erase() 81 if (esp_rom_opiflash_erase_sector(addr / FLASH_SECTOR_SIZE) != 0) return 0x37; in handle_flash_erase() 83 if (SPIEraseSector(addr / FLASH_SECTOR_SIZE) != 0) return 0x37; in handle_flash_erase() 86 if (SPIEraseSector(addr / FLASH_SECTOR_SIZE) != 0) return 0x37; in handle_flash_erase() [all …]
|
D | stub_write_flash.c | 211 fs.next_erase_sector = offset / FLASH_SECTOR_SIZE; in handle_flash_begin() 213 …s.remaining_erase_sector = ((offset % FLASH_SECTOR_SIZE) + total_size + FLASH_SECTOR_SIZE - 1) / F… in handle_flash_begin() 271 if (fs.next_erase_sector * FLASH_SECTOR_SIZE < (1 << 24)) { in start_next_erase() 277 fs.next_erase_sector * FLASH_SECTOR_SIZE, 24, in start_next_erase() 289 if (fs.next_erase_sector * FLASH_SECTOR_SIZE < (1 << 24)) { in start_next_erase() 295 fs.next_erase_sector * FLASH_SECTOR_SIZE, 24, in start_next_erase() 307 uint32_t addr = fs.next_erase_sector * FLASH_SECTOR_SIZE; in start_next_erase() 314 uint32_t addr = fs.next_erase_sector * FLASH_SECTOR_SIZE; in start_next_erase() 348 last_sector = (fs.next_write + length) / FLASH_SECTOR_SIZE; in handle_flash_data() 398 last_sector = (fs.next_write + length) / FLASH_SECTOR_SIZE; in handle_flash_encrypt_data()
|
D | stub_flasher.c | 497 SPIParamCfg(0, FLASH_MAX_SIZE, FLASH_BLOCK_SIZE, FLASH_SECTOR_SIZE, in stub_main()
|
/hal_espressif-3.4.0/examples/peripherals/i2s/i2s_adc_dac/main/ |
D | app_main.c | 52 …RECORD_SIZE % FLASH_SECTOR_SIZE == 0) ? FLASH_RECORD_SIZE : FLASH_RECORD_SIZE + (FLASH_SECTOR_SIZE… 54 #define FLASH_SECTOR_SIZE (0x1000) macro 241 for (int rd_offset = 0; rd_offset < flash_wr_size; rd_offset += FLASH_SECTOR_SIZE) { in example_i2s_adc_dac() 243 esp_partition_read(data_partition, rd_offset, flash_read_buff, FLASH_SECTOR_SIZE); in example_i2s_adc_dac() 245 example_i2s_adc_data_scale(i2s_write_buff, flash_read_buff, FLASH_SECTOR_SIZE); in example_i2s_adc_dac() 247 … i2s_write(EXAMPLE_I2S_NUM, i2s_write_buff, FLASH_SECTOR_SIZE, &bytes_written, portMAX_DELAY); in example_i2s_adc_dac()
|
/hal_espressif-3.4.0/components/bootloader_support/src/flash_encryption/ |
D | flash_encrypt.c | 268 err = esp_flash_encrypt_region(FLASH_OFFS_SECURE_BOOT_IV_DIGEST, FLASH_SECTOR_SIZE); in encrypt_bootloader() 294 FLASH_SECTOR_SIZE); in encrypt_and_load_partition_table() 347 uint32_t buf[FLASH_SECTOR_SIZE / sizeof(uint32_t)]; in esp_flash_encrypt_region() 349 if (src_addr % FLASH_SECTOR_SIZE != 0) { in esp_flash_encrypt_region() 355 for (size_t i = 0; i < data_length; i += FLASH_SECTOR_SIZE) { in esp_flash_encrypt_region() 360 err = bootloader_flash_read(sec_start, buf, FLASH_SECTOR_SIZE, false); in esp_flash_encrypt_region() 364 err = bootloader_flash_erase_sector(sec_start / FLASH_SECTOR_SIZE); in esp_flash_encrypt_region() 368 err = bootloader_flash_write(sec_start, buf, FLASH_SECTOR_SIZE, true); in esp_flash_encrypt_region()
|
/hal_espressif-3.4.0/components/bootloader_support/src/esp32h2/ |
D | flash_encrypt.c | 262 FLASH_SECTOR_SIZE); in encrypt_and_load_partition_table() 314 uint32_t buf[FLASH_SECTOR_SIZE / sizeof(uint32_t)]; in esp_flash_encrypt_region() 316 if (src_addr % FLASH_SECTOR_SIZE != 0) { in esp_flash_encrypt_region() 322 for (size_t i = 0; i < data_length; i += FLASH_SECTOR_SIZE) { in esp_flash_encrypt_region() 328 err = bootloader_flash_read(sec_start, buf, FLASH_SECTOR_SIZE, false); in esp_flash_encrypt_region() 332 err = bootloader_flash_erase_sector(sec_start / FLASH_SECTOR_SIZE); in esp_flash_encrypt_region() 336 err = bootloader_flash_write(sec_start, buf, FLASH_SECTOR_SIZE, true); in esp_flash_encrypt_region()
|
D | secure_boot.c | 70 size_t sig_block_addr = flash_offset + ALIGN_UP(flash_size, FLASH_SECTOR_SIZE); in s_calculate_image_public_key_digests()
|
/hal_espressif-3.4.0/components/esptool_py/esptool/flasher_stub/include/ |
D | stub_flasher.h | 18 #define FLASH_SECTOR_SIZE 4096 macro 22 #define SECTORS_PER_BLOCK (FLASH_BLOCK_SIZE / FLASH_SECTOR_SIZE)
|
/hal_espressif-3.4.0/components/bootloader_support/src/ |
D | bootloader_flash.c | 461 if (start_addr % FLASH_SECTOR_SIZE != 0) { in bootloader_flash_erase_range() 464 if (size % FLASH_SECTOR_SIZE != 0) { in bootloader_flash_erase_range() 467 size_t start = start_addr / FLASH_SECTOR_SIZE; in bootloader_flash_erase_range() 468 size_t end = start + size / FLASH_SECTOR_SIZE; in bootloader_flash_erase_range() 469 const size_t sectors_per_block = FLASH_BLOCK_SIZE / FLASH_SECTOR_SIZE; in bootloader_flash_erase_range()
|
D | bootloader_utility.c | 260 esp_err_t err = bootloader_flash_erase_sector(offset / FLASH_SECTOR_SIZE); in write_otadata() 350 … write_otadata(&otadata[i], bs->ota_info.offset + FLASH_SECTOR_SIZE * i, write_encrypted); 398 …write_otadata(&otadata[active_otadata], bs->ota_info.offset + FLASH_SECTOR_SIZE * active_otadata, … 450 write_otadata(&otadata, bs->ota_info.offset + FLASH_SECTOR_SIZE * 0, write_encrypted);
|
D | esp_image_format.c | 813 uint32_t padded_end = (end + FLASH_SECTOR_SIZE - 1) & ~(FLASH_SECTOR_SIZE-1); in verify_secure_boot_signature()
|
/hal_espressif-3.4.0/components/bootloader_support/src/secure_boot_v2/ |
D | secure_boot_signatures_app.c | 69 size_t sig_block_addr = metadata.start_addr + ALIGN_UP(metadata.image_len, FLASH_SECTOR_SIZE); in esp_secure_boot_get_signature_blocks_for_running_app() 127 uint32_t padded_length = ALIGN_UP(length, FLASH_SECTOR_SIZE); in esp_secure_boot_verify_signature()
|
D | secure_boot_signatures_bootloader.c | 32 uint32_t padded_length = ALIGN_UP(length, FLASH_SECTOR_SIZE); in esp_secure_boot_verify_signature()
|
D | secure_boot.c | 69 size_t sig_block_addr = flash_offset + ALIGN_UP(flash_size, FLASH_SECTOR_SIZE); in s_calculate_image_public_key_digests()
|
/hal_espressif-3.4.0/components/bootloader_support/include_bootloader/ |
D | bootloader_flash_priv.h | 17 #define FLASH_SECTOR_SIZE 0x1000 macro
|
/hal_espressif-3.4.0/components/esptool_py/esptool/esptool/ |
D | loader.py | 244 FLASH_SECTOR_SIZE = 0x1000 variable in ESPLoader 1097 if offset % self.FLASH_SECTOR_SIZE != 0: 1099 if size % self.FLASH_SECTOR_SIZE != 0: 1120 struct.pack("<IIII", offset, length, self.FLASH_SECTOR_SIZE, 64), 1127 if len(data) < length and len(p) < self.FLASH_SECTOR_SIZE: 1130 % (self.FLASH_SECTOR_SIZE, len(p))
|
D | __init__.py | 1014 sector_start = address & ~(ESPLoader.FLASH_SECTOR_SIZE - 1) 1016 (address + size + ESPLoader.FLASH_SECTOR_SIZE - 1) 1017 & ~(ESPLoader.FLASH_SECTOR_SIZE - 1)
|
D | cmds.py | 473 bytes_over = address % esp.FLASH_SECTOR_SIZE 479 address, esp.FLASH_SECTOR_SIZE, bytes_over 486 div_roundup(write_end, esp.FLASH_SECTOR_SIZE) 487 * esp.FLASH_SECTOR_SIZE
|
D | bin_image.py | 486 irom_offs & ~(ESPLoader.FLASH_SECTOR_SIZE - 1),
|
/hal_espressif-3.4.0/components/esptool_py/esptool/esptool/targets/ |
D | esp8266.py | 155 sector_size = self.FLASH_SECTOR_SIZE
|
/hal_espressif-3.4.0/tools/ci/python_packages/ttfw_idf/ |
D | IDFDUT.py | 734 FLASH_SECTOR_SIZE = 4096 variable in IDFFPGADUT
|