Comments (6)
HAPPlatformClock.c file; line46:
e = clock_gettime(CLOCK_MONOTONIC_RAW, &t);
modify:
e = clock_gettime(CLOCK_MONOTONIC, &t);
from esp-apple-homekit-adk.
I do get the same fatal error around HAPPlatformClockGetCurrent
has anybody solved this?
from esp-apple-homekit-adk.
I'm also getting this same error. Using esp32s2 target (Olimex ESP32-S2-DevKit-Lipo board). Examples of the other HomeKit SDK (esp-homekit-sdk) work just fine.
from esp-apple-homekit-adk.
I'm also getting this same error. Using esp32 target.
And here is the log:
ELF file SHA256: 693d925e95e0bf30
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6840
load:0x40078000,len:14836
load:0x40080400,len:3792
0x40080400: _init at ??:?
entry 0x40080694
I (27) boot: ESP-IDF v5.0-dev-382-g098dfe8a08-dirty 2nd stage bootloader
I (27) boot: compile time 10:55:59
I (28) boot: chip revision: 1
I (32) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (39) boot.esp32: SPI Speed : 40MHz
I (44) boot.esp32: SPI Mode : DIO
I (48) boot.esp32: SPI Flash Size : 4MB
I (53) boot: Enabling RNG early entropy source...
I (58) boot: Partition Table:
I (62) boot: ## Label Usage Type ST Offset Length
I (69) boot: 0 sec_cert unknown 3f 06 0000d000 00003000
I (76) boot: 1 nvs WiFi data 01 02 00010000 00006000
I (84) boot: 2 otadata OTA data 01 00 00016000 00002000
I (91) boot: 3 phy_init RF data 01 01 00018000 00001000
I (99) boot: 4 ota_0 OTA app 00 10 00020000 00190000
I (106) boot: 5 ota_1 OTA app 00 11 001b0000 00190000
I (114) boot: 6 fctry WiFi data 01 02 00340000 00006000
I (121) boot: End of partition table
I (126) boot_comm: chip revision: 1, min. application chip revision: 0
I (133) esp_image: segment 0: paddr=00020020 vaddr=3f400020 size=29ad4h (170708) map
I (203) esp_image: segment 1: paddr=00049afc vaddr=3ffb0000 size=03b28h ( 15144) load
I (209) esp_image: segment 2: paddr=0004d62c vaddr=40080000 size=029ech ( 10732) load
I (214) esp_image: segment 3: paddr=00050020 vaddr=400d0020 size=a43b0h (672688) map
I (461) esp_image: segment 4: paddr=000f43d8 vaddr=400829ec size=11ee0h ( 73440) load
I (491) esp_image: segment 5: paddr=001062c0 vaddr=50000000 size=00010h ( 16) load
I (502) boot: Loaded app from partition at offset 0x20000
I (502) boot: Disabling RNG early entropy source...
I (514) cpu_start: Pro cpu up.
I (514) cpu_start: Starting app cpu, entry point is 0x40081218
0x40081218: call_start_cpu1 at /home/user/esp/esp-idf/components/esp_system/port/cpu_start.c:164
I (501) cpu_start: App cpu up.
I (530) cpu_start: Pro cpu start user code
I (530) cpu_start: cpu freq: 160000000 Hz
I (530) cpu_start: Application information:
I (535) cpu_start: Project name: Lightbulb
I (540) cpu_start: App version: 94ed975-dirty
I (546) cpu_start: Compile time: Nov 22 2021 10:55:54
I (552) cpu_start: ELF file SHA256: 693d925e95e0bf30...
I (558) cpu_start: ESP-IDF: v5.0-dev-382-g098dfe8a08-dirty
I (565) heap_init: Initializing. RAM available for dynamic allocation:
I (572) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (578) heap_init: At 3FFC2440 len 0001DBC0 (118 KiB): DRAM
I (584) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (591) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (597) heap_init: At 400948CC len 0000B734 (45 KiB): IRAM
I (605) spi_flash: detected chip: generic
I (608) spi_flash: flash io: dio
I (613) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
1970-01-01'T'00:00:04'Z' Default [com.apple.mfi.HomeKit.Platform:KeyValueStore] keyValueStore nvs Initialised
1970-01-01'T'00:00:04'Z' Default [com.apple.mfi.HomeKit.Platform:KeyValueStore] keyValueStore fctry Initialised
I (717) wifi:wifi driver task: 3ffcbae4, prio:23, stack:6656, core=0
I (717) system_api: Base MAC address is not set
I (717) system_api: read default base MAC address from EFUSE
I (737) wifi:wifi firmware version: 7cb53e4
I (737) wifi:wifi certification version: v7.0
I (737) wifi:config NVS flash: enabled
I (737) wifi:config nano formating: disabled
I (747) wifi:Init data frame dynamic rx buffer num: 32
I (747) wifi:Init management frame dynamic rx buffer num: 32
I (757) wifi:Init management short buffer num: 32
I (757) wifi:Init dynamic tx buffer num: 32
I (767) wifi:Init static rx buffer size: 1600
I (767) wifi:Init static rx buffer num: 10
I (767) wifi:Init dynamic rx buffer num: 32
I (777) wifi_init: rx ba win: 6
I (777) wifi_init: tcpip mbox: 32
I (787) wifi_init: udp mbox: 6
I (787) wifi_init: tcp mbox: 6
I (787) wifi_init: tcp tx win: 5744
I (797) wifi_init: tcp rx win: 5744
I (797) wifi_init: tcp mss: 1440
I (807) wifi_init: WiFi IRAM OP enabled
I (807) wifi_init: WiFi RX IRAM OP enabled
1970-01-01'T'00:00:04'Z' Default [com.apple.mfi.HomeKit.Platform:KeyValueStore] Error (4354). Key 20 not found in KeyStore
1970-01-01'T'00:00:04'Z' Default [com.apple.mfi.HomeKit.Platform:KeyValueStore] Error (4354). Key 21 not found in KeyStore
I (837) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07
I (947) wifi:mode : sta (7c:9e:bd:54:6d:00)
I (947) wifi:enable tsf
I (947) wifi station: wifi_init_sta finished.
1970-01-01'T'00:00:04'Z' Default [com.apple.mfi.HomeKit.Core:AccessoryServer] Version information:
libhap: Unknown
- Version: Internal (Nov 22 2021 10:56:33) - compatibility version 7
Using platform: ESP32
- Version: v5.0-dev-382-g098dfe8a08-dirty (Nov 22 2021 10:56:30) - compatibility version 7
- Available features:
- Key-Value store
- Accessory setup manager
- Service discovery
1970-01-01'T'00:00:04'Z' Default [com.apple.mfi.HomeKit.Platform:KeyValueStore] Error (4354). Key 00 not found in KeyStore
1970-01-01'T'00:00:04'Z' Default [com.apple.mfi.HomeKit.Platform:Clock] Using 'clock_gettime' with 'CLOCK_MONOTONIC_RAW'.
1970-01-01'T'00:00:04'Z' Error [com.apple.mfi.HomeKit.Platform:Clock] clock_gettime failed: 22.
1970-01-01'T'00:00:04'Z' Fault fatal error - HAPPlatformClockGetCurrent @ /home/user/homekit/esp-apple-homekit-adk/port/src/HAPPlatformClock.c:51
abort() was called at PC 0x400d7acb on core 0
0x400d7acb: syscall_not_implemented_aborts at /home/user/esp/esp-idf/components/newlib/syscalls.c:35
Backtrace:0x40081c52:0x3ffc7c300x40088745:0x3ffc7c50 0x4008f3d6:0x3ffc7c70 0x400d7acb:0x3ffc7ce0 0x4016071a:0x3ffc7d00 0x400eac41:0x3ffc7d20 0x400da588:0x3ffc7d40 0x400ead52:0x3ffc7d60 0x400d949d:0x3ffc7d90 0x400d80af:0x3ffc7dd0 0x4008bb4d:0x3ffc7df0
0x40081c52: panic_abort at /home/user/esp/esp-idf/components/esp_system/panic.c:403
0x40088745: esp_system_abort at /home/user/esp/esp-idf/components/esp_system/esp_system.c:123
0x4008f3d6: abort at /home/user/esp/esp-idf/components/newlib/abort.c:46
0x400d7acb: syscall_not_implemented_aborts at /home/user/esp/esp-idf/components/newlib/syscalls.c:35
0x4016071a: exit at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdlib/exit.c:64
0x400eac41: HAPPlatformAbort at /home/user/homekit/esp-apple-homekit-adk/port/src/HAPPlatformAbort.c:27
0x400da588: HAPFatalErrorInternal at /home/user/homekit/esp-apple-homekit-adk/homekit_adk/PAL/HAPAssert.c:44
0x400ead52: HAPPlatformClockGetCurrent at /home/user/homekit/esp-apple-homekit-adk/port/src/HAPPlatformClock.c:51 (discriminator 1)
0x400d949d: HAPPlatformRunLoopRun at /home/user/homekit/esp-apple-homekit-adk/port/src/HAPPlatformRunLoop.c:609 (discriminator 1)
0x400d80af: main_task at /home/user/homekit/esp-apple-homekit-adk/examples/Lightbulb/build/../main/app_main.c:336 (discriminator 2)
0x4008bb4d: vPortTaskWrapper at /home/user/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:130
from esp-apple-homekit-adk.
1970-01-01'T'00:00:04'Z' Error [com.apple.mfi.HomeKit.Platform:Clock] clock_gettime failed: 22.
1970-01-01'T'00:00:04'Z' Fault fatal error - HAPPlatformClockGetCurrent @ /home/user/homekit/esp-apple-homekit-adk/port/src/HAPPlatformClock.c:51
abort() was called at PC 0x400d7acb on core 0
0x400d7acb: syscall_not_implemented_aborts at /home/user/esp/esp-idf/components/newlib/syscalls.c:35
seems its a clock problem
from esp-apple-homekit-adk.
@ShareCat , thanks for the suggestion. The same has now been changed in the code.
from esp-apple-homekit-adk.
Related Issues (20)
- Abort() while HAPAccessoryServerStop HOT 5
- LightBulb example does not work reliably HOT 1
- Where to generate your own example? HOT 3
- Sample with GPIO interrupt HOT 2
- Not lighting up even though successful execution HOT 6
- How to serve multiple accessories? HOT 3
- Stops working after a while HOT 10
- LightDemo can't be discoverd by iphone HOT 5
- Set up MbedTLS HOT 3
- Make it easier to add component to project HOT 2
- homekit adk not compiling HOT 1
- error while compiling LightBulb Example HOT 3
- New MbedTLS issue HOT 4
- Controlling Multiple pins from single accessory HOT 2
- Error on setup HOT 1
- Getting Uncertified Accessory message when adding device HOT 3
- Update apple ADK version HOT 1
- this project support esp32s3 ?
- use esp32s3 report error Pair Verify M3: Pairing not found.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-apple-homekit-adk.