[demo] add esp8266 demo.

This commit is contained in:
suyoujiang1 2020-10-19 13:47:00 +08:00
parent 086bc47cf1
commit 00ddb6b430
16 changed files with 16855 additions and 1 deletions

View File

@ -0,0 +1,6 @@
# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(hello-world)

View File

@ -0,0 +1,246 @@
{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fmodern Consolas;}{\f1\fnil\fcharset129 Courier New;}}
{\colortbl ;\red20\green20\blue20;\red142\green142\blue142;\red9\green118\blue72;}
\viewkind4\uc1\pard\cf1\highlight2\lang2052\f0\fs20
\par \cf0\highlight0 ets Jan 8 2013,rst cause:2, boot mode:(3,7)\cf1\highlight2
\par
\par \cf0\highlight0 load 0x40100000, len 7196, room 16\cf1\highlight2
\par \cf0\highlight0 tail 12\cf1\highlight2
\par \cf0\highlight0 chksum 0xc1\cf1\highlight2
\par \cf0\highlight0 ho 0 tail 12 room 4\cf1\highlight2
\par \cf0\highlight0 load 0x3ffe8408, len 24, room 12\cf1\highlight2
\par \cf0\highlight0 tail 12\cf1\highlight2
\par \cf0\highlight0 chksum 0x48\cf1\highlight2
\par \cf0\highlight0 ho 0 tail 12 room 4\cf1\highlight2
\par \cf0\highlight0 load 0x3ffe8420, len 3548, room 12\cf1\highlight2
\par \cf0\highlight0 tail 0\cf1\highlight2
\par \cf0\highlight0 chksum 0x18\cf1\highlight2
\par \cf3\highlight0 I (49) boot: ESP-IDF v3.2-252-g73bf28b-dirty 2nd stage bootloader\cf1\highlight2
\par \cf3\highlight0 I (49) boot: compile time 10:40:57\cf1\highlight2
\par \cf3\highlight0 I (50) qio_mode: Enabling default flash chip QIO\cf1\highlight2
\par \cf3\highlight0 I (58) boot: SPI Speed : 40MHz\cf1\highlight2
\par \cf3\highlight0 I (64) boot: SPI Mode : QIO\cf1\highlight2
\par \cf3\highlight0 I (70) boot: SPI Flash Size : 2MB\cf1\highlight2
\par \cf3\highlight0 I (76) boot: Partition Table:\cf1\highlight2
\par \cf3\highlight0 I (82) boot: ## Label Usage Type ST Offset Length\cf1\highlight2
\par \cf3\highlight0 I (93) boot: 0 nvs WiFi data 01 02 00009000 00006000\cf1\highlight2
\par \cf3\highlight0 I (105) boot: 1 phy_init RF data 01 01 0000f000 00001000\cf1\highlight2
\par \cf3\highlight0 I (116) boot: 2 factory factory app 00 00 00010000 000f0000\cf1\highlight2
\par \cf3\highlight0 I (128) boot: End of partition table\cf1\highlight2
\par \cf3\highlight0 I (135) esp_image: segment 0: paddr=0x00010010 vaddr=0x40210010 size=0x26ee0 (159456) map\cf1\highlight2
\par \cf3\highlight0 I (201) esp_image: segment 1: paddr=0x00036ef8 vaddr=0x40236ef0 size=0x05e00 ( 24064) map\cf1\highlight2
\par \cf3\highlight0 I (210) esp_image: segment 2: paddr=0x0003cd00 vaddr=0x3ffe8000 size=0x005f4 ( 1524) load\cf1\highlight2
\par \cf3\highlight0 I (212) esp_image: segment 3: paddr=0x0003d2fc vaddr=0x40100000 size=0x00a30 ( 2608) load\cf1\highlight2
\par \cf3\highlight0 I (226) esp_image: segment 4: paddr=0x0003dd34 vaddr=0x40100a30 size=0x05328 ( 21288) load\cf1\highlight2
\par \cf3\highlight0 I (246) boot: Loaded app from partition at offset 0x10000\cf1\highlight2
\par \cf3\highlight0 I (268) system_api: Base MAC address is not set, read default base MAC address from EFUSE\cf1\highlight2
\par \cf3\highlight0 I (273) system_api: Base MAC address is not set, read default base MAC address from EFUSE\cf1\highlight2
\par \cf0\highlight0 phy_version: 1155.0, 6cb3053, Nov 11 2019, 17:31:08, RTOS new\cf1\highlight2
\par \cf3\highlight0 I (328) phy_init: phy ver: 1155_0\cf1\highlight2
\par \cf3\highlight0 I (331) reset_reason: RTC reset 2 wakeup 0 store 0, reason is 2\cf1\highlight2
\par \cf0\highlight0 Hello world!\cf1\highlight2
\par \cf0\highlight0 This is ESP8266 chip with 1 CPU cores, WiFi, silicon revision 1, 2MB external flash\cf1\highlight2
\par \cf3\highlight0 [I/FAL] Flash Abstraction Layer (V0.5.0) initialize success.\cf1\highlight2
\par \cf0\highlight0 [FlashDB][kv][env] (/home/syj0925/esp/esp8266_spi_flash/components/FlashDB/src/fdb_kvdb.c:1599) KVDB in partition fdb_kvdb1, size is zu bytes.\cf1\highlight2
\par \cf0\highlight0 [FlashDB] FlashDB V1.0.0 beta is initialize success.\cf1\highlight2
\par \cf0\highlight0 [FlashDB] You can get the latest version on https://github.com/armink/FlashDB .\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][kvdb][basic] get the 'boot_count' value is 22\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][kvdb][basic] set the 'boot_count' value to 23\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][kvdb][string] create the 'temp' string KV, value is: 36C\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][kvdb][string] get the 'temp' value is: 36C\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][kvdb][string] set 'temp' value to 38C\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][kvdb][string] delete the 'temp' finish\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][kvdb][blob] create the 'temp' blob KV, value is: 36\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][kvdb][blob] get the 'temp' value is: 36\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][kvdb][blob] set 'temp' value to 38\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][kvdb][blob] delete the 'temp' finish\cf1\highlight2
\par \cf0\highlight0 [FlashDB][tsl][log] (/home/syj0925/esp/esp8266_spi_flash/components/FlashDB/src/fdb_tsdb.c:759) TSDB (log) oldest sectors is 0x00000000, current using sector is 0x00000000.\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] append the new status.temp (36) and status.humi (85)\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] append the new status.temp (38) and status.humi (90)\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 1, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 2, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 3, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 4, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 5, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 6, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 7, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 8, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 9, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 10, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 11, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 12, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 13, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 14, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 15, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 16, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 17, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 18, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 19, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 20, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 21, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 22, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 23, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 24, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 25, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 26, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 27, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 28, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 29, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 30, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 31, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 32, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 33, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 34, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 35, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 36, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 37, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 38, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 39, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 40, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 41, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 42, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 43, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 44, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 45, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 46, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 1, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 2, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 3, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 4, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 5, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 6, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 7, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 8, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 9, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 10, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 11, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 12, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 13, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 14, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 15, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 16, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 17, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 18, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 19, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 20, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 21, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 22, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 23, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 24, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 25, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 26, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 27, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 28, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 29, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 30, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 31, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 32, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 33, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 34, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 35, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 36, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 37, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 38, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 39, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 40, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 41, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 42, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 43, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 44, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 45, temp: 36, humi: 85\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] queried a TSL: time: 46, temp: 38, humi: 90\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] query count is: 2\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 1) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 2) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 3) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 4) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 5) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 6) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 7) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 8) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 9) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 10) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 11) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 12) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 13) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 14) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 15) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 16) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 17) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 18) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 19) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 20) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 21) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 22) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 23) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 24) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 25) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 26) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 27) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 28) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 29) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 30) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 31) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 32) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 33) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 34) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 35) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 36) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 37) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 38) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 39) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 40) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 41) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 42) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 43) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 44) status from 3 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 45) status from 2 to 3\cf1\highlight2
\par \cf0\highlight0 [FlashDB][sample][tsdb] set the TSL (time 46) status from 2 to 3\cf1\highlight2
\par \cf0\highlight0 Restarting in 1000 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 999 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 998 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 997 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 996 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 995 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 994 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 993 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 992 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 991 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 990 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 989 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 988 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 987 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 986 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 985 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 984 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 983 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 982 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 981 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 980 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 979 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 978 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 977 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 976 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 975 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 974 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 973 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 972 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 971 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 970 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 969 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 968 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 967 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 966 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 965 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 964 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 963 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 962 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 961 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 960 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 959 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 958 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 957 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 956 seconds...\cf1\highlight2
\par \cf0\highlight0 Restarting in 955 seconds...\cf1\highlight2
\par \pard\cf0\highlight0\f1
\par }

