add pid debug set

This commit is contained in:
snow 2024-01-25 14:12:50 +08:00
parent aa7469a386
commit ccee524332
59 changed files with 21341 additions and 24150 deletions

View File

@ -1 +1 @@
95ab247b52bec0c6d2a8f13804da022d E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/wheel.bin
37f042a5034c54ef6375cf5e01900dee E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/wheel.bin

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -1 +1 @@
2648b76807002c520e4fcde7c196282c44db2763
aa7469a38621008ea1885f75391cb8849d8c2605

View File

@ -185,3 +185,21 @@
7 141 0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
7 112 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
7 112 0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
9 116 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
9 116 0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
8 116 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
8 116 0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
8 119 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
8 119 0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
8 112 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
8 112 0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
7 120 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
7 120 0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
9 112 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
9 112 0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
7 121 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
7 121 0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
7 109 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
7 109 0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
7 117 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3
7 117 0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size e386c30e681bb3a3

View File

@ -3158,7 +3158,7 @@ build esp-idf/mbedtls/mbedtls/library/CMakeFiles/lib | ${cmake_ninja_workdir}esp
build cmake_object_order_depends_target___idf_esp_app_format: phony || cmake_object_order_depends_target___idf_bootloader_support
build esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj: C_COMPILER____idf_esp_app_format_ E$:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_app_format/esp_app_desc.c || cmake_object_order_depends_target___idf_esp_app_format
DEFINES = -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -D PROJECT_NAME=\"wheel\" -DPROJECT_VER=\"2648b76-dirty\"
DEFINES = -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -D PROJECT_NAME=\"wheel\" -DPROJECT_VER=\"aa7469a-dirty\"
DEP_FILE = esp-idf\esp_app_format\CMakeFiles\__idf_esp_app_format.dir\esp_app_desc.c.obj.d
FLAGS = -mlongcalls -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel=. -fmacro-prefix-map=E:/Espressif/frameworks/esp-idf-v5.0.4=/IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v5.0.4-dirty\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS
INCLUDES = -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/config -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_app_format/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/newlib/platform_include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/esp_additions/include/freertos -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/esp_additions/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/soc -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/soc/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/port/esp32s3/. -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/port/esp32s3/private_include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/heap/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/log/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/esp32s3/. -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/platform_port/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/include/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_common/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/soc -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/include/private -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include/apps -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include/apps/sntp -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/lwip/src/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/port/esp32/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/port/esp32/include/arch

View File

