Working Zigbee Sensor and LED

This commit is contained in:
Sam
2025-05-14 15:29:07 +10:00
parent 5d3a5422c4
commit 5585dc0222
47 changed files with 11516 additions and 10768 deletions

View File

@@ -30,4 +30,4 @@ but the current user is:
To add an exception for this directory, call:
git config --global --add safe.directory C:/Espressif/frameworks/esp-idf-v5.4.1
-40691d1-1.6.4-2025-05-14 01:55:37 UTC
-5d3a542-1.6.4-2025-05-14 04:37:51 UTC

View File

@@ -1,33 +0,0 @@
fatal: detected dubious ownership in repository at 'C:/Espressif/frameworks/esp-idf-v5.4.1'
'C:/Espressif/frameworks/esp-idf-v5.4.1' is owned by:
'S-1-5-32-544'
but the current user is:
'S-1-5-21-3272215487-1909472184-224273078-1001'
To add an exception for this directory, call:
git config --global --add safe.directory C:/Espressif/frameworks/esp-idf-v5.4.1
fatal: detected dubious ownership in repository at 'C:/Espressif/frameworks/esp-idf-v5.4.1'
'C:/Espressif/frameworks/esp-idf-v5.4.1' is owned by:
'S-1-5-32-544'
but the current user is:
'S-1-5-21-3272215487-1909472184-224273078-1001'
To add an exception for this directory, call:
git config --global --add safe.directory C:/Espressif/frameworks/esp-idf-v5.4.1
fatal: detected dubious ownership in repository at 'C:/Espressif/frameworks/esp-idf-v5.4.1/components/openthread/openthread'
'C:/Espressif/frameworks/esp-idf-v5.4.1/components/openthread/openthread/.git' is owned by:
'S-1-5-32-544'
but the current user is:
'S-1-5-21-3272215487-1909472184-224273078-1001'
To add an exception for this directory, call:
git config --global --add safe.directory C:/Espressif/frameworks/esp-idf-v5.4.1/components/openthread/openthread
fatal: detected dubious ownership in repository at 'C:/Espressif/frameworks/esp-idf-v5.4.1'
'C:/Espressif/frameworks/esp-idf-v5.4.1' is owned by:
'S-1-5-32-544'
but the current user is:
'S-1-5-21-3272215487-1909472184-224273078-1001'
To add an exception for this directory, call:
git config --global --add safe.directory C:/Espressif/frameworks/esp-idf-v5.4.1
-40691d1-1.6.4-2025-05-14 02:14:42 UTC

View File

@@ -1,7 +0,0 @@
CMake Error at run_serial_tool.cmake:67 (message):
C:/Espressif/tools/python_env/idf5.4_py3.11_env/Scripts/python.exe;;C:/Espressif/frameworks/esp-idf-v5.4.1/components/esptool_py/esptool/esptool.py;--chip;esp32h2
failed.

View File

View File