View File

@ -0,0 +1,9 @@
#
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
# project subdirectory.
#
PROJECT_NAME := flashDB_demo
include $(IDF_PATH)/make/project.mk

View File

@ -0,0 +1,22 @@
# flashDB demo Example
启动一个freertos任务运行flashDB的例程然后倒计时1000秒后重启。运行log请看当前目录下的ESP8266_flashDB_log.rtf 日志
# ESP8266开发环境
* Ubuntu 16.04 64位
* 用乐鑫IDF:ESP8266_RTOS_SDK(版本:ESP-IDF v3.2-252-g73bf28b-dirty),下载:https://github.com/espressif/ESP8266_RTOS_SDK.git
* 安装交叉编译工具链,下载:https://dl.espressif.com/dl/xtensa-lx106-elf-linux64-1.22.0-100-ge567ec7-5.2.0.tar.gz
# ESP8266开发指南
* 详细的安装开发教程,请参考:https://docs.espressif.com/projects/esp8266-rtos-sdk/en/latest/get-started/index.html
# 编译和下载
* cd进入esp8266_spi_flash目录
* make all
* 使用串口线把8266开发板连接到PC
* 使能串口执行命令sudo chmod 777 /dev/ttyUSB*
* make flash
* make monitor

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,19 @@
#
# Component Makefile
#
COMPONENT_ADD_INCLUDEDIRS += \
inc \
../../../../inc \
../../../../port/fal/inc
COMPONENT_SRCDIRS += \
../../../../src \
../../../../samples \
../../../../port/fal/src \
porting
# COMPONENT_PRIV_INCLUDEDIRS +=
# COMPONENT_ADD_LDFLAGS += -Wl,--whole-archive -l$(COMPONENT_NAME) -Wl,--no-whole-archive

View File

@ -0,0 +1,56 @@
/*
* File : fal_cfg.h
* This file is part of FAL (Flash Abstraction Layer) package
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Change Logs:
* Date Author Notes
* 2018-05-17 armink the first version
*/
#ifndef _FAL_CFG_H_
#define _FAL_CFG_H_
//#include <rtconfig.h>
//#include <board.h>
//#define FAL_DEBUG 1
#define FAL_PART_HAS_TABLE_CFG
#define NOR_FLASH_DEV_NAME "norflash0"
//#define FAL_PART_TABLE_FLASH_DEV_NAME NOR_FLASH_DEV_NAME
//#define FAL_PART_TABLE_END_OFFSET 65536
/* ===================== Flash device Configuration ========================= */
extern const struct fal_flash_dev nor_flash0;
/* flash device table */
#define FAL_FLASH_DEV_TABLE \
{ \
&nor_flash0, \
}
/* ====================== Partition Configuration ========================== */
#ifdef FAL_PART_HAS_TABLE_CFG
/* partition table */
#define FAL_PART_TABLE \
{ \
{FAL_PART_MAGIC_WORD, "fdb_kvdb1", NOR_FLASH_DEV_NAME, 0, 16*1024, 0}, \
{FAL_PART_MAGIC_WORD, "fdb_tsdb1", NOR_FLASH_DEV_NAME, 16*1024 , 16*1024, 0}, \
}
#endif /* FAL_PART_HAS_TABLE_CFG */
#endif /* _FAL_CFG_H_ */