@ -956,7 +956,7 @@
},
{
"directory": "E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build",
"command": "E:\\Espressif\\tools\\xtensa-esp32s3-elf\\esp-2022r1-11.2.0\\xtensa-esp32s3-elf\\bin\\xtensa-esp32s3-elf-gcc.exe -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -D PROJECT_NAME=\\\"wheel\\\" -DPROJECT_VER=\\\"2648b76-dirty\\\" -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/config -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_app_format/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/newlib/platform_include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/esp_additions/include/freertos -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/esp_additions/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/soc -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/soc/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/port/esp32s3/. -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/port/esp32s3/private_include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/heap/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/log/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/esp32s3/. -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/platform_port/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/include/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_common/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/soc -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/include/private -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include/apps -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include/apps/sntp -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/lwip/src/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/port/esp32/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/port/esp32/include/arch -mlongcalls -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel=. -fmacro-prefix-map=E:/Espressif/frameworks/esp-idf-v5.0.4=/IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\\\"v5.0.4-dirty\\\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -o esp-idf\\esp_app_format\\CMakeFiles\\__idf_esp_app_format.dir\\esp_app_desc.c.obj -c E:\\Espressif\\frameworks\\esp-idf-v5.0.4\\components\\esp_app_format\\esp_app_desc.c",
"command": "E:\\Espressif\\tools\\xtensa-esp32s3-elf\\esp-2022r1-11.2.0\\xtensa-esp32s3-elf\\bin\\xtensa-esp32s3-elf-gcc.exe -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -D PROJECT_NAME=\\\"wheel\\\" -DPROJECT_VER=\\\"aa7469a-dirty\\\" -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/config -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_app_format/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/newlib/platform_include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/esp_additions/include/freertos -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/esp_additions/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/soc -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/soc/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/port/esp32s3/. -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/port/esp32s3/private_include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/heap/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/log/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/esp32s3/. -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/platform_port/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/include/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_common/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/soc -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/include/private -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include/apps -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include/apps/sntp -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/lwip/src/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/port/esp32/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/port/esp32/include/arch -mlongcalls -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel=. -fmacro-prefix-map=E:/Espressif/frameworks/esp-idf-v5.0.4=/IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\\\"v5.0.4-dirty\\\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -o esp-idf\\esp_app_format\\CMakeFiles\\__idf_esp_app_format.dir\\esp_app_desc.c.obj -c E:\\Espressif\\frameworks\\esp-idf-v5.0.4\\components\\esp_app_format\\esp_app_desc.c",
"file": "E:\\Espressif\\frameworks\\esp-idf-v5.0.4\\components\\esp_app_format\\esp_app_desc.c"
},
{

Binary file not shown.

View File

View File

View File

@ -0,0 +1,10 @@
--- WARNING: GDB cannot open serial ports accessed as COMx
--- Using \\.\COM5 instead...
--- idf_monitor on \\.\COM5 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
0x4037bb16: esp_cpu_wait_for_intr at E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/cpu.c:110

0x4037538c: call_start_cpu1 at E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/cpu_start.c:143

Warning: checksum mismatch between flashed and built applications. Checksum of built application is 3705bde5d567733df343e04839426e84e4608977bd4969f911ef58a0e86b330c


View File

@ -0,0 +1,7 @@
--- WARNING: GDB cannot open serial ports accessed as COMx
--- Using \\.\COM5 instead...
--- idf_monitor on \\.\COM5 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
0x4037538c: call_start_cpu1 at E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/cpu_start.c:143



View File

View File

View File

View File

View File

@ -0,0 +1,7 @@
--- WARNING: GDB cannot open serial ports accessed as COMx
--- Using \\.\COM5 instead...
--- idf_monitor on \\.\COM5 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
0x4037538c: call_start_cpu1 at E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/cpu_start.c:143



View File

@ -0,0 +1,9 @@
--- WARNING: GDB cannot open serial ports accessed as COMx
--- Using \\.\COM5 instead...
--- idf_monitor on \\.\COM5 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
0x42031621: net80211_funcs_init at ??:?

0x4037538c: call_start_cpu1 at E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/cpu_start.c:143



View File

@ -2,8 +2,10 @@
--- Using \\.\COM5 instead...
--- idf_monitor on \\.\COM5 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
0x4037baa6: esp_cpu_wait_for_intr at E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/cpu.c:110
0x4203aa54: wifi_nvs_cfg_init at ??:?

0x403753c0: call_start_cpu1 at E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/cpu_start.c:143
0x4037538c: call_start_cpu1 at E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/cpu_start.c:143

ClearCommError failed (PermissionError(13, '设备不识别此命令。', None, 22))
Waiting for the device to reconnect..............


View File

View File

@ -0,0 +1,42 @@
Warning: in CMake variable EXTRA_COMPONENT_DIRS: Path component 'components/wifi_station components/modbus_tcp' contains
a space separator. It was automatically split into ['components/wifi_station', 'components/modbus_tcp']
Warning: in CMake variable EXTRA_COMPONENT_DIRS: Path component ' components/wifi_station components/modbus_tcp'
contains leading spaces
Note: In ESP-IDF v5.0 and later, COMPONENT_DIRS and EXTRA_COMPONENT_DIRS should be defined
as CMake lists, not as space separated strings.
Examples:
* set(EXTRA_COMPONENT_DIRS path/to/components path/to/more/components)
# Correct, EXTRA_COMPONENT_DIRS is defined as a CMake list, with two paths added
* list(APPEND EXTRA_COMPONENT_DIRS path/to/component)
list(APPEND EXTRA_COMPONENT_DIRS path/to/more/components)
# Correct, use when building EXTRA_COMPONENT_DIRS incrementally
* set(EXTRA_COMPONENT_DIRS path/to/components "another/path with space/components")
# Literal path with spaces has to be quoted
* set(EXTRA_COMPONENT_DIRS $ENV{MY_PATH}/components dir/more_components)
# Correct, even if MY_PATH contains spaces
* set(EXTRA_COMPONENT_DIRS ${ROOT}/component1 ${ROOT}/component2 ${ROOT}/component3)
# Correct, even if ROOT contains spaces
Avoid string concatenation!
set(EXTRA_COMPONENT_DIRS "${EXTRA_COMPONENT_DIRS} component1")
set(EXTRA_COMPONENT_DIRS "${EXTRA_COMPONENT_DIRS} component2")
# Incorrect. String "component1 component2" may indicate a single directory
# name with a space, or two directory names separated by space.
Instead use:
list(APPEND component1)
list(APPEND component2)
Defining COMPONENT_DIRS and EXTRA_COMPONENT_DIRS as CMake lists is backwards compatible
with ESP-IDF 4.4 and below.
(If you think these variables are defined correctly in your project and this message
is not relevant, please report this as an issue.)
Diagnostic info: E:/Espressif/frameworks/esp-idf-v5.0.4/tools/split_paths_by_spaces.py was invoked in E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel with arguments: ['--var-name=EXTRA_COMPONENT_DIRS', ' components/wifi_station components/modbus_tcp']

View File

View File

@ -0,0 +1,9 @@
--- WARNING: GDB cannot open serial ports accessed as COMx
--- Using \\.\COM5 instead...
--- idf_monitor on \\.\COM5 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
0x4206c800: __sfvwrite_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32s3-elf/src/newlib/newlib/libc/stdio/fvwrite.c:251

0x4037538c: call_start_cpu1 at E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/cpu_start.c:143



View File

@ -0,0 +1,19 @@
[1/9] Building C object esp-idf/mcpwm_bdc_control/CMakeFiles/__idf_mcpwm_bdc_control.dir/mcpwm_bdc_control.c.obj
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c: In function 'pid_loop_cb':
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c:109:24: warning: unused variable 'motor' [-Wunused-variable]
109 | bdc_motor_handle_t motor = ctx->motor;
| ^~~~~
[2/9] Linking C static library esp-idf\mcpwm_bdc_control\libmcpwm_bdc_control.a
[3/9] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\bootloader\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/bootloader.bin"
Bootloader binary size 0x4f90 bytes. 0x3070 bytes (38%) free.
[4/7] Generating ld/sections.ld
[5/7] Linking CXX executable wheel.elf
[6/7] Generating binary image from built executable
esptool.py v4.6.2
Creating esp32s3 image...
Merged 2 ELF sections
Successfully created esp32s3 image.
Generated E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/wheel.bin
[7/7] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 partition --type app E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/partition_table/partition-table.bin E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/wheel.bin"
wheel.bin binary size 0xb7db0 bytes. Smallest app partition is 0x100000 bytes. 0x48250 bytes (28%) free.

View File

@ -0,0 +1,67 @@
[1/5] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 partition --type app E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/partition_table/partition-table.bin E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/wheel.bin"
wheel.bin binary size 0xb7d70 bytes. Smallest app partition is 0x100000 bytes. 0x48290 bytes (28%) free.
[2/5] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\bootloader\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/bootloader.bin"
Bootloader binary size 0x4f90 bytes. 0x3070 bytes (38%) free.
[2/3] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\components\esptool_py && E:\Espressif\tools\cmake\3.24.0\bin\cmake.exe -D IDF_PATH=E:/Espressif/frameworks/esp-idf-v5.0.4 -D SERIAL_TOOL=E:/Espressif/python_env/idf5.0_py3.11_env/Scripts/python.exe;;E:/Espressif/frameworks/esp-idf-v5.0.4/components/esptool_py/esptool/esptool.py;--chip;esp32s3 -D SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;write_flash;@flash_args -D WORKING_DIRECTORY=E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build -P E:/Espressif/frameworks/esp-idf-v5.0.4/components/esptool_py/run_serial_tool.cmake"
esptool esp32s3 -p COM5 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x0 bootloader/bootloader.bin 0x10000 wheel.bin 0x8000 partition_table/partition-table.bin
esptool.py v4.6.2
Serial port COM5
Connecting...
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: f4:12:fa:57:c4:a4
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00004fff...
Flash will be erased from 0x00010000 to 0x000c7fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 20368 bytes to 12913...
Writing at 0x00000000... (100 %)
Wrote 20368 bytes (12913 compressed) at 0x00000000 in 0.4 seconds (effective 418.9 kbit/s)...
Hash of data verified.
Compressed 753008 bytes to 475148...
Writing at 0x00010000... (3 %)
Writing at 0x0001cd9d... (6 %)
Writing at 0x00026abe... (10 %)
Writing at 0x0002bffb... (13 %)
Writing at 0x00035e0d... (16 %)
Writing at 0x0003bdc2... (20 %)
Writing at 0x00041cd5... (23 %)
Writing at 0x00047d53... (26 %)
Writing at 0x0004e5e0... (30 %)
Writing at 0x00054406... (33 %)
Writing at 0x00059921... (36 %)
Writing at 0x0005f053... (40 %)
Writing at 0x000648eb... (43 %)
Writing at 0x0006a36d... (46 %)
Writing at 0x00070279... (50 %)
Writing at 0x0007542c... (53 %)
Writing at 0x0007a3d6... (56 %)
Writing at 0x0007f488... (60 %)
Writing at 0x000847d4... (63 %)
Writing at 0x00089b21... (66 %)
Writing at 0x0008ee42... (70 %)
Writing at 0x00094bef... (73 %)
Writing at 0x0009a35d... (76 %)
Writing at 0x0009fec5... (80 %)
Writing at 0x000a5e0d... (83 %)
Writing at 0x000ab3cd... (86 %)
Writing at 0x000b40d9... (90 %)
Writing at 0x000bc256... (93 %)
Writing at 0x000c2153... (96 %)
Writing at 0x000c7d69... (100 %)
Wrote 753008 bytes (475148 compressed) at 0x00010000 in 8.1 seconds (effective 739.6 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 438.2 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...

View File

@ -0,0 +1,142 @@
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x2a (SPI_FAST_FLASH_BOOT)
Saved PC:0x4037bb16
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3810,len:0x168c
load:0x403c9700,len:0xbe0
load:0x403cc700,len:0x2cd0
entry 0x403c9908
I (24) boot: ESP-IDF v5.0.4-dirty 2nd stage bootloader
I (25) boot: compile time 09:09:09
I (25) boot: Multicore bootloader
I (27) boot: chip revision: v0.1
I (31) boot.esp32s3: Boot SPI Speed : 80MHz
I (36) boot.esp32s3: SPI Mode : DIO
I (41) boot.esp32s3: SPI Flash Size : 2MB
I (45) boot: Enabling RNG early entropy source...
I (51) boot: Partition Table:
I (54) boot: ## Label Usage Type ST Offset Length
I (62) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (69) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (76) boot: 2 factory factory app 00 00 00010000 00100000
I (84) boot: End of partition table
I (88) esp_image: segment 0: paddr=00010020 vaddr=3c080020 size=22368h (140136) map
I (122) esp_image: segment 1: paddr=00032390 vaddr=3fc96c00 size=03e60h ( 15968) load
I (125) esp_image: segment 2: paddr=000361f8 vaddr=40374000 size=09e20h ( 40480) load
I (136) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=7f00ch (520204) map
I (230) esp_image: segment 4: paddr=000bf034 vaddr=4037de20 size=08d0ch ( 36108) load
I (246) boot: Loaded app from partition at offset 0x10000
I (247) boot: Disabling RNG early entropy source...
I (247) cpu_start: Multicore app
I (251) cpu_start: Pro cpu up.
I (254) cpu_start: Starting app cpu, entry point is 0x4037538c
I (0) cpu_start: App cpu up.
I (270) cpu_start: Pro cpu start user code
I (270) cpu_start: cpu freq: 160000000 Hz
I (271) cpu_start: Application information:
I (271) cpu_start: Project name: wheel
I (271) cpu_start: App version: aa7469a-dirty
I (271) cpu_start: Compile time: Jan 25 2024 13:40:22
I (271) cpu_start: ELF file SHA256: 01cfbe9f84822333...
I (272) cpu_start: ESP-IDF: v5.0.4-dirty
I (272) cpu_start: Min chip rev: v0.0
I (272) cpu_start: Max chip rev: v0.99 
I (272) cpu_start: Chip rev: v0.1
I (273) heap_init: Initializing. RAM available for dynamic allocation:
I (273) heap_init: At 3FCA4588 len 00045188 (276 KiB): DRAM
I (273) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (273) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (274) heap_init: At 600FE010 len 00001FD8 (7 KiB): RTCRAM
I (275) spi_flash: detected chip: gd
I (275) spi_flash: flash io: dio
W (276) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (277) sleep: Configure to isolate all GPIO pins in sleep state
I (277) sleep: Enable automatic switching of GPIO sleep configuration
I (278) app_start: Starting scheduler on CPU0
I (278) app_start: Starting scheduler on CPU1
I (278) main_task: Started on CPU0
I (288) main_task: Calling app_main()
I (308) wifi station: ESP_WIFI_INIT_STA
I (308) pp: pp rom version: e7ae62f
I (308) net80211: net80211 rom version: e7ae62f
I (318) wifi:wifi driver task: 3fcae598, prio:23, stack:6656, core=0
I (318) system_api: Base MAC address is not set
I (318) system_api: read default base MAC address from EFUSE
I (328) wifi:wifi firmware version: e2d0ad8
I (328) wifi:wifi certification version: v7.0
I (328) wifi:config NVS flash: enabled
I (328) wifi:config nano formating: disabled
I (328) wifi:Init data frame dynamic rx buffer num: 32
I (328) wifi:Init management frame dynamic rx buffer num: 32
I (328) wifi:Init management short buffer num: 32
I (328) wifi:Init dynamic tx buffer num: 32
I (328) wifi:Init static tx FG buffer num: 2
I (328) wifi:Init static rx buffer size: 1600
I (328) wifi:Init static rx buffer num: 10
I (328) wifi:Init dynamic rx buffer num: 32
I (328) wifi_init: rx ba win: 6
I (328) wifi_init: tcpip mbox: 32
I (328) wifi_init: udp mbox: 6
I (328) wifi_init: tcp mbox: 6
I (328) wifi_init: tcp tx win: 5744
I (328) wifi_init: tcp rx win: 5744
I (328) wifi_init: tcp mss: 1440
I (328) wifi_init: WiFi IRAM OP enabled
I (328) wifi_init: WiFi RX IRAM OP enabled
I (338) phy_init: phy_version 610,2bff4c8,Jul 27 2023,20:22:14
I (368) wifi:mode : sta (f4:12:fa:57:c4:a4)
I (368) wifi:enable tsf
I (368) modbus tcp: ModBusTCPSlave_init
I (378) twal: twai init
I (378) twal: twai_receive_task
I (378) twal: twai_send_task
I (378) bdc_control: DC motor dir gpio init
I (378) gpio: GPIO[1]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (378) gpio: GPIO[3]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (378) bdc_control: DC motor speed pwm init
I (378) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (378) wifi:new:<11,0>, old:<1,0>, ap:<255,255>, sta:<11,0>, prof:1
I (378) wifi:state: init -> auth (b0)
I (388) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) bdc_control: Init pcnt driver to decode rotary signal
I (388) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) bdc_control: Create PID control block
I (388) wifi:state: auth -> assoc (0)
I (388) bdc_control: Create a timer to do PID calculation periodically
I (388) bdc_control: DC motor dir gpio init
I (388) gpio: GPIO[7]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[9]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) bdc_control: DC motor speed pwm init
I (388) gpio: GPIO[8]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[10]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) wifi:state: assoc -> run (10)
I (398) bdc_control: Init pcnt driver to decode rotary signal
I (398) gpio: GPIO[26]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) gpio: GPIO[33]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) gpio: GPIO[33]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) gpio: GPIO[26]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) bdc_control: Create PID control block
I (398) bdc_control: Create a timer to do PID calculation periodically
I (398) bdc_control: Enable motor
I (398) bdc_control: Start motor loop
I (418) wifi:connected with CMCC-xRSZ, aid = 132, channel 11, BW20, bssid = 74:6f:88:5a:5f:88
I (418) wifi:security: WPA2-PSK, phy: bgn, rssi: -43
I (428) wifi:pm start, type: 1
I (428) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 0, mt_pti: 25000, mt_time: 10000
I (428) wifi station: connected to ap SSID:CMCC-xRSZ password:dughk9gm
I (428) wifi:<ba-add>idx:0 (ifx:0, 74:6f:88:5a:5f:88), tid:0, ssn:0, winSize:64
I (428) wifi:<ba-add>idx:1 (ifx:0, 74:6f:88:5a:5f:88), tid:1, ssn:0, winSize:64
I (458) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (1428) esp_netif_handlers: sta ip: 192.168.1.156, mask: 255.255.255.0, gw: 192.168.1.1
I (1428) wifi station: got ip:192.168.1.156
I (4888) modbus tcp: accept assess
I (30768) modbus: pid is change
I (30798) bdc_control: pid set successfully:5.000000 0.000000 0.000000
I (40908) modbus: pid is change
I (40948) bdc_control: pid set successfully:10.000000 0.000000 0.000000

View File

