Lines Matching full:flash

270 sfud_err sfud_spi_port_init(sfud_flash *flash) {  in sfud_spi_port_init()  argument
274 flash->spi.wr = spi_write_read; in sfud_spi_port_init()
276 flash->spi.qspi_read = qspi_read; in sfud_spi_port_init()
278 flash->spi.lock = spi_lock; in sfud_spi_port_init()
279 flash->spi.unlock = spi_unlock; in sfud_spi_port_init()
280 flash->spi.user_data = flash; in sfud_spi_port_init()
282 …rt_kprintf("[SFUD] Warning: The OS tick(%d) is less than 1000. So the flash write will take more t… in sfud_spi_port_init()
285 flash->retry.delay = retry_delay_100us; in sfud_spi_port_init()
287 flash->retry.times = 60 * 10000; in sfud_spi_port_init()
305 * Probe SPI flash by SFUD(Serial Flash Universal Driver) driver library and though SPI device.
307 * @param spi_flash_dev_name the name which will create SPI flash device
310 * @return probed SPI flash device, probe failed will return RT_NULL
316 /* using default flash SPI configuration for initialize SPI Flash in rt_sfud_flash_probe()
319 extern sfud_err sfud_device_init(sfud_flash *flash); in rt_sfud_flash_probe()
367 /* SFUD flash device initialize */ in rt_sfud_flash_probe()
377 rt_kprintf("ERROR: SPI flash probe failed by SPI device %s.\n", spi_dev_name); in rt_sfud_flash_probe()
380 …/* when initialize success, then copy SFUD flash device's geometry to RT-Thread SPI flash device */ in rt_sfud_flash_probe()
412 … DEBUG_TRACE("Probe SPI flash %s by SPI device %s success.\n",spi_flash_dev_name, spi_dev_name); in rt_sfud_flash_probe()
434 * Delete SPI flash device
436 * @param spi_flash_dev SPI flash device
479 rt_kprintf("ERROR: SFUD flash device not found!\n"); in rt_sfud_flash_find()
506 …[CMD_PROBE_INDEX] = "sf probe [spi_device] - probe and init SPI flash by given 'spi_… in sf()
508 …NDEX] = "sf write addr data1 ... dataN - write some bytes 'data' to flash starting at 'addr'… in sf()
531 /* delete the old SPI flash device */ in sf()
551 rt_kprintf("No flash device selected. Please run 'sf probe'.\n"); in sf()
565 … rt_kprintf("Read the %s flash data success. Start from 0x%08X, size is %ld. The data is:\n", in sf()
598 … rt_kprintf("Write the %s flash data success. Start from 0x%08X, size is %ld.\n", in sf()
620 … rt_kprintf("Erase the %s flash data success. Start from 0x%08X, size is %ld.\n", sfud_dev->name, in sf()
629 … rt_kprintf("The %s flash status register current value is 0x%02X.\n", sfud_dev->name, status); in sf()
636 … rt_kprintf("Write the %s flash status register to 0x%02X success.\n", sfud_dev->name, status); in sf()
695 … rt_kprintf("Data check ERROR! Please check you flash by other command.\n"); in sf()
724 rt_kprintf("This flash operate has an error. Error code: %d.\n", result); in sf()
729 MSH_CMD_EXPORT(sf, SPI Flash operate.);