完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
开发环境为Ubuntu22.04 ,ESP-IDF版本为: v5.2-dev-503-g17451f1fb3,使用的开发板为esp32s3
问题描述:将esp32s3连接到WiFi,获取到IP之后。通过CHIP-tool工具进行配网,当运行完chip-tool pairing onnetwork 0x7283 20202021后,s3收到配网信息。之后就发生了重启。显示的错误原因为:assert failed: heap_caps_free heap_caps.c:387 (heap != NULL && "free() target pointer is outside heap areas")。示例light没有进行改动。 1.请问是IDF的版本不对吗? 2.我想要实验esp-matter中的示例,那个版本的IDF能正常进行调试呢? err message:Code: Select all assert failed: heap_caps_free heap_caps.c:387 (heap != NULL && "free() target pointer is outside heap areas")Backtrace: 0x40375bb2:0x3fce52d0 0x403813c9:0x3fce52f0 0x40387301:0x3fce5310 0x403764bf:0x3fce5430 0x4037a8c9:0x3fce5450 0x4207311e:0x3fce5470 0x420724ab:0x3fce5490 0x420784d4:0x3fce54b0 0x42078514:0x3fce5520 0x4204dd4e:0x3fce5570 0x42042c1b:0x3fce55a0 0x42042955:0x3fce55e0 0x42042b3b:0x3fce5620 0x42060436:0x3fce56a0 0x42060d22:0x3fce57e0 0x42060da7:0x3fce5800 0x42048a6f:0x3fce5820 0x42048c95:0x3fce5870 0x420dcb43:0x3fce5890 0x420490aa:0x3fce58c0 0x4204c709:0x3fce5990 0x4204c759:0x3fce5a20 0x4204c839:0x3fce5a90 0x4205c031:0x3fce5b00 0x420648c5:0x3fce5b50 0x42064905:0x3fce5ba0 0x420509f2:0x3fce5bd0 0x42050d1c:0x3fce5bf0 0x42050d5d:0x3fce5c60 0x40383929:0x3fce5c800x40375bb2: panic_abort at /home/brains/espressif/frameworks/esp-idf/components/esp_system/panic.c:4510x403813c9: esp_system_abort at /home/brains/espressif/frameworks/esp-idf/components/esp_system/port/esp_system_chip.c:900x40387301: __assert_func at /home/brains/espressif/frameworks/esp-idf/components/newlib/assert.c:810x403764bf: heap_caps_free at /home/brains/espressif/frameworks/esp-idf/components/heap/heap_caps.c:387 (discriminator 1)0x4037a8c9: esp_mbedtls_mem_free at /home/brains/espressif/frameworks/esp-idf/components/mbedtls/port/esp_mem.c:380x4207311e: mbedtls_free at /home/brains/espressif/frameworks/esp-idf/components/mbedtls/mbedtls/library/platform.c:660x420724ab: mbedtls_md_free at /home/brains/espressif/frameworks/esp-idf/components/mbedtls/mbedtls/library/md.c:2870x420784d4: mbedtls_hkdf_expand at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/third_party/connectedhomeip/config/esp32/components/esp32_mbedtls/hkdf.c:1850x42078514: mbedtls_hkdf at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/third_party/connectedhomeip/config/esp32/components/esp32_mbedtls/hkdf.c:480x4204dd4e: chip::Crypto::HKDF_sha::HKDF_SHA256(unsigned char const*, unsigned int, unsigned char const*, unsigned int, unsigned char const*, unsigned int, unsigned char*, unsigned int) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/crypto/CHIPCryptoPALmbedTLS.cpp:330 (inlined by) chip::Crypto::HKDF_sha::HKDF_SHA256(unsigned char const*, unsigned int, unsigned char const*, unsigned int, unsigned char const*, unsigned int, unsigned char*, unsigned int) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/crypto/CHIPCryptoPALmbedTLS.cpp:3100x42042c1b: chip::Crypto::Spake2p_P256_SHA256_HKDF_HMAC::KDF(unsigned char const*, unsigned int, unsigned char const*, unsigned int, unsigned char const*, unsigned int, unsigned char*, unsigned int) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/crypto/CHIPCryptoPAL.cpp:5080x42042955: chip::Crypto::Spake2p::GenerateKeys() at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/crypto/CHIPCryptoPAL.cpp:430 (inlined by) chip::Crypto::Spake2p::GenerateKeys() at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/crypto/CHIPCryptoPAL.cpp:4230x42042b3b: chip::Crypto::Spake2p::ComputeRoundTwo(unsigned char const*, unsigned int, unsigned char*, unsigned int*) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/crypto/CHIPCryptoPAL.cpp:411 (discriminator 3)0x42060436: chip::PASESession::HandleMsg1_and_SendMsg2(chip::System::PacketBufferHandle&&) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:599 (discriminator 2)0x42060d22: chip::PASESession::OnMessageReceived(chip::Messaging::ExchangeContext*, chip::PayloadHeader const&, chip::System::PacketBufferHandle&&) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:8470x42060da7: non-virtual thunk to chip::PASESession::OnMessageReceived(chip::Messaging::ExchangeContext*, chip::PayloadHeader const&, chip::System::PacketBufferHandle&&) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/protocols/secure_channel/PASESession.h:1650x42048a6f: chip::Messaging::ExchangeContext::HandleMessage(unsigned long, chip::PayloadHeader const&, chip::BitFlags, chip::System::PacketBufferHandle&&) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/messaging/ExchangeContext.cpp:6040x42048c95: chip::internal::LambdaProxy::Call(void*, void*) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/messaging/ExchangeMgr.cpp:249 (inlined by) Call at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/lib/support/Pool.h:1260x420dcb43: chip::internal::StaticAllocatorBitmap::ForEachActiveObjectInner(void*, chip::Loop (*)(void*, void*)) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/lib/support/Pool.cpp:1220x420490aa: chip::Messaging::ExchangeManager::OnMessageReceived(chip::PacketHeader const&, chip::PayloadHeader const&, chip::SessionHandle const&, chip::SessionMessageDelegate::DuplicateMessage, chip::System::PacketBufferHandle&&) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/lib/support/Pool.h:264 (inlined by) chip::Messaging::ExchangeManager::OnMessageReceived(chip::PacketHeader const&, chip::PayloadHeader const&, chip::SessionHandle const&, chip::SessionMessageDelegate::DuplicateMessage, chip::System::PacketBufferHandle&&) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/messaging/ExchangeMgr.cpp:2420x4204c709: chip::SessionManager::UnauthenticatedMessageDispatch(chip::PacketHeader const&, chip::Transport::PeerAddress const&, chip::System::PacketBufferHandle&&) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/transport/SessionManager.cpp:6510x4204c759: chip::SessionManager::OnMessageReceived(chip::Transport::PeerAddress const&, chip::System::PacketBufferHandle&&) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/transport/SessionManager.cpp:5690x4204c839: chip::TransportMgrBase::HandleMessageReceived(chip::Transport::PeerAddress const&, chip::System::PacketBufferHandle&&) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/transport/TransportMgrBase.cpp:76 (inlined by) chip::TransportMgrBase::HandleMessageReceived(chip::Transport::PeerAddress const&, chip::System::PacketBufferHandle&&) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/transport/TransportMgrBase.cpp:590x4205c031: chip::Transport::Base::HandleMessageReceived(chip::Transport::PeerAddress const&, chip::System::PacketBufferHandle&&) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/transport/raw/Base.h:102 (discriminator 2) (inlined by) chip::Transport::UDP::OnUdpReceive(chip::Inet::UDPEndPoint*, chip::System::PacketBufferHandle&&, chip::Inet::IPPacketInfo const*) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/transport/raw/UDP.cpp:128 (discriminator 2)0x420648c5: chip::Inet::UDPEndPointImplLwIP::HandleDataReceived(chip::System::PacketBufferHandle&&, chip::Inet::IPPacketInfo*) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/inet/UDPEndPointImplLwIP.cpp:2910x42064905: chip::LambdaBridge::Initialize(chip::Inet::UDPEndPointImplLwIP::LwIPReceiveUDPMessage(void*, udp_PCB*, pbuf*, ip_addr const*, unsigned short)::{lambda()#1} const&)::{lambda(std::aligned_storage<24u, 4u>::type const&)#1}::_FUN(std::aligned_storage<24u, 4u>::type const&) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/inet/UDPEndPointImplLwIP.cpp:426 (inlined by) operator() at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/lib/support/LambdaBridge.h:39 (inlined by) _FUN at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/lib/support/LambdaBridge.h:390x420509f2: chip::DeviceLayer::Internal::GenericPlatformManagerImpl::_DispatchEvent(chip::DeviceLayer::ChipDeviceEvent const*) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/include/platform/internal/GenericPlatformManagerImpl.ipp:2900x42050d1c: chip::DeviceLayer::PlatformManager::DispatchEvent(chip::DeviceLayer::ChipDeviceEvent const*) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/include/platform/PlatformManager.h:505 (inlined by) chip::DeviceLayer::Internal::GenericPlatformManagerImpl_FreeRTOS::_RunEventLoop() at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/include/platform/internal/GenericPlatformManagerImpl_FreeRTOS.ipp:2570x42050d5d: chip::DeviceLayer::PlatformManager::RunEventLoop() at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/include/platform/PlatformManager.h:405 (inlined by) chip::DeviceLayer::Internal::GenericPlatformManagerImpl_FreeRTOS::EventLoopTaskMain(void*) at /home/brains/espressif/frameworks/esp-matter/connectedhomeip/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/chip/../../../../../../config/esp32/third_party/connectedhomeip/src/include/platform/internal/GenericPlatformManagerImpl_FreeRTOS.ipp:2800x40383929: vPortTaskWrapper at /home/brains/espressif/frameworks/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162 |
|
相关推荐
1个回答
|
|
根据您提供的信息,您在尝试使用ESP-Matter示例进行配对时遇到了问题。这个问题可能是由多种原因导致的,我们可以逐步排查:
1. **ESP-IDF版本问题**:您当前使用的是ESP-IDF v5.2-dev-503-g17451f1fb3版本,这是一个开发版本,可能存在一些不稳定因素。建议您尝试使用更稳定的版本,例如v4.4或v5.0。 2. **示例代码问题**:您提到示例代码没有进行改动。虽然这降低了代码问题的可能性,但仍然建议您检查示例代码是否与您的硬件和ESP-IDF版本兼容。 3. **硬件问题**:请确保您的ESP32-S3开发板没有硬件故障。您可以尝试在其他示例项目上运行开发板,以排除硬件问题。 4. **内存问题**:错误信息 "assert failed: heap_caps_free heap_caps.c:387 (heap != NULL && "free() target pointer is outside heap areas")" 表示内存分配或释放出现问题。这可能是由于内存泄漏、错误的内存操作或其他内存相关的问题。您可以尝试使用内存分析工具(如ESP-IDF的heap_debug组件)来诊断问题。 5. **环境问题**:您提到您的开发环境是Ubuntu 22.04。虽然这个版本应该可以正常工作,但有时新版本的操作系统可能会引入一些兼容性问题。您可以尝试在其他版本的Ubuntu上进行开发,或者使用其他Linux发行版。 关于您的问题: 1. **IDF版本**:虽然当前版本可能存在问题,但建议您先尝试更稳定的版本,如v4.4或v5.0。 2. **正常调试的IDF版本**:目前,ESP-Matter项目仍在开发中,可能没有特定的稳定版本。建议您关注ESP-Matter项目的更新,以获取最新信息和支持。 最后,建议您在排查问题时,逐步检查上述各个方面,以便找到问题的根本原因。同时,您可以参考ESP-Matter项目的文档和社区,以获取更多关于项目和问题的解决方案。 |
|
|
|
只有小组成员才能发言,加入小组>>
435 浏览 1 评论
1300 浏览 1 评论
599浏览 6评论
498浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
481浏览 5评论
481浏览 4评论
465浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-1-14 04:42 , Processed in 0.812769 second(s), Total 76, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (威廉希尔官方网站 图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号