@ -0,0 +1,140 @@
I (122) esp_image: segment 1: paddr=00032390 vaddr=3fc96cESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x2a (SPI_FAST_FLASH_BOOT)
Saved PC:0x400559e3
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3810,len:0x168c
load:0x403c9700,len:0xbe0
load:0x403cc700,len:0x2cd0
entry 0x403c9908
I (24) boot: ESP-IDF v5.0.4-dirty 2nd stage bootloader
I (25) boot: compile time 09:09:09
I (25) boot: Multicore bootloader
I (27) boot: chip revision: v0.1
I (31) boot.esp32s3: Boot SPI Speed : 80MHz
I (36) boot.esp32s3: SPI Mode : DIO
I (41) boot.esp32s3: SPI Flash Size : 2MB
I (45) boot: Enabling RNG early entropy source...
I (51) boot: Partition Table:
I (54) boot: ## Label Usage Type ST Offset Length
I (62) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (69) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (76) boot: 2 factory factory app 00 00 00010000 00100000
I (84) boot: End of partition table
I (88) esp_image: segment 0: paddr=00010020 vaddr=3c080020 size=22368h (140136) map
I (122) esp_image: segment 1: paddr=00032390 vaddr=3fc96c00 size=03e60h ( 15968) load
I (125) esp_image: segment 2: paddr=000361f8 vaddr=40374000 size=09e20h ( 40480) load
I (136) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=7f00ch (520204) map
I (230) esp_image: segment 4: paddr=000bf034 vaddr=4037de20 size=08d0ch ( 36108) load
I (246) boot: Loaded app from partition at offset 0x10000
I (247) boot: Disabling RNG early entropy source...
I (247) cpu_start: Multicore app
I (251) cpu_start: Pro cpu up.
I (254) cpu_start: Starting app cpu, entry point is 0x4037538c
I (0) cpu_start: App cpu up.
I (270) cpu_start: Pro cpu start user code
I (270) cpu_start: cpu freq: 160000000 Hz
I (271) cpu_start: Application information:
I (271) cpu_start: Project name: wheel
I (271) cpu_start: App version: aa7469a-dirty
I (271) cpu_start: Compile time: Jan 25 2024 13:40:22
I (271) cpu_start: ELF file SHA256: 01cfbe9f84822333...
I (272) cpu_start: ESP-IDF: v5.0.4-dirty
I (272) cpu_start: Min chip rev: v0.0
I (272) cpu_start: Max chip rev: v0.99 
I (272) cpu_start: Chip rev: v0.1
I (273) heap_init: Initializing. RAM available for dynamic allocation:
I (273) heap_init: At 3FCA4588 len 00045188 (276 KiB): DRAM
I (273) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (274) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (274) heap_init: At 600FE010 len 00001FD8 (7 KiB): RTCRAM
I (275) spi_flash: detected chip: gd
I (275) spi_flash: flash io: dio
W (276) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (277) sleep: Configure to isolate all GPIO pins in sleep state
I (277) sleep: Enable automatic switching of GPIO sleep configuration
I (278) app_start: Starting scheduler on CPU0
I (278) app_start: Starting scheduler on CPU1
I (278) main_task: Started on CPU0
I (288) main_task: Calling app_main()
I (308) wifi station: ESP_WIFI_INIT_STA
I (308) pp: pp rom version: e7ae62f
I (308) net80211: net80211 rom version: e7ae62f
I (318) wifi:wifi driver task: 3fcae598, prio:23, stack:6656, core=0
I (318) system_api: Base MAC address is not set
I (318) system_api: read default base MAC address from EFUSE
I (328) wifi:wifi firmware version: e2d0ad8
I (328) wifi:wifi certification version: v7.0
I (328) wifi:config NVS flash: enabled
I (328) wifi:config nano formating: disabled
I (328) wifi:Init data frame dynamic rx buffer num: 32
I (328) wifi:Init management frame dynamic rx buffer num: 32
I (328) wifi:Init management short buffer num: 32
I (328) wifi:Init dynamic tx buffer num: 32
I (328) wifi:Init static tx FG buffer num: 2
I (328) wifi:Init static rx buffer size: 1600
I (328) wifi:Init static rx buffer num: 10
I (328) wifi:Init dynamic rx buffer num: 32
I (328) wifi_init: rx ba win: 6
I (328) wifi_init: tcpip mbox: 32
I (328) wifi_init: udp mbox: 6
I (328) wifi_init: tcp mbox: 6
I (328) wifi_init: tcp tx win: 5744
I (328) wifi_init: tcp rx win: 5744
I (328) wifi_init: tcp mss: 1440
I (328) wifi_init: WiFi IRAM OP enabled
I (328) wifi_init: WiFi RX IRAM OP enabled
I (338) phy_init: phy_version 610,2bff4c8,Jul 27 2023,20:22:14
I (368) wifi:mode : sta (f4:12:fa:57:c4:a4)
I (368) wifi:enable tsf
I (378) modbus tcp: ModBusTCPSlave_init
I (378) twal: twai init
I (378) twal: twai_receive_task
I (378) twal: twai_send_task
I (378) bdc_control: DC motor dir gpio init
I (378) gpio: GPIO[1]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (378) gpio: GPIO[3]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (378) bdc_control: DC motor speed pwm init
I (378) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (378) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (378) wifi:new:<11,0>, old:<1,0>, ap:<255,255>, sta:<11,0>, prof:1
I (388) wifi:state: init -> auth (b0)
I (388) bdc_control: Init pcnt driver to decode rotary signal
I (388) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) wifi:state: auth -> assoc (0)
I (388) bdc_control: Create PID control block
I (388) bdc_control: Create a timer to do PID calculation periodically
I (388) bdc_control: DC motor dir gpio init
I (388) gpio: GPIO[7]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[9]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) bdc_control: DC motor speed pwm init
I (388) gpio: GPIO[8]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[10]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) bdc_control: Init pcnt driver to decode rotary signal
I (398) wifi:state: assoc -> run (10)
I (398) gpio: GPIO[26]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) gpio: GPIO[33]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) gpio: GPIO[33]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) gpio: GPIO[26]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) bdc_control: Create PID control block
I (398) bdc_control: Create a timer to do PID calculation periodically
I (398) bdc_control: Enable motor
I (398) bdc_control: Start motor loop
I (428) wifi:connected with CMCC-xRSZ, aid = 132, channel 11, BW20, bssid = 74:6f:88:5a:5f:88
I (428) wifi:security: WPA2-PSK, phy: bgn, rssi: -43
I (428) wifi:pm start, type: 1
I (428) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 0, mt_pti: 25000, mt_time: 10000
I (438) wifi station: connected to ap SSID:CMCC-xRSZ password:dughk9gm
I (468) wifi:<ba-add>idx:0 (ifx:0, 74:6f:88:5a:5f:88), tid:0, ssn:0, winSize:64
I (478) wifi:<ba-add>idx:1 (ifx:0, 74:6f:88:5a:5f:88), tid:1, ssn:0, winSize:64
I (528) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (1438) esp_netif_handlers: sta ip: 192.168.1.156, mask: 255.255.255.0, gw: 192.168.1.1
I (1438) wifi station: got ip:192.168.1.156
I (7188) modbus tcp: accept assess
I (426368) modbus tcp: accept assess
I (426388) modbus: err:rxlen less 4

View File