@@ -1,5 +1,5 @@
[1/5] C:\Windows\system32\cmd.exe /C "cd /D C:\Users\Dell\Documents\ESP\HA_on_off_light_zigbee\build\esp-idf\esptool_py && C:\Espressif\tools\python_env\idf5.4_py3.11_env\Scripts\python.exe C:/Espressif/frameworks/esp-idf-v5.4.1/components/partition_table/check_sizes.py --offset 0x8000 partition --type app C:/Users/Dell/Documents/ESP/HA_on_off_light_zigbee/build/partition_table/partition-table.bin C:/Users/Dell/Documents/ESP/HA_on_off_light_zigbee/build/on_off_light_bulb.bin"
on_off_light_bulb.bin binary size 0x7c590 bytes. Smallest app partition is 0xe1000 bytes. 0x64a70 bytes (45%) free.
on_off_light_bulb.bin binary size 0x7a750 bytes. Smallest app partition is 0xe1000 bytes. 0x668b0 bytes (46%) free.
[2/5] Performing build step for 'bootloader'
[1/1] C:\Windows\system32\cmd.exe /C "cd /D C:\Users\Dell\Documents\ESP\HA_on_off_light_zigbee\build\bootloader\esp-idf\esptool_py && C:\Espressif\tools\python_env\idf5.4_py3.11_env\Scripts\python.exe C:/Espressif/frameworks/esp-idf-v5.4.1/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 C:/Users/Dell/Documents/ESP/HA_on_off_light_zigbee/build/bootloader/bootloader.bin"
Bootloader binary size 0x54c0 bytes. 0x2b40 bytes (34%) free.
@@ -23,37 +23,37 @@ Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00005fff...
Flash will be erased from 0x00010000 to 0x0008cfff...
Flash will be erased from 0x00010000 to 0x0008afff...
Flash will be erased from 0x00008000 to 0x00008fff...
SHA digest in image updated
Compressed 21696 bytes to 13432...
Compressed 21696 bytes to 13431...
Writing at 0x00000000... (100 %)
Wrote 21696 bytes (13432 compressed) at 0x00000000 in 0.3 seconds (effective 528.2 kbit/s)...
Wrote 21696 bytes (13431 compressed) at 0x00000000 in 0.2 seconds (effective 966.0 kbit/s)...
Hash of data verified.
Compressed 509328 bytes to 292542...
Compressed 501584 bytes to 287402...
Writing at 0x00010000... (5 %)
Writing at 0x0001c901... (11 %)
Writing at 0x00023a4f... (16 %)
Writing at 0x0002b04a... (22 %)
Writing at 0x00031a45... (27 %)
Writing at 0x000376bf... (33 %)
Writing at 0x0003d54d... (38 %)
Writing at 0x00043254... (44 %)
Writing at 0x000492e5... (50 %)
Writing at 0x0004f424... (55 %)
Writing at 0x000566ed... (61 %)
Writing at 0x0005c6d9... (66 %)
Writing at 0x00062a01... (72 %)
Writing at 0x00069b45... (77 %)
Writing at 0x0006fce0... (83 %)
Writing at 0x00078080... (88 %)
Writing at 0x0007f159... (94 %)
Writing at 0x00085b14... (100 %)
Wrote 509328 bytes (292542 compressed) at 0x00010000 in 3.2 seconds (effective 1282.5 kbit/s)...
Writing at 0x0001c941... (11 %)
Writing at 0x00023a70... (16 %)
Writing at 0x0002b05a... (22 %)
Writing at 0x0003191f... (27 %)
Writing at 0x0003765d... (33 %)
Writing at 0x0003d26e... (38 %)
Writing at 0x000430fd... (44 %)
Writing at 0x00049158... (50 %)
Writing at 0x0004fd53... (55 %)
Writing at 0x00056239... (61 %)
Writing at 0x0005c471... (66 %)
Writing at 0x00063358... (72 %)
Writing at 0x0006a17d... (77 %)
Writing at 0x0006fd94... (83 %)
Writing at 0x000783f5... (88 %)
Writing at 0x0007f65d... (94 %)
Writing at 0x00086329... (100 %)
Wrote 501584 bytes (287402 compressed) at 0x00010000 in 2.2 seconds (effective 1791.2 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 136...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (136 compressed) at 0x00008000 in 0.0 seconds (effective 521.4 kbit/s)...
Wrote 3072 bytes (136 compressed) at 0x00008000 in 0.0 seconds (effective 864.8 kbit/s)...
Hash of data verified.
Leaving...

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,17 @@
esptool.py v4.8.1
Serial port COM25
Connecting...
Chip is ESP32-H2 (revision v0.1)
Features: BLE, IEEE802.15.4
Crystal is 32MHz
MAC: 48:31:b7:ff:fe:c2:a5:fc
BASE MAC: 48:31:b7:c2:a5:fc
MAC_EXT: ff:fe
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Erasing flash (this may take a while)...
Chip erase completed successfully in 1.3s
Hard resetting via RTS pin...

View File

@@ -13,5 +13,5 @@ Stub running...
Changing baud rate to 460800
Changed.
Erasing flash (this may take a while)...
Chip erase completed successfully in 2.6s
Chip erase completed successfully in 1.4s
Hard resetting via RTS pin...

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,60 @@
[1/5] C:\Windows\system32\cmd.exe /C "cd /D C:\Users\Dell\Documents\ESP\HA_on_off_light_zigbee\build\esp-idf\esptool_py && C:\Espressif\tools\python_env\idf5.4_py3.11_env\Scripts\python.exe C:/Espressif/frameworks/esp-idf-v5.4.1/components/partition_table/check_sizes.py --offset 0x8000 partition --type app C:/Users/Dell/Documents/ESP/HA_on_off_light_zigbee/build/partition_table/partition-table.bin C:/Users/Dell/Documents/ESP/HA_on_off_light_zigbee/build/on_off_light_bulb.bin"
on_off_light_bulb.bin binary size 0x7a750 bytes. Smallest app partition is 0xe1000 bytes. 0x668b0 bytes (46%) free.
[2/5] Performing build step for 'bootloader'
[1/1] C:\Windows\system32\cmd.exe /C "cd /D C:\Users\Dell\Documents\ESP\HA_on_off_light_zigbee\build\bootloader\esp-idf\esptool_py && C:\Espressif\tools\python_env\idf5.4_py3.11_env\Scripts\python.exe C:/Espressif/frameworks/esp-idf-v5.4.1/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 C:/Users/Dell/Documents/ESP/HA_on_off_light_zigbee/build/bootloader/bootloader.bin"
Bootloader binary size 0x54c0 bytes. 0x2b40 bytes (34%) free.
[3/5] No install step for 'bootloader'
[4/5] Completed 'bootloader'
[4/5] C:\Windows\system32\cmd.exe /C "cd /D C:\Espressif\frameworks\esp-idf-v5.4.1\components\esptool_py && C:\Espressif\tools\tools\cmake\3.30.2\bin\cmake.exe -D IDF_PATH=C:/Espressif/frameworks/esp-idf-v5.4.1 -D SERIAL_TOOL=C:/Espressif/tools/python_env/idf5.4_py3.11_env/Scripts/python.exe;;C:/Espressif/frameworks/esp-idf-v5.4.1/components/esptool_py/esptool/esptool.py;--chip;esp32h2 -D SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;write_flash;@flash_args -D WORKING_DIRECTORY=C:/Users/Dell/Documents/ESP/HA_on_off_light_zigbee/build -P C:/Espressif/frameworks/esp-idf-v5.4.1/components/esptool_py/run_serial_tool.cmake"
esptool.py --chip esp32h2 -p COM25 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 48m --flash_size 2MB 0x0 bootloader/bootloader.bin 0x10000 on_off_light_bulb.bin 0x8000 partition_table/partition-table.bin
esptool.py v4.8.1
Serial port COM25
Connecting...
Chip is ESP32-H2 (revision v0.1)
Features: BLE, IEEE802.15.4
Crystal is 32MHz
MAC: 48:31:b7:ff:fe:c2:a5:fc
BASE MAC: 48:31:b7:c2:a5:fc
MAC_EXT: ff:fe
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00005fff...
Flash will be erased from 0x00010000 to 0x0008afff...
Flash will be erased from 0x00008000 to 0x00008fff...
SHA digest in image updated
Compressed 21696 bytes to 13431...
Writing at 0x00000000... (100 %)
Wrote 21696 bytes (13431 compressed) at 0x00000000 in 0.2 seconds (effective 961.1 kbit/s)...
Hash of data verified.
Compressed 501584 bytes to 287402...
Writing at 0x00010000... (5 %)
Writing at 0x0001c941... (11 %)
Writing at 0x00023a70... (16 %)
Writing at 0x0002b05a... (22 %)
Writing at 0x0003191f... (27 %)
Writing at 0x0003765d... (33 %)
Writing at 0x0003d26e... (38 %)
Writing at 0x000430fd... (44 %)
Writing at 0x00049158... (50 %)
Writing at 0x0004fd53... (55 %)
Writing at 0x00056239... (61 %)
Writing at 0x0005c471... (66 %)
Writing at 0x00063358... (72 %)
Writing at 0x0006a17d... (77 %)
Writing at 0x0006fd94... (83 %)
Writing at 0x000783f5... (88 %)
Writing at 0x0007f65d... (94 %)
Writing at 0x00086329... (100 %)
Wrote 501584 bytes (287402 compressed) at 0x00010000 in 2.2 seconds (effective 1784.8 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 136...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (136 compressed) at 0x00008000 in 0.0 seconds (effective 874.0 kbit/s)...

File diff suppressed because it is too large Load Diff

View File

@@ -1,20 +0,0 @@
[1/5] C:\Windows\system32\cmd.exe /C "cd /D C:\Users\Dell\Documents\ESP\HA_on_off_light_zigbee\build\esp-idf\esptool_py && C:\Espressif\tools\python_env\idf5.4_py3.11_env\Scripts\python.exe C:/Espressif/frameworks/esp-idf-v5.4.1/components/partition_table/check_sizes.py --offset 0x8000 partition --type app C:/Users/Dell/Documents/ESP/HA_on_off_light_zigbee/build/partition_table/partition-table.bin C:/Users/Dell/Documents/ESP/HA_on_off_light_zigbee/build/on_off_light_bulb.bin"
on_off_light_bulb.bin binary size 0x7c590 bytes. Smallest app partition is 0xe1000 bytes. 0x64a70 bytes (45%) free.
[2/5] Performing build step for 'bootloader'
[1/1] C:\Windows\system32\cmd.exe /C "cd /D C:\Users\Dell\Documents\ESP\HA_on_off_light_zigbee\build\bootloader\esp-idf\esptool_py && C:\Espressif\tools\python_env\idf5.4_py3.11_env\Scripts\python.exe C:/Espressif/frameworks/esp-idf-v5.4.1/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 C:/Users/Dell/Documents/ESP/HA_on_off_light_zigbee/build/bootloader/bootloader.bin"
Bootloader binary size 0x54c0 bytes. 0x2b40 bytes (34%) free.
[3/5] No install step for 'bootloader'
[4/5] Completed 'bootloader'
[4/5] C:\Windows\system32\cmd.exe /C "cd /D C:\Espressif\frameworks\esp-idf-v5.4.1\components\esptool_py && C:\Espressif\tools\tools\cmake\3.30.2\bin\cmake.exe -D IDF_PATH=C:/Espressif/frameworks/esp-idf-v5.4.1 -D SERIAL_TOOL=C:/Espressif/tools/python_env/idf5.4_py3.11_env/Scripts/python.exe;;C:/Espressif/frameworks/esp-idf-v5.4.1/components/esptool_py/esptool/esptool.py;--chip;esp32h2 -D SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;write_flash;@flash_args -D WORKING_DIRECTORY=C:/Users/Dell/Documents/ESP/HA_on_off_light_zigbee/build -P C:/Espressif/frameworks/esp-idf-v5.4.1/components/esptool_py/run_serial_tool.cmake"
esptool.py --chip esp32h2 -p 25 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 48m --flash_size 2MB 0x0 bootloader/bootloader.bin 0x10000 on_off_light_bulb.bin 0x8000 partition_table/partition-table.bin
esptool.py v4.8.1
Serial port 25
A fatal error occurred: Could not open 25, the port is busy or doesn't exist.
(could not open port '25': FileNotFoundError(2, 'The system cannot find the file specified.', None, 2))
Hint: Check if the port is correct and ESP connected