View File

@ -0,0 +1,39 @@
/*
* Copyright (c) 2020, Armink, <armink.ztl@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief configuration file
*/
#ifndef _FDB_CFG_H_
#define _FDB_CFG_H_
/* using KVDB feature */
#define FDB_USING_KVDB
#ifdef FDB_USING_KVDB
/* Auto update KV to latest default when current KVDB version number is changed. @see fdb_kvdb.ver_num */
/* #define FDB_KV_AUTO_UPDATE */
#endif
/* using TSDB (Time series database) feature */
#define FDB_USING_TSDB
/* the flash write granularity, unit: bit
* only support 1(nor flash)/ 8(stm32f2/f4)/ 32(stm32f1) */
#define FDB_WRITE_GRAN 1 /* @note you must define it for a value */
/* MCU Endian Configuration, default is Little Endian Order. */
/* #define FDB_BIG_ENDIAN */
/* log print macro. default EF_PRINT macro is printf() */
/* #define FDB_PRINT(...) my_printf(__VA_ARGS__) */
/* print debug information */
#define FDB_DEBUG_ENABLE
#endif /* _FDB_CFG_H_ */

View File

@ -0,0 +1,112 @@
/*
* Copyright (c) 2020, Armink, <armink.ztl@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "esp_spi_flash.h"
#include <string.h>
#include <fal.h>
#define FLASH_ERASE_MIN_SIZE (4 * 1024)
#define LOCKER_ENABLE
#ifdef LOCKER_ENABLE
#include "FreeRTOS.h"
#include "semphr.h"
static SemaphoreHandle_t s_lock = NULL;
#define LOCK() \
do { \
xSemaphoreTake(s_lock, portMAX_DELAY); \
} while(0)
#define UNLOCK() \
do { \
xSemaphoreGive(s_lock); \
} while(0)
#else
#define LOCK()
#define UNLOCK()
#endif
static int init(void)
{
#ifdef LOCKER_ENABLE
if (s_lock == NULL) {
s_lock = xSemaphoreCreateCounting(1, 1);
assert(s_lock != NULL);
}
#endif
return 1;
}
static int read(long offset, uint8_t *buf, size_t size)
{
//Xassert(size % 4 == 0);
/* You can add your code under here. */
int32_t ret;
uint32_t addr = nor_flash0.addr + offset;
LOCK();
ret = spi_flash_read(addr, buf, size);
UNLOCK();
return ret;
}
static int write(long offset, const uint8_t *buf, size_t size)
{
int32_t ret;
uint32_t addr = nor_flash0.addr + offset;
LOCK();
ret = spi_flash_write(addr, buf, size);
UNLOCK();
return ret;
}
static int erase(long offset, size_t size)
{
int32_t ret;
uint32_t addr = nor_flash0.addr + offset;
int32_t erase_size = ((size - 1) / FLASH_ERASE_MIN_SIZE) + 1;
LOCK();
ret = spi_flash_erase_range(addr, erase_size * FLASH_ERASE_MIN_SIZE);
UNLOCK();
return ret;
}
/*
"esp8266_onchip" : Flash
0x08000000: Flash
1024*1024Flash 1MB
128*1024Flash / STM32F2 128K
{init, read, write, erase} Flash init
8 : bit 0 0 fal 0.4.0 flash Flash
nor flash: 1 bit
stm32f2/f4: 8 bit
stm32f1: 32 bit
stm32l4: 64 bit
*/
//1.定义 flash 设备
const struct fal_flash_dev nor_flash0 =
{
.name = "norflash0",
.addr = 0x100000,
.len = 50*1024,
.blk_size = FLASH_ERASE_MIN_SIZE,
.ops = {init, read, write, erase},
.write_gran = 1
};

View File

@ -0,0 +1,2 @@
idf_component_register(SRCS "hello_world_main.c"
INCLUDE_DIRS "")

View File

@ -0,0 +1,5 @@
#
# "main" pseudo-component makefile.
#
# (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)

View File