@ -0,0 +1,67 @@
[1/5] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 partition --type app E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/partition_table/partition-table.bin E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/wheel.bin"
wheel.bin binary size 0xb7d70 bytes. Smallest app partition is 0x100000 bytes. 0x48290 bytes (28%) free.
[2/5] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\bootloader\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/bootloader.bin"
Bootloader binary size 0x4f90 bytes. 0x3070 bytes (38%) free.
[2/3] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\components\esptool_py && E:\Espressif\tools\cmake\3.24.0\bin\cmake.exe -D IDF_PATH=E:/Espressif/frameworks/esp-idf-v5.0.4 -D SERIAL_TOOL=E:/Espressif/python_env/idf5.0_py3.11_env/Scripts/python.exe;;E:/Espressif/frameworks/esp-idf-v5.0.4/components/esptool_py/esptool/esptool.py;--chip;esp32s3 -D SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;write_flash;@flash_args -D WORKING_DIRECTORY=E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build -P E:/Espressif/frameworks/esp-idf-v5.0.4/components/esptool_py/run_serial_tool.cmake"
esptool esp32s3 -p COM5 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x0 bootloader/bootloader.bin 0x10000 wheel.bin 0x8000 partition_table/partition-table.bin
esptool.py v4.6.2
Serial port COM5
Connecting...
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: f4:12:fa:57:c4:a4
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00004fff...
Flash will be erased from 0x00010000 to 0x000c7fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 20368 bytes to 12913...
Writing at 0x00000000... (100 %)
Wrote 20368 bytes (12913 compressed) at 0x00000000 in 0.4 seconds (effective 420.0 kbit/s)...
Hash of data verified.
Compressed 753008 bytes to 475148...
Writing at 0x00010000... (3 %)
Writing at 0x0001cd9d... (6 %)
Writing at 0x00026abe... (10 %)
Writing at 0x0002bffb... (13 %)
Writing at 0x00035e0d... (16 %)
Writing at 0x0003bdc2... (20 %)
Writing at 0x00041cd5... (23 %)
Writing at 0x00047d53... (26 %)
Writing at 0x0004e5e0... (30 %)
Writing at 0x00054406... (33 %)
Writing at 0x00059921... (36 %)
Writing at 0x0005f053... (40 %)
Writing at 0x000648eb... (43 %)
Writing at 0x0006a36d... (46 %)
Writing at 0x00070279... (50 %)
Writing at 0x0007542c... (53 %)
Writing at 0x0007a3d6... (56 %)
Writing at 0x0007f488... (60 %)
Writing at 0x000847d4... (63 %)
Writing at 0x00089b21... (66 %)
Writing at 0x0008ee42... (70 %)
Writing at 0x00094bef... (73 %)
Writing at 0x0009a35d... (76 %)
Writing at 0x0009fec5... (80 %)
Writing at 0x000a5e0d... (83 %)
Writing at 0x000ab3cd... (86 %)
Writing at 0x000b40d9... (90 %)
Writing at 0x000bc256... (93 %)
Writing at 0x000c2153... (96 %)
Writing at 0x000c7d69... (100 %)
Wrote 753008 bytes (475148 compressed) at 0x00010000 in 8.1 seconds (effective 743.6 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 463.7 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...

View File

@ -0,0 +1,31 @@
[1/11] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\bootloader\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/bootloader.bin"
Bootloader binary size 0x4f90 bytes. 0x3070 bytes (38%) free.
[2/9] Building C object esp-idf/modbus_tcp/CMakeFiles/__idf_modbus_tcp.dir/modbus.c.obj
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/modbus_tcp/modbus.c: In function 'ModbusSlaveProcess':
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/modbus_tcp/modbus.c:120:11: warning: unused variable 'tlv_len' [-Wunused-variable]
120 | uint8_t tlv_len = 0;
| ^~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/modbus_tcp/modbus.c:118:12: warning: unused variable 'pVar' [-Wunused-variable]
118 | uint8_t *pVar;
| ^~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/modbus_tcp/modbus.c:114:12: warning: unused variable 'temp_cnt' [-Wunused-variable]
114 | uint16_t temp_cnt;
| ^~~~~~~~
[3/9] Linking C static library esp-idf\modbus_tcp\libmodbus_tcp.a
[4/9] Building C object esp-idf/mcpwm_bdc_control/CMakeFiles/__idf_mcpwm_bdc_control.dir/mcpwm_bdc_control.c.obj
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c: In function 'pid_loop_cb':
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c:109:24: warning: unused variable 'motor' [-Wunused-variable]
109 | bdc_motor_handle_t motor = ctx->motor;
| ^~~~~
[5/9] Linking C static library esp-idf\mcpwm_bdc_control\libmcpwm_bdc_control.a
[6/9] Generating ld/sections.ld
[7/9] Linking CXX executable wheel.elf
[8/9] Generating binary image from built executable
esptool.py v4.6.2
Creating esp32s3 image...
Merged 2 ELF sections
Successfully created esp32s3 image.
Generated E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/wheel.bin
[9/9] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 partition --type app E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/partition_table/partition-table.bin E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/wheel.bin"
wheel.bin binary size 0xb7db0 bytes. Smallest app partition is 0x100000 bytes. 0x48250 bytes (28%) free.

View File

@ -0,0 +1,67 @@
[1/5] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 partition --type app E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/partition_table/partition-table.bin E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/wheel.bin"
wheel.bin binary size 0xb7db0 bytes. Smallest app partition is 0x100000 bytes. 0x48250 bytes (28%) free.
[2/5] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\bootloader\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/bootloader.bin"
Bootloader binary size 0x4f90 bytes. 0x3070 bytes (38%) free.
[2/3] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\components\esptool_py && E:\Espressif\tools\cmake\3.24.0\bin\cmake.exe -D IDF_PATH=E:/Espressif/frameworks/esp-idf-v5.0.4 -D SERIAL_TOOL=E:/Espressif/python_env/idf5.0_py3.11_env/Scripts/python.exe;;E:/Espressif/frameworks/esp-idf-v5.0.4/components/esptool_py/esptool/esptool.py;--chip;esp32s3 -D SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;write_flash;@flash_args -D WORKING_DIRECTORY=E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build -P E:/Espressif/frameworks/esp-idf-v5.0.4/components/esptool_py/run_serial_tool.cmake"
esptool esp32s3 -p COM5 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x0 bootloader/bootloader.bin 0x10000 wheel.bin 0x8000 partition_table/partition-table.bin
esptool.py v4.6.2
Serial port COM5
Connecting...
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: f4:12:fa:57:c4:a4
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00004fff...
Flash will be erased from 0x00010000 to 0x000c7fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 20368 bytes to 12913...
Writing at 0x00000000... (100 %)
Wrote 20368 bytes (12913 compressed) at 0x00000000 in 0.4 seconds (effective 418.9 kbit/s)...
Hash of data verified.
Compressed 753072 bytes to 475193...
Writing at 0x00010000... (3 %)
Writing at 0x0001cda4... (6 %)
Writing at 0x00026abc... (10 %)
Writing at 0x0002bffa... (13 %)
Writing at 0x00035def... (16 %)
Writing at 0x0003bdc4... (20 %)
Writing at 0x00041cdd... (23 %)
Writing at 0x00047d3c... (26 %)
Writing at 0x0004e5a1... (30 %)
Writing at 0x000543a1... (33 %)
Writing at 0x000598e9... (36 %)
Writing at 0x0005f020... (40 %)
Writing at 0x000648c6... (43 %)
Writing at 0x0006a359... (46 %)
Writing at 0x0007025e... (50 %)
Writing at 0x0007541f... (53 %)
Writing at 0x0007a3c2... (56 %)
Writing at 0x0007f481... (60 %)
Writing at 0x000847b1... (63 %)
Writing at 0x00089b26... (66 %)
Writing at 0x0008ee3b... (70 %)
Writing at 0x00094bdf... (73 %)
Writing at 0x0009a356... (76 %)
Writing at 0x0009fea6... (80 %)
Writing at 0x000a5e0c... (83 %)
Writing at 0x000ab3d0... (86 %)
Writing at 0x000b40d7... (90 %)
Writing at 0x000bc24c... (93 %)
Writing at 0x000c2131... (96 %)
Writing at 0x000c7d6a... (100 %)
Wrote 753072 bytes (475193 compressed) at 0x00010000 in 8.1 seconds (effective 739.9 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 447.1 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...

View File

@ -0,0 +1,5 @@
[1/4] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 partition --type app E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/partition_table/partition-table.bin E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/wheel.bin"
wheel.bin binary size 0xb7db0 bytes. Smallest app partition is 0x100000 bytes. 0x48250 bytes (28%) free.
[2/4] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\bootloader\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/bootloader.bin"
Bootloader binary size 0x4f90 bytes. 0x3070 bytes (38%) free.

View File

@ -0,0 +1,148 @@
I (122) esp_image: segment 1: paddr=00032390 vaddr=3fc96cESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x2a (SPI_FAST_FLASH_BOOT)
Saved PC:0x4004f3a0
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3810,len:0x168c
load:0x403c9700,len:0xbe0
load:0x403cc700,len:0x2cd0
entry 0x403c9908
I (24) boot: ESP-IDF v5.0.4-dirty 2nd stage bootloader
I (25) boot: compile time 09:09:09
I (25) boot: Multicore bootloader
I (27) boot: chip revision: v0.1
I (31) boot.esp32s3: Boot SPI Speed : 80MHz
I (36) boot.esp32s3: SPI Mode : DIO
I (41) boot.esp32s3: SPI Flash Size : 2MB
I (45) boot: Enabling RNG early entropy source...
I (51) boot: Partition Table:
I (54) boot: ## Label Usage Type ST Offset Length
I (62) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (69) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (76) boot: 2 factory factory app 00 00 00010000 00100000
I (84) boot: End of partition table
I (88) esp_image: segment 0: paddr=00010020 vaddr=3c080020 size=22368h (140136) map
I (122) esp_image: segment 1: paddr=00032390 vaddr=3fc96c00 size=03e60h ( 15968) load
I (125) esp_image: segment 2: paddr=000361f8 vaddr=40374000 size=09e20h ( 40480) load
I (136) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=7f00ch (520204) map
I (230) esp_image: segment 4: paddr=000bf034 vaddr=4037de20 size=08d0ch ( 36108) load
I (246) boot: Loaded app from partition at offset 0x10000
I (247) boot: Disabling RNG early entropy source...
I (247) cpu_start: Multicore app
I (251) cpu_start: Pro cpu up.
I (254) cpu_start: Starting app cpu, entry point is 0x4037538c
I (0) cpu_start: App cpu up.
I (270) cpu_start: Pro cpu start user code
I (270) cpu_start: cpu freq: 160000000 Hz
I (271) cpu_start: Application information:
I (271) cpu_start: Project name: wheel
I (271) cpu_start: App version: aa7469a-dirty
I (271) cpu_start: Compile time: Jan 25 2024 13:40:22
I (271) cpu_start: ELF file SHA256: 01cfbe9f84822333...
I (272) cpu_start: ESP-IDF: v5.0.4-dirty
I (272) cpu_start: Min chip rev: v0.0
I (272) cpu_start: Max chip rev: v0.99 
I (272) cpu_start: Chip rev: v0.1
I (273) heap_init: Initializing. RAM available for dynamic allocation:
I (273) heap_init: At 3FCA4588 len 00045188 (276 KiB): DRAM
I (273) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (274) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (274) heap_init: At 600FE010 len 00001FD8 (7 KiB): RTCRAM
I (275) spi_flash: detected chip: gd
I (275) spi_flash: flash io: dio
W (276) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (277) sleep: Configure to isolate all GPIO pins in sleep state
I (277) sleep: Enable automatic switching of GPIO sleep configuration
I (278) app_start: Starting scheduler on CPU0
I (278) app_start: Starting scheduler on CPU1
I (278) main_task: Started on CPU0
I (288) main_task: Calling app_main()
I (308) wifi station: ESP_WIFI_INIT_STA
I (308) pp: pp rom version: e7ae62f
I (308) net80211: net80211 rom version: e7ae62f
I (318) wifi:wifi driver task: 3fcae598, prio:23, stack:6656, core=0
I (318) system_api: Base MAC address is not set
I (318) system_api: read default base MAC address from EFUSE
I (328) wifi:wifi firmware version: e2d0ad8
I (328) wifi:wifi certification version: v7.0
I (328) wifi:config NVS flash: enabled
I (328) wifi:config nano formating: disabled
I (328) wifi:Init data frame dynamic rx buffer num: 32
I (328) wifi:Init management frame dynamic rx buffer num: 32
I (328) wifi:Init management short buffer num: 32
I (328) wifi:Init dynamic tx buffer num: 32
I (328) wifi:Init static tx FG buffer num: 2
I (328) wifi:Init static rx buffer size: 1600
I (328) wifi:Init static rx buffer num: 10
I (328) wifi:Init dynamic rx buffer num: 32
I (328) wifi_init: rx ba win: 6
I (328) wifi_init: tcpip mbox: 32
I (328) wifi_init: udp mbox: 6
I (328) wifi_init: tcp mbox: 6
I (328) wifi_init: tcp tx win: 5744
I (328) wifi_init: tcp rx win: 5744
I (328) wifi_init: tcp mss: 1440
I (328) wifi_init: WiFi IRAM OP enabled
I (328) wifi_init: WiFi RX IRAM OP enabled
I (338) phy_init: phy_version 610,2bff4c8,Jul 27 2023,20:22:14
I (368) wifi:mode : sta (f4:12:fa:57:c4:a4)
I (368) wifi:enable tsf
I (378) modbus tcp: ModBusTCPSlave_init
I (378) twal: twai init
I (378) twal: twai_receive_task
I (378) twal: twai_send_task
I (378) bdc_control: DC motor dir gpio init
I (378) gpio: GPIO[1]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (378) gpio: GPIO[3]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (378) bdc_control: DC motor speed pwm init
I (378) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (378) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (378) bdc_control: Init pcnt driver to decode rotary signal
I (378) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (378) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (378) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) wifi:new:<11,0>, old:<1,0>, ap:<255,255>, sta:<11,0>, prof:1
I (388) wifi:state: init -> auth (b0)
I (388) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) bdc_control: Create PID control block
I (388) bdc_control: Create a timer to do PID calculation periodically
I (388) wifi:state: auth -> assoc (0)
I (388) bdc_control: DC motor dir gpio init
I (388) gpio: GPIO[7]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[9]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) bdc_control: DC motor speed pwm init
I (388) gpio: GPIO[8]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[10]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (398) bdc_control: Init pcnt driver to decode rotary signal
I (398) gpio: GPIO[26]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) gpio: GPIO[33]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) gpio: GPIO[33]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) wifi:state: assoc -> run (10)
I (398) gpio: GPIO[26]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) bdc_control: Create PID control block
I (398) bdc_control: Create a timer to do PID calculation periodically
I (398) bdc_control: Enable motor
I (398) bdc_control: Start motor loop
I (418) wifi:connected with CMCC-xRSZ, aid = 132, channel 11, BW20, bssid = 74:6f:88:5a:5f:88
I (418) wifi:security: WPA2-PSK, phy: bgn, rssi: -43
I (428) wifi:pm start, type: 1
I (428) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 0, mt_pti: 25000, mt_time: 10000
I (428) wifi:<ba-add>idx:0 (ifx:0, 74:6f:88:5a:5f:88), tid:0, ssn:0, winSize:64
I (428) wifi:<ba-add>idx:1 (ifx:0, 74:6f:88:5a:5f:88), tid:1, ssn:0, winSize:64
I (428) wifi station: connected to ap SSID:CMCC-xRSZ password:dughk9gm
I (498) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (1428) esp_netif_handlers: sta ip: 192.168.1.156, mask: 255.255.255.0, gw: 192.168.1.1
I (1428) wifi station: got ip:192.168.1.156
I (7258) modbus tcp: accept assess
I (113678) modbus: pid is change
I (113698) bdc_control: pid set successfully:2.000000 0.000000 0.000000
I (153708) modbus: pid is change
I (153748) bdc_control: pid set successfully:1.000000 0.000000 0.000000
I (170228) modbus: pid is change
I (170248) bdc_control: pid set successfully:5.000000 0.000000 0.000000
I (212008) modbus: pid is change
I (212048) bdc_control: pid set successfully:10.000000 0.000000 0.000000
I (248998) modbus: pid is change
I (249048) bdc_control: pid set successfully:1.000000 0.000000 0.000000

