OVMS3-idf/components
Wangjialin b1dcb52fec feature(psram): configure flash and psram speed during runtime
1. Bootloader reads SPI configuration from bin header, so that the burning configuration can be different with compiling configuration.
2. Psram mode init will overwrite original flash speed mode, so that users can change psram and flash speed after OTA.
3. Flash read mode(QIO/DIO…) will not be changed in app bin. It is decided by bootloader, OTA can not change this mode.
4. Add read flash ID function, and save flash ID in g_rom_flashchip
5. Set drive ability for all related GPIOs
6. Check raise VDDSDIO voltage in 80Mhz mode
7. Add check flash ID and update settings in bootloader
8. Read flash ID once and keep in global variable
9. Read flash image header once and reuse the result

Tested cases:
1. Test new and old version of bootloader
boot Flash 20M —> app Flash 80M + Psram 80M
boot Flash 40M —> app Flash 80M + Psram 80M
boot Flash 80M —> app Flash 80M + Psram 80M
boot Flash 20M —> app Flash 80M + Psram 40M
boot Flash 40M —> app Flash 80M + Psram 40M
boot Flash 80M —> app Flash 80M + Psram 40M
boot Flash 20M —> app Flash 40M + Psram 40M
boot Flash 40M —> app Flash 40M + Psram 40M
boot Flash 80M —> app Flash 40M + Psram 40M
2. Working after esp_restart reboot.
2018-04-20 20:51:44 +08:00
..
app_trace esp32: Fixes apptrace down buffer management 2018-02-21 10:13:25 +03:00
app_update ota_ops: Fix get_selected_boot_partition() in case there is no factory partition 2017-09-04 17:37:28 +10:00
aws_iot aws iot: Expose Thing Shadow settings in menuconfig 2018-02-05 14:38:23 +08:00
bootloader bootloader: Refactoring 2018-04-17 16:36:49 +05:00
bootloader_support feature(psram): configure flash and psram speed during runtime 2018-04-20 20:51:44 +08:00
bt Merge branch 'bugfix/fix_github_reported_1841_and_1845' into 'master' 2018-04-19 12:59:37 +08:00
coap Resolve problems found by enabling -Wwrite-strings compilation flag 2018-04-10 08:53:43 +02:00
console Resolve problems found by enabling -Wwrite-strings compilation flag 2018-04-10 08:53:43 +02:00
cxx unit tests: make static init guard test single core compatible 2018-01-23 07:56:13 +00:00
driver Merge branch 'feature/amazon_freertos_compat_v2' into 'master' 2018-04-20 14:55:47 +08:00
esp-tls esp-tls: Fix connection failure when esp-tls config is empty 2018-04-13 16:58:19 +05:30
esp32 feature(psram): configure flash and psram speed during runtime 2018-04-20 20:51:44 +08:00
esp_adc_cal bugfix/Fix BLK3_RESERVED_FLAG register and other minor bugs 2018-03-16 15:51:36 +08:00
espcoredump bugfix: fixed path to esptool when there is no compiled python module for it 2017-03-21 13:30:38 +03:00
esptool_py esptool: Update to v2.3.1 2018-02-28 10:17:14 +11:00
ethernet Set direction of SMI pins MDC and MDIO correctly. 2018-02-11 16:11:14 +08:00
expat
fatfs Resolve problems found by enabling -Wwrite-strings compilation flag 2018-04-10 08:53:43 +02:00
freertos freertos: portCLEAN_UP_TCB should be performed before freeing tcb memory 2018-04-19 18:28:55 +05:30
heap multi_heap: use portENTER/EXIT_CRITICAL instead of taskENTER/EXIT_CRITICAL 2018-04-19 18:28:55 +05:30
idf_test test: fix join AP fail during AP power on 2018-04-16 09:27:46 +08:00
jsmn
json Update cJSON to v1.7.1 2018-02-05 14:15:26 +08:00
libsodium make: Build out of tree component srcs under component build dir 2018-04-06 13:10:19 +10:00
log component/bt: Fix BLE printf missing problem 2018-02-06 14:35:39 +08:00
lwip Revert "Merge branch 'feature/vfs_select' into 'master'" 2018-04-20 11:51:41 +08:00
mbedtls Add #include guards and __cplusplus guards to esp_debug.h 2017-12-07 10:25:57 +11:00
mdns Fix exception when service is removed while there are pending packets that depend on it 2018-04-09 09:40:08 +03:00
micro-ecc
newlib Merge branch 'feature/amazon_freertos_compat_v2' into 'master' 2018-04-20 14:55:47 +08:00
nghttp Ensure that C++ and C compilers get the same preprocessor setup 2017-10-26 13:04:41 +02:00
nvs_flash Merge branch 'bugfix/nvs_failed_crc_assert' into 'master' 2018-04-18 11:01:21 +08:00
openssl Resolve problems found by enabling -Wwrite-strings compilation flag 2018-04-10 08:53:43 +02:00
partition_table partition_table: Optionally disable the MD5 checksum in partition tables 2018-02-22 07:46:41 +01:00
pthread pthread: implement local storage using pvTaskGetThreadLocalStoragePointer 2018-04-19 18:28:55 +05:30
sdmmc sdmmc: improve error handling during SPI mode init 2018-04-11 11:11:17 +08:00
smartconfig esp32: fix few components with dependency on networking stack 2018-04-19 18:28:55 +05:30
soc Merge branch 'bugfix/soc_clk_out_fields' into 'master' 2018-04-13 19:42:20 +08:00
spi_flash fix CI failed when flash chip size if 2MBytes 2018-03-29 17:48:59 +08:00
spiffs Resolve problems found by enabling -Wwrite-strings compilation flag 2018-04-10 08:53:43 +02:00
tcpip_adapter Make error codes globally unique 2018-03-27 08:12:54 +02:00
ulp soc,ulp: add register definitions of RTC_I2C peripheral 2018-01-08 21:28:14 +08:00
vfs Revert "Merge branch 'feature/vfs_select' into 'master'" 2018-04-20 11:51:41 +08:00
wear_levelling Structure size alligned by compiler. 2018-03-12 15:34:16 +03:00
wpa_supplicant esp32: fix few components with dependency on networking stack 2018-04-19 18:28:55 +05:30
xtensa-debug-module esp32: Apptrace API enhancement 2017-07-24 19:57:44 +03:00