bugfix(flash): improve spi cs timing settings for flash

cs setup time is recomemded to be 1.5T, and cs hold time is recommended to be 2.5T.
(cs_setup = 1, cs_setup_time = 0; cs_hold = 1, cs_hold_time = 1)
This commit is contained in:
chenjianqiang
2019-05-09 15:26:24 +08:00
parent 783ddd1e05
commit d6c40c7c1d
4 changed files with 26 additions and 0 deletions

View File

@@ -71,6 +71,7 @@
#include "trax.h"
#include "esp_ota_ops.h"
#include "esp_efuse.h"
#include "bootloader_common.h"
#define STRINGIFY(s) STRINGIFY2(s)
#define STRINGIFY2(s) #s
@@ -172,6 +173,8 @@ void IRAM_ATTR call_start_cpu0()
abort();
#endif
}
# else // If psram is uninitialized, we need to improve the flash cs timing.
bootloader_common_set_flash_cs_timing();
#endif
ESP_EARLY_LOGI(TAG, "Pro cpu up.");