File diff suppressed because it is too large Load Diff

View File

@ -1,15 +1,16 @@
I (318) system_api: read default base MAC address from EFUSE
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x2a (SPI_FAST_FLASH_BOOT)
Saved PC:0x4037baa6
Saved PC:0x4203aa54
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3810,len:0x168c
load:0x403c9700,len:0xbf4
load:0x403cc700,len:0x2da8
entry 0x403c9904
load:0x403c9700,len:0xbe0
load:0x403cc700,len:0x2cd0
entry 0x403c9908
I (24) boot: ESP-IDF v5.0.4-dirty 2nd stage bootloader
I (25) boot: compile time 17:59:59
I (25) boot: compile time 09:09:09
I (25) boot: Multicore bootloader
I (27) boot: chip revision: v0.1
I (31) boot.esp32s3: Boot SPI Speed : 80MHz
@ -22,87 +23,145 @@ entry 0x403c9904
I (69) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (76) boot: 2 factory factory app 00 00 00010000 00100000
I (84) boot: End of partition table
I (88) esp_image: segment 0: paddr=00010020 vaddr=3c080020 size=20cdch (134364) map
I (121) esp_image: segment 1: paddr=00030d04 vaddr=3fc96d00 size=03f40h ( 16192) load
I (124) esp_image: segment 2: paddr=00034c4c vaddr=40374000 size=0b3cch ( 46028) load
I (137) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=7b500h (505088) map
I (228) esp_image: segment 4: paddr=000bb528 vaddr=4037f3cc size=078e8h ( 30952) load
I (235) esp_image: segment 5: paddr=000c2e18 vaddr=600fe010 size=00004h ( 4) load
I (243) boot: Loaded app from partition at offset 0x10000
I (243) boot: Disabling RNG early entropy source...
I (256) cpu_start: Multicore app
I (257) cpu_start: Pro cpu up.
I (257) cpu_start: Starting app cpu, entry point is 0x403753c0
I (88) esp_image: segment 0: paddr=00010020 vaddr=3c080020 size=22368h (140136) map
I (122) esp_image: segment 1: paddr=00032390 vaddr=3fc96c00 size=03e60h ( 15968) load
I (125) esp_image: segment 2: paddr=000361f8 vaddr=40374000 size=09e20h ( 40480) load
I (136) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=7f00ch (520204) map
I (230) esp_image: segment 4: paddr=000bf034 vaddr=4037de20 size=08d0ch ( 36108) load
I (246) boot: Loaded app from partition at offset 0x10000
I (247) boot: Disabling RNG early entropy source...
I (247) cpu_start: Multicore app
I (251) cpu_start: Pro cpu up.
I (254) cpu_start: Starting app cpu, entry point is 0x4037538c
I (0) cpu_start: App cpu up.
I (275) cpu_start: Pro cpu start user code
I (275) cpu_start: cpu freq: 160000000 Hz
I (275) cpu_start: Application information:
I (278) cpu_start: Project name: wheel
I (283) cpu_start: App version: 4a964ca-dirty
I (288) cpu_start: Compile time: Jan 24 2024 17:59:26
I (294) cpu_start: ELF file SHA256: 562a9930425d8689...
I (300) cpu_start: ESP-IDF: v5.0.4-dirty
I (306) cpu_start: Min chip rev: v0.0
I (310) cpu_start: Max chip rev: v0.99 
I (315) cpu_start: Chip rev: v0.1
I (320) heap_init: Initializing. RAM available for dynamic allocation:
I (327) heap_init: At 3FCA4758 len 00044FB8 (275 KiB): DRAM
I (333) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (340) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (346) heap_init: At 600FE014 len 00001FD4 (7 KiB): RTCRAM
I (353) spi_flash: detected chip: gd
I (357) spi_flash: flash io: dio
W (361) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (375) sleep: Configure to isolate all GPIO pins in sleep state
I (381) sleep: Enable automatic switching of GPIO sleep configuration
I (388) app_start: Starting scheduler on CPU0
I (393) app_start: Starting scheduler on CPU1
I (393) main_task: Started on CPU0
I (403) main_task: Calling app_main()
I (423) wifi station: ESP_WIFI_INIT_STA
I (433) pp: pp rom version: e7ae62f
I (433) net80211: net80211 rom version: e7ae62f
I (443) wifi:wifi driver task: 3fcae884, prio:23, stack:6656, core=0
I (443) system_api: Base MAC address is not set
I (443) system_api: read default base MAC address from EFUSE
I (463) wifi:wifi firmware version: e2d0ad8
I (463) wifi:wifi certification version: v7.0
I (463) wifi:config NVS flash: enabled
I (463) wifi:config nano formating: disabled
I (463) wifi:Init data frame dynamic rx buffer num: 32
I (473) wifi:Init management frame dynamic rx buffer num: 32
I (473) wifi:Init management short buffer num: 32
I (483) wifi:Init dynamic tx buffer num: 32
I (483) wifi:Init static tx FG buffer num: 2
I (483) wifi:Init static rx buffer size: 1600
I (493) wifi:Init static rx buffer num: 10
I (493) wifi:Init dynamic rx buffer num: 32
I (503) wifi_init: rx ba win: 6
I (503) wifi_init: tcpip mbox: 32
I (503) wifi_init: udp mbox: 6
I (513) wifi_init: tcp mbox: 6
I (513) wifi_init: tcp tx win: 5744
I (523) wifi_init: tcp rx win: 5744
I (523) wifi_init: tcp mss: 1440
I (523) wifi_init: WiFi IRAM OP enabled
I (533) wifi_init: WiFi RX IRAM OP enabled
I (533) phy_init: phy_version 610,2bff4c8,Jul 27 2023,20:22:14
I (583) wifi:mode : sta (f4:12:fa:57:c4:a4)
I (583) wifi:enable tsf
I (583) modbus tcp: ModBusTCPSlave_init
I (583) Adc measure: adc_measure_init
I (583) Adc measure: ADC1 Calibration Success
I (593) Adc measure: ADC2 Calibration Success
I (593) Adc measure: Create a timer to do ADC measure
Driver installed
Driver started
I (2993) wifi station: connect to the AP fail
I (2993) wifi station: retry to connect to the AP
I (5403) wifi station: connect to the AP fail
I (5403) wifi station: retry to connect to the AP
I (7813) wifi station: connect to the AP fail
I (7813) wifi station: retry to connect to the AP
I (10213) wifi station: connect to the AP fail
I (10223) wifi station: retry to connect to the AP
I (12623) wifi station: connect to the AP fail
I (12633) wifi station: retry to connect to the AP
I (270) cpu_start: Pro cpu start user code
I (270) cpu_start: cpu freq: 160000000 Hz
I (271) cpu_start: Application information:
I (271) cpu_start: Project name: wheel
I (271) cpu_start: App version: aa7469a-dirty
I (271) cpu_start: Compile time: Jan 25 2024 13:40:22
I (272) cpu_start: ELF file SHA256: 01cfbe9f84822333...
I (272) cpu_start: ESP-IDF: v5.0.4-dirty
I (272) cpu_start: Min chip rev: v0.0
I (272) cpu_start: Max chip rev: v0.99 
I (272) cpu_start: Chip rev: v0.1
I (273) heap_init: Initializing. RAM available for dynamic allocation:
I (273) heap_init: At 3FCA4588 len 00045188 (276 KiB): DRAM
I (273) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (274) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (274) heap_init: At 600FE010 len 00001FD8 (7 KiB): RTCRAM
I (275) spi_flash: detected chip: gd
I (275) spi_flash: flash io: dio
W (276) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (277) sleep: Configure to isolate all GPIO pins in sleep state
I (277) sleep: Enable automatic switching of GPIO sleep configuration
I (278) app_start: Starting scheduler on CPU0
I (278) app_start: Starting scheduler on CPU1
I (278) main_task: Started on CPU0
I (288) main_task: Calling app_main()
I (308) wifi station: ESP_WIFI_INIT_STA
I (308) pp: pp rom version: e7ae62f
I (308) net80211: net80211 rom version: e7ae62f
I (318) wifi:wifi driver task: 3fcae598, prio:23, stack:6656, core=0
I (318) system_api: Base MAC address is not set
I (318) system_api: read default base MAC address from EFUSE
I (328) wifi:wifi firmware version: e2d0ad8
I (328) wifi:wifi certification version: v7.0
I (328) wifi:config NVS flash: enabled
I (328) wifi:config nano formating: disabled
I (328) wifi:Init data frame dynamic rx buffer num: 32
I (328) wifi:Init management frame dynamic rx buffer num: 32
I (328) wifi:Init management short buffer num: 32
I (328) wifi:Init dynamic tx buffer num: 32
I (328) wifi:Init static tx FG buffer num: 2
I (328) wifi:Init static rx buffer size: 1600
I (328) wifi:Init static rx buffer num: 10
I (328) wifi:Init dynamic rx buffer num: 32
I (328) wifi_init: rx ba win: 6
I (328) wifi_init: tcpip mbox: 32
I (328) wifi_init: udp mbox: 6
I (328) wifi_init: tcp mbox: 6
I (328) wifi_init: tcp tx win: 5744
I (328) wifi_init: tcp rx win: 5744
I (328) wifi_init: tcp mss: 1440
I (328) wifi_init: WiFi IRAM OP enabled
I (328) wifi_init: WiFi RX IRAM OP enabled
I (338) phy_init: phy_version 610,2bff4c8,Jul 27 2023,20:22:14
I (368) wifi:mode : sta (f4:12:fa:57:c4:a4)
I (368) wifi:enable tsf
I (368) modbus tcp: ModBusTCPSlave_init
I (378) twal: twai init
I (378) twal: twai_receive_task
I (378) twal: twai_send_task
I (378) bdc_control: DC motor dir gpio init
I (378) gpio: GPIO[1]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (378) gpio: GPIO[3]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (378) bdc_control: DC motor speed pwm init
I (378) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (378) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (378) wifi:new:<11,0>, old:<1,0>, ap:<255,255>, sta:<11,0>, prof:1
I (378) wifi:state: init -> auth (b0)
I (388) bdc_control: Init pcnt driver to decode rotary signal
I (388) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) wifi:state: auth -> assoc (0)
I (388) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) bdc_control: Create PID control block
I (388) bdc_control: Create a timer to do PID calculation periodically
I (388) bdc_control: DC motor dir gpio init
I (388) gpio: GPIO[7]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[9]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) bdc_control: DC motor speed pwm init
I (388) gpio: GPIO[8]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[10]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) bdc_control: Init pcnt driver to decode rotary signal
I (388) gpio: GPIO[26]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) gpio: GPIO[33]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) wifi:state: assoc -> run (10)
I (398) gpio: GPIO[33]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) gpio: GPIO[26]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) bdc_control: Create PID control block
I (398) bdc_control: Create a timer to do PID calculation periodically
I (398) bdc_control: Enable motor
I (398) bdc_control: Start motor loop
I (418) wifi:connected with CMCC-xRSZ, aid = 132, channel 11, BW20, bssid = 74:6f:88:5a:5f:88
I (418) wifi:security: WPA2-PSK, phy: bgn, rssi: -45
I (428) wifi:pm start, type: 1
I (428) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 0, mt_pti: 25000, mt_time: 10000
I (428) wifi:<ba-add>idx:0 (ifx:0, 74:6f:88:5a:5f:88), tid:0, ssn:0, winSize:64
I (428) wifi:<ba-add>idx:1 (ifx:0, 74:6f:88:5a:5f:88), tid:1, ssn:0, winSize:64
I (428) wifi station: connected to ap SSID:CMCC-xRSZ password:dughk9gm
I (488) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (1428) esp_netif_handlers: sta ip: 192.168.1.156, mask: 255.255.255.0, gw: 192.168.1.1
I (1428) wifi station: got ip:192.168.1.156
I (7258) modbus tcp: accept assess
I (88328) modbus: pid is change
I (88348) bdc_control: pid set successfully:1.000000 0.000000 0.000000
I (144588) modbus: pid is change
I (144598) bdc_control: pid set successfully:2.000000 0.000000 0.000000
I (162818) modbus: pid is change
I (162848) bdc_control: pid set successfully:5.000000 0.000000 0.000000
I (195888) modbus: pid is change
I (195898) bdc_control: pid set successfully:10.000000 0.000000 0.000000
I (229618) modbus: pid is change
I (229648) bdc_control: pid set successfully:1.000000 0.000000 0.000000
E (309298) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (309298) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (309348) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (309348) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (309398) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (309398) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (309448) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (309448) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (309498) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (309498) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (309548) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (309548) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (309598) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (309598) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (309648) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (309648) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (309698) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (309698) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed

