/hal_espressif-3.6.0/components/spi_flash/ |
D | esp_flash_api.c | 88 esp_err_t esp_flash_read_chip_id(esp_flash_t* chip, uint32_t* flash_id); 91 static esp_err_t spiflash_start_default(esp_flash_t *chip); 92 static esp_err_t spiflash_end_default(esp_flash_t *chip, esp_err_t err); 94 static esp_err_t flash_end_flush_cache(esp_flash_t* chip, esp_err_t err, bool bus_acquired, uint32_… 98 esp_err_t (*start)(esp_flash_t *chip); 99 esp_err_t (*end)(esp_flash_t *chip, esp_err_t err); 101 …esp_err_t (*flash_end_flush_cache)(esp_flash_t* chip, esp_err_t err, bool bus_acquired, uint32_t a… 125 static esp_err_t IRAM_ATTR spiflash_start_default(esp_flash_t *chip) in spiflash_start_default() argument 127 if (chip->os_func != NULL && chip->os_func->start != NULL) { in spiflash_start_default() 128 esp_err_t err = chip->os_func->start(chip->os_func_data); in spiflash_start_default() [all …]
|
D | spi_flash_chip_generic.c | 76 esp_err_t spi_flash_chip_generic_probe(esp_flash_t *chip, uint32_t flash_id) in spi_flash_chip_generic_probe() argument 83 esp_err_t spi_flash_chip_generic_reset(esp_flash_t *chip) in spi_flash_chip_generic_reset() argument 90 esp_err_t err = chip->host->driver->common_command(chip->host, &t); in spi_flash_chip_generic_reset() 98 err = chip->host->driver->common_command(chip->host, &t); in spi_flash_chip_generic_reset() 103 err = chip->chip_drv->wait_idle(chip, chip->chip_drv->timeout->idle_timeout); in spi_flash_chip_generic_reset() 107 esp_err_t spi_flash_chip_generic_detect_size(esp_flash_t *chip, uint32_t *size) in spi_flash_chip_generic_detect_size() argument 109 uint32_t id = chip->chip_id; in spi_flash_chip_generic_detect_size() 123 esp_err_t spi_flash_chip_generic_erase_chip(esp_flash_t *chip) in spi_flash_chip_generic_erase_chip() argument 127 err = chip->chip_drv->set_chip_write_protect(chip, false); in spi_flash_chip_generic_erase_chip() 129 err = chip->chip_drv->wait_idle(chip, chip->chip_drv->timeout->idle_timeout); in spi_flash_chip_generic_erase_chip() [all …]
|
D | spi_flash_chip_mxic_opi.c | 33 esp_err_t spi_flash_chip_mxic_opi_probe(esp_flash_t *chip, uint32_t flash_id) in spi_flash_chip_mxic_opi_probe() argument 41 if (chip->read_mode < SPI_FLASH_OPI_FLAG) { in spi_flash_chip_mxic_opi_probe() 49 spi_flash_caps_t spi_flash_chip_mxic_opi_get_caps(esp_flash_t *chip) in spi_flash_chip_mxic_opi_get_caps() argument 58 esp_err_t spi_flash_chip_mxic_opi_set_write_protect(esp_flash_t *chip, bool write_protect) in spi_flash_chip_mxic_opi_set_write_protect() argument 62 err = chip->chip_drv->wait_idle(chip, chip->chip_drv->timeout->idle_timeout); in spi_flash_chip_mxic_opi_set_write_protect() 70 err = chip->host->driver->common_command(chip->host, &t); in spi_flash_chip_mxic_opi_set_write_protect() 74 err = chip->chip_drv->get_chip_write_protect(chip, &wp_read); in spi_flash_chip_mxic_opi_set_write_protect() 90 esp_err_t spi_flash_chip_mxic_opi_read_id(esp_flash_t *chip, uint32_t* out_chip_id) in spi_flash_chip_mxic_opi_read_id() argument 94 spi_flash_chip_mxic_opi_get_data_length_zoom(chip->read_mode, &length_zoom); in spi_flash_chip_mxic_opi_read_id() 103 chip->host->driver->common_command(chip->host, &t); in spi_flash_chip_mxic_opi_read_id() [all …]
|
D | spi_flash_chip_winbond.c | 30 static esp_err_t spi_flash_command_winbond_program_4B(esp_flash_t *chip, const void *buffer, uint32… 31 static esp_err_t spi_flash_command_winbond_erase_sector_4B(esp_flash_t *chip, uint32_t start_addres… 32 static esp_err_t spi_flash_command_erase_block_4B(esp_flash_t *chip, uint32_t start_address); 34 esp_err_t spi_flash_chip_winbond_probe(esp_flash_t *chip, uint32_t flash_id) in spi_flash_chip_winbond_probe() argument 45 esp_err_t spi_flash_chip_winbond_read(esp_flash_t *chip, void *buffer, uint32_t address, uint32_t l… in spi_flash_chip_winbond_read() argument 48 const uint32_t page_size = chip->chip_drv->page_size; in spi_flash_chip_winbond_read() 57 err = chip->chip_drv->config_host_io_mode(chip, config_io_flags); in spi_flash_chip_winbond_read() 66 …uint32_t read_len = chip->host->driver->read_data_slicer(chip->host, address, length, &align_addre… in spi_flash_chip_winbond_read() 69 err = chip->host->driver->read(chip->host, temp_buffer, align_address, read_len); in spi_flash_chip_winbond_read() 81 esp_err_t spi_flash_chip_winbond_page_program(esp_flash_t *chip, const void *buffer, uint32_t addre… in spi_flash_chip_winbond_page_program() argument [all …]
|
D | spi_flash_chip_gd.c | 27 extern esp_err_t spi_flash_chip_winbond_read(esp_flash_t *chip, void *buffer, uint32_t address, uin… 28 extern esp_err_t spi_flash_chip_winbond_page_program(esp_flash_t *chip, const void *buffer, uint32_… 29 extern esp_err_t spi_flash_chip_winbond_erase_sector(esp_flash_t *chip, uint32_t start_address); 30 extern esp_err_t spi_flash_chip_winbond_erase_block(esp_flash_t *chip, uint32_t start_address); 37 spi_flash_caps_t spi_flash_chip_gd_get_caps(esp_flash_t *chip) in spi_flash_chip_gd_get_caps() argument 41 if ((chip->chip_id & 0xFF) >= 0x19) { in spi_flash_chip_gd_get_caps() 62 esp_err_t spi_flash_chip_gd_probe(esp_flash_t *chip, uint32_t flash_id) in spi_flash_chip_gd_probe() argument 78 esp_err_t spi_flash_chip_gd_set_io_mode(esp_flash_t *chip) in spi_flash_chip_gd_set_io_mode() argument 80 if (WRSR_16B_REQUIRED(chip->chip_id)) { in spi_flash_chip_gd_set_io_mode() 82 return spi_flash_common_set_io_mode(chip, in spi_flash_chip_gd_set_io_mode() [all …]
|
D | esp_flash_spi_init.c | 148 static IRAM_ATTR NOINLINE_ATTR void cs_initialize(esp_flash_t *chip, const esp_flash_spi_device_con… in cs_initialize() argument 161 chip->os_func->start(chip->os_func_data); in cs_initialize() 182 chip->os_func->end(chip->os_func_data); in cs_initialize() 193 esp_flash_t *chip = NULL; in spi_bus_add_flash_device() local 200 chip = (esp_flash_t*)heap_caps_malloc(sizeof(esp_flash_t), caps); in spi_bus_add_flash_device() 201 if (!chip) { in spi_bus_add_flash_device() 207 *chip = (esp_flash_t) { in spi_bus_add_flash_device() 217 esp_err_t err = esp_flash_init_os_functions(chip, config->host_id, &dev_id); in spi_bus_add_flash_device() 250 cs_initialize(chip, config, use_iomux, dev_id); in spi_bus_add_flash_device() 251 *out_chip = chip; in spi_bus_add_flash_device() [all …]
|
D | spi_flash_os_func_app.c | 225 esp_err_t esp_flash_init_os_functions(esp_flash_t *chip, int host_id, int* out_dev_id) in esp_flash_init_os_functions() argument 241 chip->os_func = &esp_flash_spi1_default_os_functions; in esp_flash_init_os_functions() 242 chip->os_func_data = heap_caps_malloc(sizeof(spi1_app_func_arg_t), in esp_flash_init_os_functions() 244 if (chip->os_func_data == NULL) { in esp_flash_init_os_functions() 247 *(spi1_app_func_arg_t*) chip->os_func_data = (spi1_app_func_arg_t) { in esp_flash_init_os_functions() 255 chip->os_func = &esp_flash_spi23_default_os_functions; in esp_flash_init_os_functions() 256 chip->os_func_data = heap_caps_malloc(sizeof(app_func_arg_t), in esp_flash_init_os_functions() 258 if (chip->os_func_data == NULL) { in esp_flash_init_os_functions() 261 *(app_func_arg_t*) chip->os_func_data = (app_func_arg_t) { in esp_flash_init_os_functions() 276 esp_err_t esp_flash_deinit_os_functions(esp_flash_t* chip) in esp_flash_deinit_os_functions() argument [all …]
|
D | spi_flash_chip_issi.c | 22 esp_err_t spi_flash_chip_issi_probe(esp_flash_t *chip, uint32_t flash_id) in spi_flash_chip_issi_probe() argument 39 esp_err_t spi_flash_chip_issi_set_io_mode(esp_flash_t *chip) in spi_flash_chip_issi_set_io_mode() argument 43 return spi_flash_common_set_io_mode(chip, in spi_flash_chip_issi_set_io_mode() 49 esp_err_t spi_flash_chip_issi_get_io_mode(esp_flash_t *chip, esp_flash_io_mode_t* out_io_mode) in spi_flash_chip_issi_get_io_mode() argument 54 esp_err_t ret = spi_flash_common_read_status_8b_rdsr(chip, &sr); in spi_flash_chip_issi_get_io_mode() 61 spi_flash_caps_t spi_flash_chip_issi_get_caps(esp_flash_t *chip) in spi_flash_chip_issi_get_caps() argument
|
D | Kconfig | 54 SPI flash chip is manufactured by ISSI. 114 main flash chip. 116 If you only need to use esp_flash driver to access the main flash chip, disable 160 Auto-suspend feature only supported by XMC chip. 187 …This option is helpful if you are using a flash chip whose timeout is quite large or unpredictable. 190 bool "Override default chip driver list" 194 …This option allows the chip driver list to be customized, instead of using the default list provid… 209 Enable this to support auto detection of ISSI chips if chip vendor not directly 210 given by ``chip_drv`` member of the chip struct. This adds support for variant 217 Enable this to support auto detection of MXIC chips if chip vendor not directly [all …]
|
D | spi_flash_chip_mxic.c | 23 esp_err_t spi_flash_chip_mxic_probe(esp_flash_t *chip, uint32_t flash_id) in spi_flash_chip_mxic_probe() argument 30 if (chip->read_mode >= SPI_FLASH_OPI_FLAG) { in spi_flash_chip_mxic_probe() 38 esp_err_t spi_flash_chip_issi_set_io_mode(esp_flash_t *chip); 39 esp_err_t spi_flash_chip_issi_get_io_mode(esp_flash_t *chip, esp_flash_io_mode_t* out_io_mode); 48 spi_flash_caps_t spi_flash_chip_mxic_get_caps(esp_flash_t *chip) in spi_flash_chip_mxic_get_caps() argument
|
/hal_espressif-3.6.0/components/spi_flash/include/ |
D | spi_flash_chip_generic.h | 42 esp_err_t spi_flash_chip_generic_probe(esp_flash_t *chip, uint32_t flash_id); 51 esp_err_t spi_flash_chip_generic_reset(esp_flash_t *chip); 66 esp_err_t spi_flash_chip_generic_detect_size(esp_flash_t *chip, uint32_t *size); 78 esp_err_t spi_flash_chip_generic_erase_chip(esp_flash_t *chip); 91 esp_err_t spi_flash_chip_generic_erase_sector(esp_flash_t *chip, uint32_t start_address); 104 esp_err_t spi_flash_chip_generic_erase_block(esp_flash_t *chip, uint32_t start_address); 117 esp_err_t spi_flash_chip_generic_read(esp_flash_t *chip, void *buffer, uint32_t address, uint32_t l… 139 spi_flash_chip_generic_page_program(esp_flash_t *chip, const void *buffer, uint32_t address, uint32… 154 esp_err_t spi_flash_chip_generic_write(esp_flash_t *chip, const void *buffer, uint32_t address, uin… 167 spi_flash_chip_generic_write_encrypted(esp_flash_t *chip, const void *buffer, uint32_t address, uin… [all …]
|
D | spi_flash_chip_driver.h | 80 esp_err_t (*probe)(esp_flash_t *chip, uint32_t flash_id); 82 esp_err_t (*reset)(esp_flash_t *chip); 89 esp_err_t (*detect_size)(esp_flash_t *chip, uint32_t *size); 95 esp_err_t (*erase_chip)(esp_flash_t *chip); 103 esp_err_t (*erase_sector)(esp_flash_t *chip, uint32_t sector_address); 110 esp_err_t (*erase_block)(esp_flash_t *chip, uint32_t block_address); 116 esp_err_t (*get_chip_write_protect)(esp_flash_t *chip, bool *out_write_protected); 119 esp_err_t (*set_chip_write_protect)(esp_flash_t *chip, bool chip_write_protect); 127 esp_err_t (*get_protected_regions)(esp_flash_t *chip, uint64_t *regions); 130 esp_err_t (*set_protected_regions)(esp_flash_t *chip, uint64_t regions); [all …]
|
D | esp_flash.h | 125 esp_err_t esp_flash_init(esp_flash_t *chip); 134 bool esp_flash_chip_driver_initialized(const esp_flash_t *chip); 145 esp_err_t esp_flash_read_id(esp_flash_t *chip, uint32_t *out_id); 157 esp_err_t esp_flash_get_size(esp_flash_t *chip, uint32_t *out_size); 170 esp_err_t esp_flash_read_unique_chip_id(esp_flash_t *chip, uint64_t *out_id); 182 esp_err_t esp_flash_erase_chip(esp_flash_t *chip); 202 esp_err_t esp_flash_erase_region(esp_flash_t *chip, uint32_t start, uint32_t len); 214 esp_err_t esp_flash_get_chip_write_protect(esp_flash_t *chip, bool *write_protected); 229 esp_err_t esp_flash_set_chip_write_protect(esp_flash_t *chip, bool write_protect); 243 esp_err_t esp_flash_get_protectable_regions(const esp_flash_t *chip, const esp_flash_region_t **out… [all …]
|
/hal_espressif-3.6.0/components/spi_flash/test/ |
D | test_esp_flash.c | 261 static void get_chip_host(esp_flash_t* chip, spi_host_device_t* out_host_id, int* out_cs_id) in get_chip_host() argument 265 if (chip == NULL) { in get_chip_host() 269 spi_flash_hal_context_t* host_data = (spi_flash_hal_context_t*)chip->host; in get_chip_host() 402 static void teardown_test_chip(esp_flash_t* chip) in teardown_test_chip() argument 405 get_chip_host(chip, &host_id, NULL); in teardown_test_chip() 407 spi_bus_remove_flash_device(chip); in teardown_test_chip() 413 esp_flash_t* chip; in flash_test_core() local 414 setup_new_chip(config, &chip); in flash_test_core() 417 esp_err_t err = esp_flash_get_size(chip, &size); in flash_test_core() 425 part.flash_chip = chip; in flash_test_core() [all …]
|
/hal_espressif-3.6.0/components/espcoredump/test/ |
D | test_espcoredump.sh | 22 for chip in "${SUPPORTED_TARGETS[@]}"; do 24 echo "run b64 decoding tests on $chip" 25 …p.py --chip="$chip" --gdb-timeout-sec 5 info_corefile -m -t b64 -c "${chip}/coredump.b64" -s "${ch… 26 diff "${chip}/expected_output" "${chip}/output" && 27 …../espcoredump.py --chip="$chip" --gdb-timeout-sec 5 info_corefile -m -t elf -c "${chip}/core.elf"… 28 diff "${chip}/expected_output" "${chip}/output2"
|
/hal_espressif-3.6.0/examples/storage/custom_flash_driver/components/custom_chip_driver/ |
D | spi_flash_chip_eon.c | 25 esp_err_t spi_flash_chip_eon_probe(esp_flash_t *chip, uint32_t flash_id) in spi_flash_chip_eon_probe() argument 36 static esp_err_t spi_flash_chip_eon_enter_otp_mode(esp_flash_t* chip) in spi_flash_chip_eon_enter_otp_mode() argument 41 return chip->host->driver->common_command(chip->host, &trans); in spi_flash_chip_eon_enter_otp_mode() 44 static esp_err_t spi_flash_chip_eon_exit_otp_mode(esp_flash_t* chip) in spi_flash_chip_eon_exit_otp_mode() argument 49 return chip->host->driver->common_command(chip->host, &trans); in spi_flash_chip_eon_exit_otp_mode() 52 esp_err_t spi_flash_chip_eon_get_io_mode(esp_flash_t *chip, esp_flash_io_mode_t* out_io_mode) in spi_flash_chip_eon_get_io_mode() argument 55 ret = spi_flash_chip_eon_enter_otp_mode(chip); in spi_flash_chip_eon_get_io_mode() 65 ret = spi_flash_common_read_status_8b_rdsr(chip, &sr); in spi_flash_chip_eon_get_io_mode() 71 esp_err_t ret_exit = spi_flash_chip_eon_exit_otp_mode(chip); in spi_flash_chip_eon_get_io_mode() 78 esp_err_t spi_flash_chip_eon_set_io_mode(esp_flash_t *chip) in spi_flash_chip_eon_set_io_mode() argument [all …]
|
/hal_espressif-3.6.0/components/driver/test/ |
D | test_spi_bus_lock.c | 40 esp_flash_t* chip; member 145 static void write_large_buffer(esp_flash_t *chip, const esp_partition_t *part, const uint8_t *sourc… in write_large_buffer() argument 147 printf("Erasing chip %p, %d bytes\n", chip, length); in write_large_buffer() 149 …TEST_ESP_OK(esp_flash_erase_region(chip, part->address, (length + SPI_FLASH_SEC_SIZE) & ~(SPI_FLAS… in write_large_buffer() 151 printf("Writing chip %p, %d bytes from source %p\n", chip, length, source); in write_large_buffer() 153 TEST_ESP_OK(esp_flash_write(chip, source, part->address + 1, length) ); in write_large_buffer() 158 static void read_and_check(esp_flash_t *chip, const esp_partition_t *part, const uint8_t *source, s… in read_and_check() argument 160 printf("Checking chip %p, %d bytes\n", chip, length); in read_and_check() 163 TEST_ESP_OK(esp_flash_read(chip, buf, part->address + 1, length) ); in read_and_check() 170 TEST_ESP_OK(esp_flash_read(chip, ends, part->address, sizeof(ends)) ); in read_and_check() [all …]
|
/hal_espressif-3.6.0/docs/en/api-reference/storage/ |
D | spi_flash_override_driver.rst | 7 …chip detection step during which the driver will iterate through a Default Chip Driver List and de… 9 Users should note the following when customizing chip drivers: 12 …2. Some IDF bug fixes to other chip drivers will not be automatically applied to your own custom c… 14 …rt for more chips, you will have to manually add those new chip drivers into your custom chip driv… 22 3. Copy the necessary chip driver files from the `spi_flash` component in IDF. This may include: 31 …- When writing your own flash chip driver, you can set your flash chip capabilities through `spi_f… 33 …1. Please check whether your flash chip have the capabilities listed in `spi_flash_caps_t` by chec… 39 spi_flash_caps_t spi_flash_chip_***(vendor)_get_caps(esp_flash_t *chip) 64 5. The `linker.lf` is used to put every chip driver that you are going to use whilst cache is disab…
|
/hal_espressif-3.6.0/components/esptool_py/esptool/docs/en/advanced-topics/ |
D | spi-flash-modes.rst | 8 These options control how many I/O pins are used for communication with the attached SPI flash chip… 10 …g or executing code and data from the SPI flash chip. Data is read and then cached internally to t… 55 …Each read command and the read address is sent from the host to the flash chip via normal SPI, but… 58 …command is sent from the host to the flash chip via normal SPI, but then the address is sent to th… 63 Consult the datasheet for your particular SPI flash chip to determine if it supports either or both… 68 … SPI" mode. This mode added two additional pins (otherwise used for flash chip ``WP`` and ``HOLD``… 70 …PI modes, and not all ESP chips have these pins wired up to the SPI flash chip. Some flash chips r… 80 Why don't qio & qout modes work with my Espressif chip/module? 85 * The WP and HOLD pins of the SPI flash chip are not wired to the correct GPIOs of the Espressif ch… 86 … SPI flash chip does not support quad modes. Look up the flash chip datasheet to see which modes i… [all …]
|
/hal_espressif-3.6.0/components/esptool_py/esptool/flasher_stub/ |
D | compare_stubs.py | 69 for chip in esptool.CHIP_LIST: 70 print("Comparing {} stub: ".format(chip), end="") 72 chip = chip.replace("esp", "") variable 73 old = os.path.join(THIS_SCRIPT_DIR, STUB_DIR, JSON_NAME.format(chip)) 74 new = os.path.join(THIS_SCRIPT_DIR, BUILD_DIR, JSON_NAME.format(chip)) 82 "from the just-built stub".format("esp" + chip)
|
/hal_espressif-3.6.0/tools/idf_monitor_base/ |
D | chip_specific_config.py | 51 def get_chip_config(chip, revision=0): argument 61 if chip not in conf.keys(): 63 chip_revisions = sorted(list(conf[chip].keys()), key=int) 67 for key in conf[chip][rev].keys(): 68 default[key] = conf[chip][rev][key]
|
/hal_espressif-3.6.0/examples/storage/ext_flash_fatfs/ |
D | README.md | 8 …r_levelling/README.md) example, except that it uses an external SPI Flash chip. This can be useful… 14 …ize the SPI flash chip. This involves creating a run-time object which describes the flash chip (`… 16 …chip as a *partition* (`esp_partition_t`). This allows other components (FATFS, SPIFFS, NVS, etc) … 24 … Flash chip connected to the ESP32. The SPI Flash chip must have 3.3V logic levels. The example ha… 61 I (348) spi_flash: detected chip: generic
|
/hal_espressif-3.6.0/components/esptool_py/esptool/docs/en/esptool/ |
D | advanced-options.rst | 13 …y default, esptool tries to hard reset the chip into bootloader mode before it starts and hard res… 18 The ``--before`` argument allows you to specify whether the chip needs resetting into bootloader mo… 22 …al control lines (see :ref:`entering-the-bootloader`) to try to reset the chip into bootloader mod… 23 … just start sending a serial synchronisation command to the chip. This is useful if your chip does… 24 …nd. This is useful if your chip is already running the :ref:`stub bootloader <stub>` and you want … 30 The ``--after`` argument allows you to specify whether the chip should be reset after the esptool o… 34 …* ``--after hard_reset`` is the default. The DTR serial control line is used to reset the chip int… 36 * ``--after no_reset`` leaves the chip in the serial bootloader, no reset is performed. 37 * ``--after no_reset_stub`` leaves the chip in the stub bootloader, no reset is performed. 46 …stub`` will disable certain options, as not all options are implemented in every chip's ROM loader. [all …]
|
/hal_espressif-3.6.0/components/espcoredump/test_apps/ |
D | build_espcoredump.sh | 15 for chip in "${SUPPORTED_TARGETS[@]}"; do 18 echo "building $chip binaries..." 21 idf.py set-target $chip 23 cp ./build/test_core_dump.elf "${output_dir}/${chip}.elf"
|
/hal_espressif-3.6.0/examples/peripherals/secure_element/atecc608_ecdsa/ |
D | README.md | 12 … data using hardware private key stored in ATECC608A chip. If you want to use bare `ATECC608A` chi… 16 Before project configuration and build, be sure to set the correct chip target using `idf.py set-ta… 20 …WROOM-32SE` development board which integrates Microchip’s ATECC608A CryptoAuth chip in the module. 27 ATECC608A chip on ESP32-WROOM-32SE should be configured to run the example, for details on configur… 33 * Use `Choose the type of ATECC608A chip` to set the Crypto IC type [1]. 40 … ATECC608A chip type](https://github.com/espressif/esp-cryptoauthlib/blob/master/esp_cryptoauth_ut…
|