@ -0,0 +1,157 @@
/* Hello World Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "semphr.h"
#include "esp_system.h"
#include "esp_spi_flash.h"
#include <flashdb.h>
#define FDB_LOG_TAG "[main]"
static uint32_t boot_count = 0;
static time_t boot_time[10] = {0, 1, 2, 3};
/* default KV nodes */
static struct fdb_default_kv_node default_kv_table[] = {
{"username", "armink", 0}, /* string KV */
{"password", "123456", 0}, /* string KV */
{"boot_count", &boot_count, sizeof(boot_count)}, /* int type KV */
{"boot_time", &boot_time, sizeof(boot_time)}, /* int array type KV */
};
/* KVDB object */
static struct fdb_kvdb kvdb = { 0 };
/* TSDB object */
struct fdb_tsdb tsdb = { 0 };
/* counts for simulated timestamp */
static int counts = 0;
static SemaphoreHandle_t s_lock = NULL;
extern void kvdb_basic_sample(fdb_kvdb_t kvdb);
extern void kvdb_type_string_sample(fdb_kvdb_t kvdb);
extern void kvdb_type_blob_sample(fdb_kvdb_t kvdb);
extern void tsdb_sample(fdb_tsdb_t tsdb);
static void lock(fdb_db_t db)
{
xSemaphoreTake(s_lock, portMAX_DELAY);
}
static void unlock(fdb_db_t db)
{
xSemaphoreGive(s_lock);
}
static fdb_time_t get_time(void)
{
/* Using the counts instead of timestamp.
* Please change this function to return RTC time.
*/
return ++counts;
}
int flashdb_demo(void)
{
fdb_err_t result;
if (s_lock == NULL) {
s_lock = xSemaphoreCreateCounting(1, 1);
assert(s_lock != NULL);
}
#ifdef FDB_USING_KVDB
{ /* KVDB Sample */
struct fdb_default_kv default_kv;
default_kv.kvs = default_kv_table;
default_kv.num = sizeof(default_kv_table) / sizeof(default_kv_table[0]);
/* set the lock and unlock function if you want */
fdb_kvdb_control(&kvdb, FDB_KVDB_CTRL_SET_LOCK, lock);
fdb_kvdb_control(&kvdb, FDB_KVDB_CTRL_SET_UNLOCK, unlock);
/* Key-Value database initialization
*
* &kvdb: database object
* "env": database name
* "fdb_kvdb1": The flash partition name base on FAL. Please make sure it's in FAL partition table.
* Please change to YOUR partition name.
* &default_kv: The default KV nodes. It will auto add to KVDB when first initialize successfully.
* NULL: The user data if you need, now is empty.
*/
result = fdb_kvdb_init(&kvdb, "env", "fdb_kvdb1", &default_kv, NULL);
if (result != FDB_NO_ERR) {
return -1;
}
/* run basic KV samples */
kvdb_basic_sample(&kvdb);
/* run string KV samples */
kvdb_type_string_sample(&kvdb);
/* run blob KV samples */
kvdb_type_blob_sample(&kvdb);
}
#endif /* FDB_USING_KVDB */
#ifdef FDB_USING_TSDB
{ /* TSDB Sample */
/* set the lock and unlock function if you want */
fdb_tsdb_control(&tsdb, FDB_TSDB_CTRL_SET_LOCK, lock);
fdb_tsdb_control(&tsdb, FDB_TSDB_CTRL_SET_UNLOCK, unlock);
/* Time series database initialization
*
* &tsdb: database object
* "log": database name
* "fdb_tsdb1": The flash partition name base on FAL. Please make sure it's in FAL partition table.
* Please change to YOUR partition name.
* get_time: The get current timestamp function.
* 128: maximum length of each log
* NULL: The user data if you need, now is empty.
*/
result = fdb_tsdb_init(&tsdb, "log", "fdb_tsdb1", get_time, 128, NULL);
/* read last saved time for simulated timestamp */
fdb_tsdb_control(&tsdb, FDB_TSDB_CTRL_GET_LAST_TIME, &counts);
if (result != FDB_NO_ERR) {
return -1;
}
/* run TSDB sample */
tsdb_sample(&tsdb);
}
#endif /* FDB_USING_TSDB */
return 0;
}
void app_main()
{
printf("Hello world!\n");
/* Print chip information */
esp_chip_info_t chip_info;
esp_chip_info(&chip_info);
printf("This is ESP8266 chip with %d CPU cores, WiFi, ",
chip_info.cores);
printf("silicon revision %d, ", chip_info.revision);
printf("%dMB %s flash\n", spi_flash_get_chip_size() / (1024 * 1024),
(chip_info.features & CHIP_FEATURE_EMB_FLASH) ? "embedded" : "external");
flashdb_demo();
for (int i = 1000; i >= 0; i--) {
printf("Restarting in %d seconds...\n", i);
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
printf("Restarting now.\n");
fflush(stdout);
esp_restart();
}

View File

@ -0,0 +1,377 @@
#
# Automatically generated file. DO NOT EDIT.
# Espressif IoT Development Framework (ESP-IDF) Project Configuration
#
CONFIG_IDF_TARGET_ESP8266=y
CONFIG_IDF_TARGET="esp8266"
#
# SDK tool configuration
#
CONFIG_SDK_TOOLPREFIX="xtensa-lx106-elf-"
CONFIG_SDK_PYTHON="python"
# CONFIG_SDK_MAKE_WARN_UNDEFINED_VARIABLES is not set
CONFIG_BOOTLOADER_INIT_SPI_FLASH=y
# CONFIG_LOG_BOOTLOADER_LEVEL_NONE is not set
# CONFIG_LOG_BOOTLOADER_LEVEL_ERROR is not set
# CONFIG_LOG_BOOTLOADER_LEVEL_WARN is not set
CONFIG_LOG_BOOTLOADER_LEVEL_INFO=y
# CONFIG_LOG_BOOTLOADER_LEVEL_DEBUG is not set
# CONFIG_LOG_BOOTLOADER_LEVEL_VERBOSE is not set
CONFIG_LOG_BOOTLOADER_LEVEL=3
# CONFIG_BOOTLOADER_APP_TEST is not set
CONFIG_ESPTOOLPY_PORT="/dev/ttyUSB0"
CONFIG_ESPTOOLPY_BAUD_115200B=y
# CONFIG_ESPTOOLPY_BAUD_230400B is not set
# CONFIG_ESPTOOLPY_BAUD_921600B is not set
# CONFIG_ESPTOOLPY_BAUD_2MB is not set
# CONFIG_ESPTOOLPY_BAUD_OTHER is not set
CONFIG_ESPTOOLPY_BAUD_OTHER_VAL=115200
CONFIG_ESPTOOLPY_BAUD=115200
CONFIG_ESPTOOLPY_COMPRESSED=y
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
# CONFIG_ESPTOOLPY_FLASHMODE_QOUT is not set
# CONFIG_ESPTOOLPY_FLASHMODE_DIO is not set
# CONFIG_ESPTOOLPY_FLASHMODE_DOUT is not set
CONFIG_ESPTOOLPY_FLASHMODE="dio"
CONFIG_SPI_FLASH_MODE=0x0
# CONFIG_ESPTOOLPY_FLASHFREQ_80M is not set
CONFIG_ESPTOOLPY_FLASHFREQ_40M=y
# CONFIG_ESPTOOLPY_FLASHFREQ_26M is not set
# CONFIG_ESPTOOLPY_FLASHFREQ_20M is not set
CONFIG_ESPTOOLPY_FLASHFREQ="40m"
CONFIG_SPI_FLASH_FREQ=0x0
# CONFIG_ESPTOOLPY_FLASHSIZE_1MB is not set
CONFIG_ESPTOOLPY_FLASHSIZE_2MB=y
# CONFIG_ESPTOOLPY_FLASHSIZE_4MB is not set
# CONFIG_ESPTOOLPY_FLASHSIZE_8MB is not set
# CONFIG_ESPTOOLPY_FLASHSIZE_16MB is not set
CONFIG_ESPTOOLPY_FLASHSIZE="2MB"
CONFIG_SPI_FLASH_SIZE=0x200000
CONFIG_ESPTOOLPY_BEFORE_RESET=y
# CONFIG_ESPTOOLPY_BEFORE_NORESET is not set
CONFIG_ESPTOOLPY_BEFORE="default_reset"
CONFIG_ESPTOOLPY_AFTER_HARD_RESET=y
# CONFIG_ESPTOOLPY_AFTER_SOFT_RESET is not set
# CONFIG_ESPTOOLPY_AFTER_NORESET is not set
CONFIG_ESPTOOLPY_AFTER="hard_reset"
# CONFIG_ESPTOOLPY_MONITOR_BAUD_9600B is not set
# CONFIG_ESPTOOLPY_MONITOR_BAUD_57600B is not set
CONFIG_ESPTOOLPY_MONITOR_BAUD_74880B=y
# CONFIG_ESPTOOLPY_MONITOR_BAUD_115200B is not set
# CONFIG_ESPTOOLPY_MONITOR_BAUD_230400B is not set
# CONFIG_ESPTOOLPY_MONITOR_BAUD_921600B is not set
# CONFIG_ESPTOOLPY_MONITOR_BAUD_2MB is not set
# CONFIG_ESPTOOLPY_MONITOR_BAUD_OTHER is not set
CONFIG_ESPTOOLPY_MONITOR_BAUD_OTHER_VAL=74880
CONFIG_ESPTOOLPY_MONITOR_BAUD=74880
CONFIG_PARTITION_TABLE_SINGLE_APP=y
# CONFIG_PARTITION_TABLE_TWO_OTA is not set
# CONFIG_PARTITION_TABLE_CUSTOM is not set
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
CONFIG_PARTITION_TABLE_OFFSET=0x8000
CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp.csv"
CONFIG_COMPILER_OPTIMIZATION_LEVEL_DEBUG=y
# CONFIG_COMPILER_OPTIMIZATION_LEVEL_RELEASE is not set
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE=y
# CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT is not set
# CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE is not set
# CONFIG_COMPILER_CXX_EXCEPTIONS is not set
CONFIG_COMPILER_STACK_CHECK_MODE_NONE=y
# CONFIG_COMPILER_STACK_CHECK_MODE_NORM is not set
# CONFIG_COMPILER_STACK_CHECK_MODE_STRONG is not set
# CONFIG_COMPILER_STACK_CHECK_MODE_ALL is not set
# CONFIG_COMPILER_STACK_CHECK is not set
# CONFIG_COMPILER_WARN_WRITE_STRINGS is not set
CONFIG_APP_UPDATE_CHECK_APP_SUM=y
# CONFIG_APP_UPDATE_CHECK_APP_HASH is not set
# CONFIG_AWS_IOT_SDK is not set
# CONFIG_USING_ESP_CONSOLE is not set
CONFIG_ESP8266_DEFAULT_CPU_FREQ_80=y
# CONFIG_ESP8266_DEFAULT_CPU_FREQ_160 is not set
CONFIG_ESP8266_DEFAULT_CPU_FREQ_MHZ=80
CONFIG_NEWLIB_STDOUT_LINE_ENDING_CRLF=y
# CONFIG_NEWLIB_STDOUT_LINE_ENDING_LF is not set
# CONFIG_NEWLIB_STDOUT_LINE_ENDING_CR is not set
CONFIG_ESP_FILENAME_MACRO_NO_PATH=y
# CONFIG_ESP_FILENAME_MACRO_RAW is not set
# CONFIG_ESP_FILENAME_MACRO_NULL is not set
CONFIG_USING_NEW_ETS_VPRINTF=y
# CONFIG_LINK_ETS_PRINTF_TO_IRAM is not set
# CONFIG_SOC_FULL_ICACHE is not set
CONFIG_SOC_IRAM_SIZE=0xC000
CONFIG_CONSOLE_UART_DEFAULT=y
# CONFIG_CONSOLE_UART_CUSTOM is not set
# CONFIG_CONSOLE_UART_NONE is not set
CONFIG_CONSOLE_UART_NUM=0
CONFIG_CONSOLE_UART_BAUDRATE=74880
# CONFIG_UART0_SWAP_IO is not set
# CONFIG_DISABLE_ROM_UART_PRINT is not set
# CONFIG_PANIC_FULL_STACK is not set
# CONFIG_ESP_PANIC_PRINT_HALT is not set
CONFIG_ESP_PANIC_PRINT_REBOOT=y
# CONFIG_ESP_PANIC_SILENT_REBOOT is not set
CONFIG_MAIN_TASK_STACK_SIZE=3584
CONFIG_TASK_WDT=y
CONFIG_TASK_WDT_PANIC=y
# CONFIG_TASK_WDT_TIMEOUT_13N is not set
# CONFIG_TASK_WDT_TIMEOUT_14N is not set
CONFIG_TASK_WDT_TIMEOUT_15N=y
CONFIG_TASK_WDT_TIMEOUT_S=15
CONFIG_RESET_REASON=y
CONFIG_WIFI_PPT_TASKSTACK_SIZE=2048
CONFIG_EVENT_LOOP_STACK_SIZE=2048
CONFIG_ESP8266_CORE_GLOBAL_DATA_LINK_IRAM=y
# CONFIG_ESP8266_OTA_FROM_OLD is not set
# CONFIG_ESP8266_BOOT_COPY_APP is not set
CONFIG_ESP_ERR_TO_NAME_LOOKUP=y
CONFIG_ESP8266_TIME_SYSCALL_USE_FRC1=y
# CONFIG_ESP8266_TIME_SYSCALL_USE_NONE is not set
CONFIG_SCAN_AP_MAX=32
CONFIG_WIFI_TX_RATE_SEQUENCE_FROM_HIGH=y
# CONFIG_ESP8266_WIFI_QOS_ENABLED is not set
# CONFIG_ESP8266_WIFI_AMPDU_RX_ENABLED is not set
# CONFIG_ESP8266_WIFI_AMSDU_ENABLED is not set
CONFIG_ESP8266_WIFI_RX_BUFFER_NUM=16
CONFIG_ESP8266_WIFI_LEFT_CONTINUOUS_RX_BUFFER_NUM=4
CONFIG_ESP8266_WIFI_RX_PKT_NUM=7
CONFIG_ESP8266_WIFI_TX_PKT_NUM=6
CONFIG_ESP8266_WIFI_NVS_ENABLED=y
CONFIG_ESP8266_WIFI_CONNECT_OPEN_ROUTER_WHEN_PWD_IS_SET=y
# CONFIG_ESP8266_WIFI_DEBUG_LOG_ENABLE is not set
CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE=y
# CONFIG_ESP_PHY_INIT_DATA_IN_PARTITION is not set
CONFIG_ESP_PHY_INIT_DATA_VDD33_CONST=33
CONFIG_ESP8266_PHY_MAX_WIFI_TX_POWER=20
# CONFIG_ESP8266_HSPI_HIGH_THROUGHPUT is not set
CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS=y
CONFIG_HTTP_BUF_SIZE=512
CONFIG_HTTPD_MAX_REQ_HDR_LEN=512
CONFIG_HTTPD_MAX_URI_LEN=512
CONFIG_OTA_BUF_SIZE=256
# CONFIG_OTA_ALLOW_HTTP is not set
# CONFIG_DISABLE_FREERTOS is not set
# CONFIG_FREERTOS_ENABLE_REENT is not set
CONFIG_FREERTOS_HZ=100
CONFIG_FREERTOS_MAX_HOOK=2
CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=1024
CONFIG_FREERTOS_ISR_STACKSIZE=512
# CONFIG_FREERTOS_EXTENED_HOOKS is not set
CONFIG_FREERTOS_GLOBAL_DATA_LINK_IRAM=y
# CONFIG_FREERTOS_CODE_LINK_TO_IRAM is not set
CONFIG_FREERTOS_TIMER_STACKSIZE=2048
CONFIG_TASK_SWITCH_FASTER=y
# CONFIG_USE_QUEUE_SETS is not set
# CONFIG_ENABLE_FREERTOS_SLEEP is not set
# CONFIG_FREERTOS_USE_TRACE_FACILITY is not set
# CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS is not set
# CONFIG_HEAP_DISABLE_IRAM is not set
# CONFIG_LOG_DEFAULT_LEVEL_NONE is not set
# CONFIG_LOG_DEFAULT_LEVEL_ERROR is not set
# CONFIG_LOG_DEFAULT_LEVEL_WARN is not set
CONFIG_LOG_DEFAULT_LEVEL_INFO=y
# CONFIG_LOG_DEFAULT_LEVEL_DEBUG is not set
# CONFIG_LOG_DEFAULT_LEVEL_VERBOSE is not set
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_LOG_COLORS=y
# CONFIG_LOG_SET_LEVEL is not set
# CONFIG_LWIP_USE_IRAM is not set
# CONFIG_LWIP_HIGH_THROUGHPUT is not set
CONFIG_LWIP_GLOBAL_DATA_LINK_IRAM=y
CONFIG_TCPIP_RECVMBOX_SIZE=32
CONFIG_LWIP_ARP_TABLE_SIZE=10
CONFIG_LWIP_ARP_MAXAGE=300
# CONFIG_LWIP_ESP_GRATUITOUS_ARP is not set
CONFIG_LWIP_SOCKET_MULTITHREAD=y
# CONFIG_ENABLE_NONBLOCK_SPEEDUP is not set
CONFIG_SET_SOLINGER_DEFAULT=y
CONFIG_ESP_UDP_SYNC_SEND=y
CONFIG_ESP_UDP_SYNC_RETRY_MAX=5
CONFIG_LWIP_MAX_SOCKETS=10
CONFIG_LWIP_SO_REUSE=y
CONFIG_LWIP_SO_REUSE_RXTOALL=y
# CONFIG_LWIP_SO_RCVBUF is not set
CONFIG_LWIP_RECV_BUFSIZE_DEFAULT=11680
CONFIG_LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT=10000
# CONFIG_LWIP_IP_FRAG is not set
# CONFIG_LWIP_IP_REASSEMBLY is not set
CONFIG_LWIP_IP_REASS_MAX_PBUFS=10
# CONFIG_LWIP_IP_SOF_BROADCAST is not set
# CONFIG_LWIP_IP_SOF_BROADCAST_RECV is not set
CONFIG_LWIP_ICMP=y
# CONFIG_LWIP_MULTICAST_PING is not set
# CONFIG_LWIP_BROADCAST_PING is not set
# CONFIG_LWIP_RAW is not set
CONFIG_LWIP_DHCP_DOES_ARP_CHECK=y
CONFIG_LWIP_DHCP_MAX_NTP_SERVERS=1
CONFIG_LWIP_DHCPS_LEASE_UNIT=60
CONFIG_LWIP_DHCPS_MAX_STATION_NUM=8
CONFIG_LWIP_DHCP_DISCOVER_RETRANSMISSION_INTERVAL=250
# CONFIG_LWIP_AUTOIP is not set
CONFIG_LWIP_IGMP=y
CONFIG_ESP_DNS=y
CONFIG_DNS_MAX_SERVERS=3
# CONFIG_LWIP_NETIF_LOOPBACK is not set
# CONFIG_TCP_HIGH_SPEED_RETRANSMISSION is not set
CONFIG_LWIP_MAX_ACTIVE_TCP=5
CONFIG_LWIP_MAX_LISTENING_TCP=8
CONFIG_TCP_MAXRTX=12
CONFIG_TCP_SYNMAXRTX=6
CONFIG_TCP_MSS=1460
CONFIG_TCP_SND_BUF_DEFAULT=2920
CONFIG_TCP_WND_DEFAULT=5840
CONFIG_TCP_RECVMBOX_SIZE=6
CONFIG_TCP_QUEUE_OOSEQ=y
CONFIG_TCP_OVERSIZE_MSS=y
# CONFIG_TCP_OVERSIZE_QUARTER_MSS is not set
# CONFIG_TCP_OVERSIZE_DISABLE is not set
# CONFIG_LWIP_TCP_TIMESTAMPS is not set
CONFIG_LWIP_MAX_UDP_PCBS=4
CONFIG_UDP_RECVMBOX_SIZE=6
CONFIG_TCPIP_TASK_STACK_SIZE=2048
CONFIG_LWIP_MAX_RAW_PCBS=4
# CONFIG_LWIP_IPV6 is not set
# CONFIG_LWIP_STATS is not set
# CONFIG_ESP_LWIP_MEM_DBG is not set
# CONFIG_LWIP_DEBUG is not set
CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC=y
# CONFIG_MBEDTLS_DEFAULT_MEM_ALLOC is not set
# CONFIG_MBEDTLS_CUSTOM_MEM_ALLOC is not set
CONFIG_MBEDTLS_ASYMMETRIC_CONTENT_LEN=y
CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN=16384
CONFIG_MBEDTLS_SSL_OUT_CONTENT_LEN=4096
# CONFIG_MBEDTLS_DEBUG is not set
CONFIG_MBEDTLS_HARDWARE_AES=y
# CONFIG_MBEDTLS_HARDWARE_MPI is not set
CONFIG_MBEDTLS_HARDWARE_SHA=y
CONFIG_MBEDTLS_HAVE_TIME=y
# CONFIG_MBEDTLS_HAVE_TIME_DATE is not set
CONFIG_MBEDTLS_TLS_SERVER_AND_CLIENT=y
# CONFIG_MBEDTLS_TLS_SERVER_ONLY is not set
# CONFIG_MBEDTLS_TLS_CLIENT_ONLY is not set
# CONFIG_MBEDTLS_TLS_DISABLED is not set
CONFIG_MBEDTLS_TLS_SERVER=y
CONFIG_MBEDTLS_TLS_CLIENT=y
CONFIG_MBEDTLS_TLS_ENABLED=y
# CONFIG_MBEDTLS_PSK_MODES is not set
CONFIG_MBEDTLS_KEY_EXCHANGE_RSA=y
CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_RSA=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ELLIPTIC_CURVE=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_RSA=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDH_RSA=y
CONFIG_MBEDTLS_SSL_RENEGOTIATION=y
# CONFIG_MBEDTLS_SSL_PROTO_SSL3 is not set
CONFIG_MBEDTLS_SSL_PROTO_TLS1=y
CONFIG_MBEDTLS_SSL_PROTO_TLS1_1=y
CONFIG_MBEDTLS_SSL_PROTO_TLS1_2=y
# CONFIG_MBEDTLS_SSL_PROTO_DTLS is not set
CONFIG_MBEDTLS_SSL_ALPN=y
CONFIG_MBEDTLS_CLIENT_SSL_SESSION_TICKETS=y
CONFIG_MBEDTLS_SERVER_SSL_SESSION_TICKETS=y
CONFIG_MBEDTLS_AES_C=y
# CONFIG_MBEDTLS_CAMELLIA_C is not set
# CONFIG_MBEDTLS_DES_C is not set
CONFIG_MBEDTLS_RC4_DISABLED=y
# CONFIG_MBEDTLS_RC4_ENABLED_NO_DEFAULT is not set
# CONFIG_MBEDTLS_RC4_ENABLED is not set
# CONFIG_MBEDTLS_BLOWFISH_C is not set
# CONFIG_MBEDTLS_XTEA_C is not set
CONFIG_MBEDTLS_CCM_C=y
CONFIG_MBEDTLS_GCM_C=y
# CONFIG_MBEDTLS_RIPEMD160_C is not set
CONFIG_MBEDTLS_PEM_PARSE_C=y
CONFIG_MBEDTLS_PEM_WRITE_C=y
CONFIG_MBEDTLS_X509_CRL_PARSE_C=y
CONFIG_MBEDTLS_X509_CSR_PARSE_C=y
CONFIG_MBEDTLS_ECP_C=y
CONFIG_MBEDTLS_ECDH_C=y
CONFIG_MBEDTLS_ECDSA_C=y
CONFIG_MBEDTLS_ECP_DP_SECP192R1_ENABLED=y
CONFIG_MBEDTLS_ECP_DP_SECP224R1_ENABLED=y
CONFIG_MBEDTLS_ECP_DP_SECP256R1_ENABLED=y
CONFIG_MBEDTLS_ECP_DP_SECP384R1_ENABLED=y
CONFIG_MBEDTLS_ECP_DP_SECP521R1_ENABLED=y
CONFIG_MBEDTLS_ECP_DP_SECP192K1_ENABLED=y
CONFIG_MBEDTLS_ECP_DP_SECP224K1_ENABLED=y
CONFIG_MBEDTLS_ECP_DP_SECP256K1_ENABLED=y
CONFIG_MBEDTLS_ECP_DP_BP256R1_ENABLED=y
CONFIG_MBEDTLS_ECP_DP_BP384R1_ENABLED=y
CONFIG_MBEDTLS_ECP_DP_BP512R1_ENABLED=y
CONFIG_MBEDTLS_ECP_DP_CURVE25519_ENABLED=y
CONFIG_MBEDTLS_ECP_NIST_OPTIM=y
# CONFIG_ENABLE_MDNS is not set
# CONFIG_MQTT_USING_ESP is not set
CONFIG_MQTT_USING_IBM=y
CONFIG_V3_1=y
# CONFIG_V3_1_1 is not set
CONFIG_DEFAULT_MQTT_VERSION=3
CONFIG_MQTT_CLIENT_ID="espressif_sample"
CONFIG_MQTT_KEEP_ALIVE=30
CONFIG_MQTT_USERNAME="espressif"
CONFIG_MQTT_PASSWORD="admin"
CONFIG_CLEAN_SESSION=y
# CONFIG_KEEP_SESSION is not set
CONFIG_DEFAULT_MQTT_SESSION=1
CONFIG_NO_TLS=y
# CONFIG_TLS_VERIFY_NONE is not set
# CONFIG_TLS_VERIFY_PEER is not set
# CONFIG_TLS_VERIFY_CLIENT is not set
CONFIG_DEFAULT_MQTT_SECURITY=0
CONFIG_MQTT_SEND_BUFFER=2048
CONFIG_MQTT_RECV_BUFFER=2048
CONFIG_MQTT_SEND_CYCLE=30000
CONFIG_MQTT_RECV_CYCLE=0
CONFIG_MQTT_PING_TIMEOUT=3000
# CONFIG_NEWLIB_LIBRARY_LEVEL_NORMAL is not set
# CONFIG_NEWLIB_LIBRARY_LEVEL_NANO is not set
CONFIG_NEWLIB_LIBRARY_LEVEL_FLOAT_NANO=y
# CONFIG_NEWLIB_LIBRARY_CUSTOMER is not set
# CONFIG_OPENSSL_DEBUG is not set
CONFIG_OPENSSL_ASSERT_DO_NOTHING=y
# CONFIG_OPENSSL_ASSERT_EXIT is not set
# CONFIG_ENABLE_PTHREAD is not set
# CONFIG_USING_SPIFFS is not set
CONFIG_IP_LOST_TIMER_INTERVAL=120
CONFIG_TCPIP_ADAPTER_GLOBAL_DATA_LINK_IRAM=y
# CONFIG_util_assert is not set
CONFIG_ESP_SHA=y
CONFIG_ESP_AES=y
CONFIG_ESP_MD5=y
CONFIG_ESP_ARC4=y
# CONFIG_USING_ESP_VFS is not set
# CONFIG_ENABLE_UNIFIED_PROVISIONING is not set
CONFIG_LTM_FAST=y
# Deprecated options for backward compatibility
CONFIG_TARGET_PLATFORM="esp8266"
CONFIG_TOOLPREFIX="xtensa-lx106-elf-"
# CONFIG_MAKE_WARN_UNDEFINED_VARIABLES is not set
CONFIG_FLASHMODE_QIO=y
# CONFIG_FLASHMODE_QOUT is not set
# CONFIG_FLASHMODE_DIO is not set
# CONFIG_FLASHMODE_DOUT is not set
# CONFIG_MONITOR_BAUD_9600B is not set
# CONFIG_MONITOR_BAUD_57600B is not set
CONFIG_MONITOR_BAUD_74880B=y
# CONFIG_MONITOR_BAUD_115200B is not set
# CONFIG_MONITOR_BAUD_230400B is not set
# CONFIG_MONITOR_BAUD_921600B is not set
# CONFIG_MONITOR_BAUD_2MB is not set
# CONFIG_MONITOR_BAUD_OTHER is not set
CONFIG_MONITOR_BAUD_OTHER_VAL=74880
CONFIG_MONITOR_BAUD=74880
CONFIG_OPTIMIZATION_LEVEL_DEBUG=y
# CONFIG_OPTIMIZATION_LEVEL_RELEASE is not set
CONFIG_OPTIMIZATION_ASSERTIONS_ENABLED=y
# CONFIG_OPTIMIZATION_ASSERTIONS_SILENT is not set
# CONFIG_OPTIMIZATION_ASSERTIONS_DISABLED is not set
# CONFIG_CXX_EXCEPTIONS is not set
CONFIG_STACK_CHECK_NONE=y
# CONFIG_STACK_CHECK_NORM is not set
# CONFIG_STACK_CHECK_STRONG is not set
# CONFIG_STACK_CHECK_ALL is not set
# CONFIG_STACK_CHECK is not set
# CONFIG_WARN_WRITE_STRINGS is not set
# End of deprecated options

View File

@ -55,7 +55,8 @@
#else
#error not supported tool chain
#endif /* __CC_ARM */
USED static const struct fal_partition partition_table_def[] SECTION("FalPartTable") = FAL_PART_TABLE;
//USED static const struct fal_partition partition_table_def[] SECTION("FalPartTable") = FAL_PART_TABLE;
static const struct fal_partition partition_table_def[] = FAL_PART_TABLE;
static const struct fal_partition *partition_table = NULL;
#else /* FAL_PART_HAS_TABLE_CFG */