View File

@ -0,0 +1,67 @@
[1/5] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 partition --type app E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/partition_table/partition-table.bin E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/wheel.bin"
wheel.bin binary size 0xb7d70 bytes. Smallest app partition is 0x100000 bytes. 0x48290 bytes (28%) free.
[2/5] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\bootloader\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/bootloader.bin"
Bootloader binary size 0x4f90 bytes. 0x3070 bytes (38%) free.
[2/3] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\components\esptool_py && E:\Espressif\tools\cmake\3.24.0\bin\cmake.exe -D IDF_PATH=E:/Espressif/frameworks/esp-idf-v5.0.4 -D SERIAL_TOOL=E:/Espressif/python_env/idf5.0_py3.11_env/Scripts/python.exe;;E:/Espressif/frameworks/esp-idf-v5.0.4/components/esptool_py/esptool/esptool.py;--chip;esp32s3 -D SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;write_flash;@flash_args -D WORKING_DIRECTORY=E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build -P E:/Espressif/frameworks/esp-idf-v5.0.4/components/esptool_py/run_serial_tool.cmake"
esptool esp32s3 -p COM5 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x0 bootloader/bootloader.bin 0x10000 wheel.bin 0x8000 partition_table/partition-table.bin
esptool.py v4.6.2
Serial port COM5
Connecting...
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: f4:12:fa:57:c4:a4
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00004fff...
Flash will be erased from 0x00010000 to 0x000c7fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 20368 bytes to 12913...
Writing at 0x00000000... (100 %)
Wrote 20368 bytes (12913 compressed) at 0x00000000 in 0.4 seconds (effective 421.0 kbit/s)...
Hash of data verified.
Compressed 753008 bytes to 475148...
Writing at 0x00010000... (3 %)
Writing at 0x0001cd9d... (6 %)
Writing at 0x00026abe... (10 %)
Writing at 0x0002bffb... (13 %)
Writing at 0x00035e0d... (16 %)
Writing at 0x0003bdc2... (20 %)
Writing at 0x00041cd5... (23 %)
Writing at 0x00047d53... (26 %)
Writing at 0x0004e5e0... (30 %)
Writing at 0x00054406... (33 %)
Writing at 0x00059921... (36 %)
Writing at 0x0005f053... (40 %)
Writing at 0x000648eb... (43 %)
Writing at 0x0006a36d... (46 %)
Writing at 0x00070279... (50 %)
Writing at 0x0007542c... (53 %)
Writing at 0x0007a3d6... (56 %)
Writing at 0x0007f488... (60 %)
Writing at 0x000847d4... (63 %)
Writing at 0x00089b21... (66 %)
Writing at 0x0008ee42... (70 %)
Writing at 0x00094bef... (73 %)
Writing at 0x0009a35d... (76 %)
Writing at 0x0009fec5... (80 %)
Writing at 0x000a5e0d... (83 %)
Writing at 0x000ab3cd... (86 %)
Writing at 0x000b40d9... (90 %)
Writing at 0x000bc256... (93 %)
Writing at 0x000c2153... (96 %)
Writing at 0x000c7d69... (100 %)
Wrote 753008 bytes (475148 compressed) at 0x00010000 in 8.1 seconds (effective 740.6 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 463.7 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...

View File

@ -0,0 +1,68 @@
[0/1] Re-running CMake...
-- ccache will be used for faster recompilation
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/sdkconfig
-- App "wheel" version: aa7469a-dirty
-- Adding linker script E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/ld/esp32s3/sections.ld.in
-- Adding linker script E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
-- Adding linker script E:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- Components: adc_measure app_trace app_update bdc_motor bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp_adc esp_app_format esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_netif esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_wifi espcoredump esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mcpwm_bdc_control modbus_tcp mqtt newlib nvs_flash openthread partition_table perfmon pid_ctrl protobuf-c protocomm pthread sdmmc servo soc spi_flash spiffs tcp_transport touch_element twai_communication ulp unity usb vfs wear_levelling wifi_provisioning wifi_station wpa_supplicant xtensa
-- Component paths: E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/adc_measure E:/Espressif/frameworks/esp-idf-v5.0.4/components/app_trace E:/Espressif/frameworks/esp-idf-v5.0.4/components/app_update E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor E:/Espressif/frameworks/esp-idf-v5.0.4/components/bootloader E:/Espressif/frameworks/esp-idf-v5.0.4/components/bootloader_support E:/Espressif/frameworks/esp-idf-v5.0.4/components/bt E:/Espressif/frameworks/esp-idf-v5.0.4/components/cmock E:/Espressif/frameworks/esp-idf-v5.0.4/components/console E:/Espressif/frameworks/esp-idf-v5.0.4/components/cxx E:/Espressif/frameworks/esp-idf-v5.0.4/components/driver E:/Espressif/frameworks/esp-idf-v5.0.4/components/efuse E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp-tls E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_adc E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_app_format E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_common E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_eth E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_event E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_gdbstub E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hid E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_http_client E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_http_server E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_https_ota E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_https_server E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_lcd E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_local_ctrl E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_netif E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_partition E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_phy E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_pm E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_psram E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_ringbuf E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_timer E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_wifi E:/Espressif/frameworks/esp-idf-v5.0.4/components/espcoredump E:/Espressif/frameworks/esp-idf-v5.0.4/components/esptool_py E:/Espressif/frameworks/esp-idf-v5.0.4/components/fatfs E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos E:/Espressif/frameworks/esp-idf-v5.0.4/components/hal E:/Espressif/frameworks/esp-idf-v5.0.4/components/heap E:/Espressif/frameworks/esp-idf-v5.0.4/components/http_parser E:/Espressif/frameworks/esp-idf-v5.0.4/components/idf_test E:/Espressif/frameworks/esp-idf-v5.0.4/components/ieee802154 E:/Espressif/frameworks/esp-idf-v5.0.4/components/json E:/Espressif/frameworks/esp-idf-v5.0.4/components/log E:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/main E:/Espressif/frameworks/esp-idf-v5.0.4/components/mbedtls E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/modbus_tcp E:/Espressif/frameworks/esp-idf-v5.0.4/components/mqtt E:/Espressif/frameworks/esp-idf-v5.0.4/components/newlib E:/Espressif/frameworks/esp-idf-v5.0.4/components/nvs_flash E:/Espressif/frameworks/esp-idf-v5.0.4/components/openthread E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table E:/Espressif/frameworks/esp-idf-v5.0.4/components/perfmon E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/pid_ctrl E:/Espressif/frameworks/esp-idf-v5.0.4/components/protobuf-c E:/Espressif/frameworks/esp-idf-v5.0.4/components/protocomm E:/Espressif/frameworks/esp-idf-v5.0.4/components/pthread E:/Espressif/frameworks/esp-idf-v5.0.4/components/sdmmc E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/servo E:/Espressif/frameworks/esp-idf-v5.0.4/components/soc E:/Espressif/frameworks/esp-idf-v5.0.4/components/spi_flash E:/Espressif/frameworks/esp-idf-v5.0.4/components/spiffs E:/Espressif/frameworks/esp-idf-v5.0.4/components/tcp_transport E:/Espressif/frameworks/esp-idf-v5.0.4/components/touch_element E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/twai_communication E:/Espressif/frameworks/esp-idf-v5.0.4/components/ulp E:/Espressif/frameworks/esp-idf-v5.0.4/components/unity E:/Espressif/frameworks/esp-idf-v5.0.4/components/usb E:/Espressif/frameworks/esp-idf-v5.0.4/components/vfs E:/Espressif/frameworks/esp-idf-v5.0.4/components/wear_levelling E:/Espressif/frameworks/esp-idf-v5.0.4/components/wifi_provisioning E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/wifi_station E:/Espressif/frameworks/esp-idf-v5.0.4/components/wpa_supplicant E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build
[1/20] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\bootloader\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/bootloader.bin"
Bootloader binary size 0x4f90 bytes. 0x3070 bytes (38%) free.
[2/18] Building C object esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj
[3/18] Linking C static library esp-idf\esp_app_format\libesp_app_format.a
[4/18] Building C object esp-idf/modbus_tcp/CMakeFiles/__idf_modbus_tcp.dir/modbus.c.obj
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/modbus_tcp/modbus.c: In function 'ModbusSlaveProcess':
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/modbus_tcp/modbus.c:120:11: warning: unused variable 'tlv_len' [-Wunused-variable]
120 | uint8_t tlv_len = 0;
| ^~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/modbus_tcp/modbus.c:118:12: warning: unused variable 'pVar' [-Wunused-variable]
118 | uint8_t *pVar;
| ^~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/modbus_tcp/modbus.c:114:12: warning: unused variable 'temp_cnt' [-Wunused-variable]
114 | uint16_t temp_cnt;
| ^~~~~~~~
[5/18] Building C object esp-idf/pid_ctrl/CMakeFiles/__idf_pid_ctrl.dir/pid_ctrl.c.obj
[6/18] Linking C static library esp-idf\pid_ctrl\libpid_ctrl.a
[7/18] Building C object esp-idf/adc_measure/CMakeFiles/__idf_adc_measure.dir/adc_measure.c.obj
[8/18] Building C object esp-idf/twai_communication/CMakeFiles/__idf_twai_communication.dir/twai_communication.c.obj
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/twai_communication/twai_communication.c: In function 'twai_receive_task':
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/twai_communication/twai_communication.c:28:9: warning: unused variable 'rx_len' [-Wunused-variable]
28 | int rx_len = 0;
| ^~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/twai_communication/twai_communication.c:27:13: warning: unused variable 'rx_data' [-Wunused-variable]
27 | uint8_t rx_data[RX_BUF_LEN];
| ^~~~~~~
[9/18] Building C object esp-idf/mcpwm_bdc_control/CMakeFiles/__idf_mcpwm_bdc_control.dir/mcpwm_bdc_control.c.obj
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c: In function 'pid_loop_cb':
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c:108:24: warning: unused variable 'motor' [-Wunused-variable]
108 | bdc_motor_handle_t motor = ctx->motor;
| ^~~~~
[10/18] Building C object esp-idf/modbus_tcp/CMakeFiles/__idf_modbus_tcp.dir/modbus_tcp.c.obj
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/modbus_tcp/modbus_tcp.c:75:14: warning: 'ModBusSlave_poll' defined but not used [-Wunused-function]
75 | static err_t ModBusSlave_poll(void *arg, struct tcp_pcb *newpcb) {
| ^~~~~~~~~~~~~~~~
[11/18] Linking C static library esp-idf\modbus_tcp\libmodbus_tcp.a
[12/18] Linking C static library esp-idf\adc_measure\libadc_measure.a
[13/18] Linking C static library esp-idf\mcpwm_bdc_control\libmcpwm_bdc_control.a
[14/18] Linking C static library esp-idf\twai_communication\libtwai_communication.a
[15/18] Generating ld/sections.ld
[16/18] Linking CXX executable wheel.elf
[17/18] Generating binary image from built executable
esptool.py v4.6.2
Creating esp32s3 image...
Merged 2 ELF sections
Successfully created esp32s3 image.
Generated E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/wheel.bin
[18/18] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 partition --type app E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/partition_table/partition-table.bin E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/wheel.bin"
wheel.bin binary size 0xb7d70 bytes. Smallest app partition is 0x100000 bytes. 0x48290 bytes (28%) free.

View File

@ -0,0 +1,67 @@
[1/5] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 partition --type app E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/partition_table/partition-table.bin E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/wheel.bin"
wheel.bin binary size 0xb7db0 bytes. Smallest app partition is 0x100000 bytes. 0x48250 bytes (28%) free.
[2/5] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\bootloader\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/bootloader.bin"
Bootloader binary size 0x4f90 bytes. 0x3070 bytes (38%) free.
[2/3] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\components\esptool_py && E:\Espressif\tools\cmake\3.24.0\bin\cmake.exe -D IDF_PATH=E:/Espressif/frameworks/esp-idf-v5.0.4 -D SERIAL_TOOL=E:/Espressif/python_env/idf5.0_py3.11_env/Scripts/python.exe;;E:/Espressif/frameworks/esp-idf-v5.0.4/components/esptool_py/esptool/esptool.py;--chip;esp32s3 -D SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;write_flash;@flash_args -D WORKING_DIRECTORY=E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build -P E:/Espressif/frameworks/esp-idf-v5.0.4/components/esptool_py/run_serial_tool.cmake"
esptool esp32s3 -p COM5 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x0 bootloader/bootloader.bin 0x10000 wheel.bin 0x8000 partition_table/partition-table.bin
esptool.py v4.6.2
Serial port COM5
Connecting...
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: f4:12:fa:57:c4:a4
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00004fff...
Flash will be erased from 0x00010000 to 0x000c7fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 20368 bytes to 12913...
Writing at 0x00000000... (100 %)
Wrote 20368 bytes (12913 compressed) at 0x00000000 in 0.4 seconds (effective 423.2 kbit/s)...
Hash of data verified.
Compressed 753072 bytes to 475193...
Writing at 0x00010000... (3 %)
Writing at 0x0001cda4... (6 %)
Writing at 0x00026abc... (10 %)
Writing at 0x0002bffa... (13 %)
Writing at 0x00035def... (16 %)
Writing at 0x0003bdc4... (20 %)
Writing at 0x00041cdd... (23 %)
Writing at 0x00047d3c... (26 %)
Writing at 0x0004e5a1... (30 %)
Writing at 0x000543a1... (33 %)
Writing at 0x000598e9... (36 %)
Writing at 0x0005f020... (40 %)
Writing at 0x000648c6... (43 %)
Writing at 0x0006a359... (46 %)
Writing at 0x0007025e... (50 %)
Writing at 0x0007541f... (53 %)
Writing at 0x0007a3c2... (56 %)
Writing at 0x0007f481... (60 %)
Writing at 0x000847b1... (63 %)
Writing at 0x00089b26... (66 %)
Writing at 0x0008ee3b... (70 %)
Writing at 0x00094bdf... (73 %)
Writing at 0x0009a356... (76 %)
Writing at 0x0009fea6... (80 %)
Writing at 0x000a5e0c... (83 %)
Writing at 0x000ab3d0... (86 %)
Writing at 0x000b40d7... (90 %)
Writing at 0x000bc24c... (93 %)
Writing at 0x000c2131... (96 %)
Writing at 0x000c7d6a... (100 %)
Wrote 753072 bytes (475193 compressed) at 0x00010000 in 8.1 seconds (effective 739.8 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 463.7 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...

View File

@ -0,0 +1,389 @@
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x2a (SPI_FAST_FLASH_BOOT)
Saved PC:0x4206c800
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3810,len:0x168c
load:0x403c9700,len:0xbe0
load:0x403cc700,len:0x2cd0
entry 0x403c9908
I (24) boot: ESP-IDF v5.0.4-dirty 2nd stage bootloader
I (25) boot: compile time 09:09:09
I (25) boot: Multicore bootloader
I (27) boot: chip revision: v0.1
I (31) boot.esp32s3: Boot SPI Speed : 80MHz
I (36) boot.esp32s3: SPI Mode : DIO
I (41) boot.esp32s3: SPI Flash Size : 2MB
I (45) boot: Enabling RNG early entropy source...
I (51) boot: Partition Table:
I (54) boot: ## Label Usage Type ST Offset Length
I (62) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (69) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (76) boot: 2 factory factory app 00 00 00010000 00100000
I (84) boot: End of partition table
I (88) esp_image: segment 0: paddr=00010020 vaddr=3c080020 size=22370h (140144) map
I (122) esp_image: segment 1: paddr=00032398 vaddr=3fc96c00 size=03e60h ( 15968) load
I (125) esp_image: segment 2: paddr=00036200 vaddr=40374000 size=09e18h ( 40472) load
I (136) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=7f044h (520260) map
I (230) esp_image: segment 4: paddr=000bf06c vaddr=4037de18 size=08d14h ( 36116) load
I (246) boot: Loaded app from partition at offset 0x10000
I (247) boot: Disabling RNG early entropy source...
I (247) cpu_start: Multicore app
I (251) cpu_start: Pro cpu up.
I (254) cpu_start: Starting app cpu, entry point is 0x4037538c
I (0) cpu_start: App cpu up.
I (270) cpu_start: Pro cpu start user code
I (270) cpu_start: cpu freq: 160000000 Hz
I (270) cpu_start: Application information:
I (271) cpu_start: Project name: wheel
I (271) cpu_start: App version: aa7469a-dirty
I (271) cpu_start: Compile time: Jan 25 2024 13:40:22
I (271) cpu_start: ELF file SHA256: 3705bde5d567733d...
I (272) cpu_start: ESP-IDF: v5.0.4-dirty
I (272) cpu_start: Min chip rev: v0.0
I (272) cpu_start: Max chip rev: v0.99 
I (272) cpu_start: Chip rev: v0.1
I (272) heap_init: Initializing. RAM available for dynamic allocation:
I (273) heap_init: At 3FCA4588 len 00045188 (276 KiB): DRAM
I (273) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (273) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (274) heap_init: At 600FE010 len 00001FD8 (7 KiB): RTCRAM
I (275) spi_flash: detected chip: gd
I (275) spi_flash: flash io: dio
W (276) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (277) sleep: Configure to isolate all GPIO pins in sleep state
I (277) sleep: Enable automatic switching of GPIO sleep configuration
I (278) app_start: Starting scheduler on CPU0
I (278) app_start: Starting scheduler on CPU1
I (278) main_task: Started on CPU0
I (288) main_task: Calling app_main()
I (308) wifi station: ESP_WIFI_INIT_STA
I (308) pp: pp rom version: e7ae62f
I (308) net80211: net80211 rom version: e7ae62f
I (318) wifi:wifi driver task: 3fcae598, prio:23, stack:6656, core=0
I (318) system_api: Base MAC address is not set
I (318) system_api: read default base MAC address from EFUSE
I (328) wifi:wifi firmware version: e2d0ad8
I (328) wifi:wifi certification version: v7.0
I (328) wifi:config NVS flash: enabled
I (328) wifi:config nano formating: disabled
I (328) wifi:Init data frame dynamic rx buffer num: 32
I (328) wifi:Init management frame dynamic rx buffer num: 32
I (328) wifi:Init management short buffer num: 32
I (328) wifi:Init dynamic tx buffer num: 32
I (328) wifi:Init static tx FG buffer num: 2
I (328) wifi:Init static rx buffer size: 1600
I (328) wifi:Init static rx buffer num: 10
I (328) wifi:Init dynamic rx buffer num: 32
I (328) wifi_init: rx ba win: 6
I (328) wifi_init: tcpip mbox: 32
I (328) wifi_init: udp mbox: 6
I (328) wifi_init: tcp mbox: 6
I (328) wifi_init: tcp tx win: 5744
I (328) wifi_init: tcp rx win: 5744
I (328) wifi_init: tcp mss: 1440
I (328) wifi_init: WiFi IRAM OP enabled
I (328) wifi_init: WiFi RX IRAM OP enabled
I (338) phy_init: phy_version 610,2bff4c8,Jul 27 2023,20:22:14
I (368) wifi:mode : sta (f4:12:fa:57:c4:a4)
I (368) wifi:enable tsf
I (368) modbus tcp: ModBusTCPSlave_init
I (378) twal: twai init
I (378) twal: twai_receive_task
I (378) twal: twai_send_task
I (378) bdc_control: DC motor dir gpio init
I (378) gpio: GPIO[1]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (378) gpio: GPIO[3]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (378) bdc_control: DC motor speed pwm init
I (378) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (378) wifi:new:<11,0>, old:<1,0>, ap:<255,255>, sta:<11,0>, prof:1
I (378) wifi:state: init -> auth (b0)
I (378) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) bdc_control: Init pcnt driver to decode rotary signal
I (388) wifi:state: auth -> assoc (0)
I (388) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) bdc_control: Create PID control block
I (388) bdc_control: Create a timer to do PID calculation periodically
I (388) bdc_control: DC motor dir gpio init
I (388) gpio: GPIO[7]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[9]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) bdc_control: DC motor speed pwm init
I (388) gpio: GPIO[8]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[10]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (388) bdc_control: Init pcnt driver to decode rotary signal
I (388) gpio: GPIO[26]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (388) gpio: GPIO[33]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) gpio: GPIO[33]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) gpio: GPIO[26]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (398) bdc_control: Create PID control block
I (398) bdc_control: Create a timer to do PID calculation periodically
I (398) bdc_control: Enable motor
I (398) bdc_control: Start motor loop
I (398) wifi:state: assoc -> run (10)
I (428) wifi:connected with CMCC-xRSZ, aid = 132, channel 11, BW20, bssid = 74:6f:88:5a:5f:88
I (428) wifi:security: WPA2-PSK, phy: bgn, rssi: -48
I (428) wifi:pm start, type: 1
I (428) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 0, mt_pti: 25000, mt_time: 10000
I (438) wifi:<ba-add>idx:0 (ifx:0, 74:6f:88:5a:5f:88), tid:0, ssn:0, winSize:64
I (438) wifi station: connected to ap SSID:CMCC-xRSZ password:dughk9gm
I (438) wifi:<ba-add>idx:1 (ifx:0, 74:6f:88:5a:5f:88), tid:1, ssn:0, winSize:64
I (528) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (1438) esp_netif_handlers: sta ip: 192.168.1.156, mask: 255.255.255.0, gw: 192.168.1.1
I (1438) wifi station: got ip:192.168.1.156
I (6988) modbus tcp: accept assess
I (31208) modbus: pid is change
I (31248) bdc_control: id0 pid set successfully:5.000000 0.000000 0.000000
I (31248) bdc_control: id1 pid set successfully:5.000000 0.000000 0.000000
E (66948) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (66948) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (66948) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (66948) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (66998) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (66998) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (66998) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (66998) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67048) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67048) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67048) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67048) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67098) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67098) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67098) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67098) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67348) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67348) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67398) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67398) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67398) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67398) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67448) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67448) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67448) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67448) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67498) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67498) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67598) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67598) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67648) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67648) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67698) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67698) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67698) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67698) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67748) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67748) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67748) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67748) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67798) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67798) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67798) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67798) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67848) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67848) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67848) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67848) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67898) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67898) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67898) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67898) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67948) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67948) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67948) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67948) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67998) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67998) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (67998) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (67998) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68048) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68048) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68048) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68048) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68098) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68098) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68098) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68098) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68148) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68148) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68148) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68148) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68198) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68198) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68248) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68248) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68298) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68298) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68298) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68298) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68348) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68348) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68348) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68348) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68398) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68398) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68448) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68448) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68498) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68498) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68498) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68498) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68548) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68548) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68548) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68548) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68598) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68598) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68598) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68598) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68648) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68648) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68648) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68648) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68698) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68698) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68698) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68698) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68748) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68748) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68748) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68748) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68798) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68798) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68798) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68798) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68848) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68848) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68848) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68848) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68898) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68898) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68898) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68898) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68948) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68948) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68948) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68948) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68998) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68998) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (68998) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (68998) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69048) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69048) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69048) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69048) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69098) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69098) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69098) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69098) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69148) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69148) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69148) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69148) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69198) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69198) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69198) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69198) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69248) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69248) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69248) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69248) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69298) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69298) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69298) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69298) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69348) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69348) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69348) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69348) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69398) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69398) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69398) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69398) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69448) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69448) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69448) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69448) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69498) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69498) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69498) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69498) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69548) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69548) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69548) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69548) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69598) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69598) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69598) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69598) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69648) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69648) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69648) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69648) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69698) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69698) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69698) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69698) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69748) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69748) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69748) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69748) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69798) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69798) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69798) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69798) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69848) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69848) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69848) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69848) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69898) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69898) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69898) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69898) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69948) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69948) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69948) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69948) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69998) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69998) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (69998) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (69998) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (70048) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (70048) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (70048) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (70048) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (70098) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (70098) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (70098) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (70098) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (70148) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (70148) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (70148) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (70148) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (70198) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (70198) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (70198) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (70198) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (70248) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (70248) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (70248) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (70248) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (70298) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (70298) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (70298) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (70298) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (70348) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (70348) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (70348) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (70348) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (70398) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (70398) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (70398) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (70398) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (70448) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (70448) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed
E (70448) mcpwm: mcpwm_comparator_set_compare_value(132): compare value out of range
E (70448) bdc_motor_mcpwm: bdc_motor_mcpwm_set_speed(30): set compare value failed

View File

@ -1,7 +1,7 @@
{
"version": "1",
"project_name": "wheel",
"project_version": "2648b76-dirty",
"project_version": "aa7469a-dirty",
"project_path": "E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel",
"idf_path": "E:/Espressif/frameworks/esp-idf-v5.0.4",
"build_dir": "E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build",

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -11,6 +11,7 @@
#include "pid_ctrl.h"
#include "modbus.h"
#include "math.h"
#include "servo.h"
static const char *TAG = "bdc_control";
@ -107,6 +108,26 @@ static void pid_loop_cb(void *args)
pid_ctrl_block_handle_t pid_ctrl = ctx->pid_ctrl;
bdc_motor_handle_t motor = ctx->motor;
/* pid参数设置 */
if (modbus_data->pid_flag)
{
pid_ctrl->Kp = (short)modbus_data->p / 100.0;
pid_ctrl->Ki = (short)modbus_data->i / 100.0;
pid_ctrl->Kd = (short)modbus_data->d / 100.0;
pid_ctrl->integral_err = 0;
pid_ctrl->last_output = 0;
pid_ctrl->previous_err1 = 0;
pid_ctrl->previous_err2 = 0;
ESP_LOGI(TAG, "id%d pid set successfully:%f %f %f", ctx->id, pid_ctrl->Kp, pid_ctrl->Ki, pid_ctrl->Kd);
modbus_data->speed = 0;
modbus_data->angle = 0;
bdc_motor_set_speed(ctx->motor, 0, ctx->id);
servo_set_angle(0);
modbus_data->pid_flag &= ~(0x01 << (ctx->id));
}
/* 从Modbus服务器端获得期望速度和期望角度 */
int speed = (short)modbus_data->speed;
float angle = (short)modbus_data->angle;

View File

@ -89,6 +89,13 @@ void ModBusWordWriteHook(uint16_t addr, uint16_t length) {
case MODBUS_SPEED_ADDR: /* 速度设置,因为速度的控制是需要定时触发的,不是异步的,所以不在这里处理 */
break;
case MODBUS_P_ADDR:
case MODBUS_I_ADDR:
case MODBUS_D_ADDR:
ESP_LOGI(TAG, "pid is change");
modbus_data->pid_flag = 3; /* PID被修改了 */
break;
default:
ESP_LOGI(TAG, "write undefine addr");
break;

View File

@ -12,8 +12,12 @@
#define gBIT_SIZE 128
#define gWORD_SIZE 12288
#define MODBUS_SPEED_ADDR 1
#define MODBUS_ANGLE_ADDR 0
#define MODBUS_SPEED_ADDR 1
#define MODBUS_PID_FLAG_ADDR 2
#define MODBUS_P_ADDR 3
#define MODBUS_I_ADDR 4
#define MODBUS_D_ADDR 5
/* 角度 */
#define BDC_SERVO_INPUT_RANGE 1000
@ -29,8 +33,8 @@ typedef struct
/* 从Mudbus服务器端得到设置参数 */
uint16_t angle;
uint16_t speed;
uint16_t res;
uint16_t pid_flag;
uint16_t p;
uint16_t i;
uint16_t d;

View File

@ -15,21 +15,6 @@ static const char *TAG = "pid_ctrl";
typedef struct pid_ctrl_block_t pid_ctrl_block_t;
typedef float (*pid_cal_func_t)(pid_ctrl_block_t *pid, float error);
struct pid_ctrl_block_t {
float Kp; // PID Kp value
float Ki; // PID Ki value
float Kd; // PID Kd value
float previous_err1; // e(k-1)
float previous_err2; // e(k-2)
float integral_err; // Sum of error
float last_output; // PID output in last control period
float max_output; // PID maximum output limitation
float min_output; // PID minimum output limitation
float max_integral; // PID maximum integral value limitation
float min_integral; // PID minimum integral value limitation
pid_cal_func_t calculate_func; // calculation function, depends on actual PID type set by user
};
static float pid_calc_positional(pid_ctrl_block_t *pid, float error)
{
float output = 0;

View File

@ -25,6 +25,25 @@ typedef enum {
* @brief Type of PID control block handle
*
*/
typedef struct pid_ctrl_block_t pid_ctrl_block_t;
typedef float (*pid_cal_func_t)(pid_ctrl_block_t *pid, float error);
struct pid_ctrl_block_t {
float Kp; // PID Kp value
float Ki; // PID Ki value
float Kd; // PID Kd value
float previous_err1; // e(k-1)
float previous_err2; // e(k-2)
float integral_err; // Sum of error
float last_output; // PID output in last control period
float max_output; // PID maximum output limitation
float min_output; // PID minimum output limitation
float max_integral; // PID maximum integral value limitation
float min_integral; // PID minimum integral value limitation
pid_cal_func_t calculate_func; // calculation function, depends on actual PID type set by user
};
typedef struct pid_ctrl_block_t *pid_ctrl_block_handle_t;
/**