Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import EFR32 #75

Merged
merged 2 commits into from
Mar 18, 2020
Merged

Import EFR32 #75

merged 2 commits into from
Mar 18, 2020

Conversation

sagar-apple
Copy link
Contributor

This PR imports EFR32 specific platform code to the CHIP repository.
The PR does not include Makefiles to build the new code.

@sagar-apple
Copy link
Contributor Author

@pan-apple

Copy link

@hawk248 hawk248 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@woody-apple woody-apple merged commit cf88e2c into project-chip:master Mar 18, 2020
@sagar-apple sagar-apple deleted the efr32 branch March 18, 2020 21:47
mspang referenced this pull request in mspang/connectedhomeip Feb 17, 2021
Android isn't able to unwind the CHIP native stack, which interferes
with debugging. Turn on unwind tables to fix this.  Unclear if we want
this in optimized builds, but Android OS seems to be able to unwind all
of frameworks and OS libraries, so for now assume we do. There's only a
space cost, and we can revisit that later.

This is the difference between this:

backtrace:
02-16 20:49:34.628  3872  3872 F DEBUG   : backtrace:
02-16 20:49:34.628  3872  3872 F DEBUG   :       #00 pc 000000000008246c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: 5812256023147338b8a9538321d4c456)
02-16 20:49:34.628  3872  3872 F DEBUG   :       #1 pc 00000000000a836c  /data/app/com.google.chip.chiptool-rPVLWEFRvE413khV9YptWg==/base.apk (offset 0x97a000) (chip::NetworkProvisioning::SendNetworkCredentials(char const*, char const*)+96)

and this:
02-16 20:56:04.323  5040  5040 F DEBUG   : backtrace:
02-16 20:56:04.323  5040  5040 F DEBUG   :       #00 pc 000000000008246c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: 5812256023147338b8a9538321d4c456)
02-16 20:56:04.323  5040  5040 F DEBUG   :       #1 pc 00000000000a839c  /data/app/com.google.chip.chiptool-dz3iwqwmItgQDBBaEcevJw==/base.apk (offset 0x97a000) (chip::NetworkProvisioning::SendNetworkCredentials(char const*, char const*)+96)
02-16 20:56:04.323  5040  5040 F DEBUG   :       #2 pc 000000000009bb58  /data/app/com.google.chip.chiptool-dz3iwqwmItgQDBBaEcevJw==/base.apk (offset 0x97a000) (chip::RendezvousSession::SendNetworkCredentials(char const*, char const*)+44)
02-16 20:56:04.323  5040  5040 F DEBUG   :       #3 pc 000000000009bb94  /data/app/com.google.chip.chiptool-dz3iwqwmItgQDBBaEcevJw==/base.apk (offset 0x97a000) (non-virtual thunk to chip::RendezvousSession::SendNetworkCredentials(char const*, char const*)+44)
02-16 20:56:04.323  5040  5040 F DEBUG   :       #4 pc 0000000000051488  /data/app/com.google.chip.chiptool-dz3iwqwmItgQDBBaEcevJw==/base.apk (offset 0x97a000) (AndroidDeviceControllerWrapper::SendNetworkCredentials(char const*, char const*)+128)
02-16 20:56:04.323  5040  5040 F DEBUG   :       #5 pc 0000000000054188  /data/app/com.google.chip.chiptool-dz3iwqwmItgQDBBaEcevJw==/base.apk (offset 0x97a000) (Java_chip_devicecontroller_ChipDeviceController_sendWiFiCredentials+188)
02-16 20:56:04.323  5040  5040 F DEBUG   :       #6 pc 000000000013f350  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: ccd73e8ae9b59d5596b3b8aeef234d43)
<snip>
02-16 20:56:04.327  5040  5040 F DEBUG   :       #75 pc 00000000000be560  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+116) (BuildId: e5b25f8fb9f6bb45ccbeca8c07061dad)
02-16 20:56:04.327  5040  5040 F DEBUG   :       #76 pc 00000000000c13d0  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+776) (BuildId: e5b25f8fb9f6bb45ccbeca8c07061dad)
02-16 20:56:04.327  5040  5040 F DEBUG   :       #77 pc 00000000000034e0  /system/bin/app_process64 (main+1168) (BuildId: ade4367f7cc82a88f668180d34ce79fe)
02-16 20:56:04.327  5040  5040 F DEBUG   :       #78 pc 000000000007dc24  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108) (BuildId: 5812256023147338b8a9538321d4c456)
mspang referenced this pull request in mspang/connectedhomeip Feb 17, 2021
Android isn't able to unwind the CHIP native stack, which interferes
with debugging. Turn on unwind tables to fix this.  Unclear if we want
this in optimized builds, but Android OS seems to be able to unwind all
of its frameworks and native libraries, so for now assume we do. There's
only a space cost, and we can revisit that later.

This is the difference between this:

backtrace:
02-16 20:49:34.628  3872  3872 F DEBUG   : backtrace:
02-16 20:49:34.628  3872  3872 F DEBUG   :       #00 pc 000000000008246c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: 5812256023147338b8a9538321d4c456)
02-16 20:49:34.628  3872  3872 F DEBUG   :       #1 pc 00000000000a836c  /data/app/com.google.chip.chiptool-rPVLWEFRvE413khV9YptWg==/base.apk (offset 0x97a000) (chip::NetworkProvisioning::SendNetworkCredentials(char const*, char const*)+96)

and this:
02-16 20:56:04.323  5040  5040 F DEBUG   : backtrace:
02-16 20:56:04.323  5040  5040 F DEBUG   :       #00 pc 000000000008246c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: 5812256023147338b8a9538321d4c456)
02-16 20:56:04.323  5040  5040 F DEBUG   :       #1 pc 00000000000a839c  /data/app/com.google.chip.chiptool-dz3iwqwmItgQDBBaEcevJw==/base.apk (offset 0x97a000) (chip::NetworkProvisioning::SendNetworkCredentials(char const*, char const*)+96)
02-16 20:56:04.323  5040  5040 F DEBUG   :       #2 pc 000000000009bb58  /data/app/com.google.chip.chiptool-dz3iwqwmItgQDBBaEcevJw==/base.apk (offset 0x97a000) (chip::RendezvousSession::SendNetworkCredentials(char const*, char const*)+44)
02-16 20:56:04.323  5040  5040 F DEBUG   :       #3 pc 000000000009bb94  /data/app/com.google.chip.chiptool-dz3iwqwmItgQDBBaEcevJw==/base.apk (offset 0x97a000) (non-virtual thunk to chip::RendezvousSession::SendNetworkCredentials(char const*, char const*)+44)
02-16 20:56:04.323  5040  5040 F DEBUG   :       #4 pc 0000000000051488  /data/app/com.google.chip.chiptool-dz3iwqwmItgQDBBaEcevJw==/base.apk (offset 0x97a000) (AndroidDeviceControllerWrapper::SendNetworkCredentials(char const*, char const*)+128)
02-16 20:56:04.323  5040  5040 F DEBUG   :       #5 pc 0000000000054188  /data/app/com.google.chip.chiptool-dz3iwqwmItgQDBBaEcevJw==/base.apk (offset 0x97a000) (Java_chip_devicecontroller_ChipDeviceController_sendWiFiCredentials+188)
02-16 20:56:04.323  5040  5040 F DEBUG   :       #6 pc 000000000013f350  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: ccd73e8ae9b59d5596b3b8aeef234d43)
<snip>
02-16 20:56:04.327  5040  5040 F DEBUG   :       #75 pc 00000000000be560  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+116) (BuildId: e5b25f8fb9f6bb45ccbeca8c07061dad)
02-16 20:56:04.327  5040  5040 F DEBUG   :       #76 pc 00000000000c13d0  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+776) (BuildId: e5b25f8fb9f6bb45ccbeca8c07061dad)
02-16 20:56:04.327  5040  5040 F DEBUG   :       #77 pc 00000000000034e0  /system/bin/app_process64 (main+1168) (BuildId: ade4367f7cc82a88f668180d34ce79fe)
02-16 20:56:04.327  5040  5040 F DEBUG   :       #78 pc 000000000007dc24  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108) (BuildId: 5812256023147338b8a9538321d4c456)
woody-apple pushed a commit that referenced this pull request Feb 17, 2021
* Fix unwinding on Android

Android isn't able to unwind the CHIP native stack, which interferes
with debugging. Turn on unwind tables to fix this.  Unclear if we want
this in optimized builds, but Android OS seems to be able to unwind all
of its frameworks and native libraries, so for now assume we do. There's
only a space cost, and we can revisit that later.

This is the difference between this:

backtrace:
02-16 20:49:34.628  3872  3872 F DEBUG   : backtrace:
02-16 20:49:34.628  3872  3872 F DEBUG   :       #00 pc 000000000008246c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: 5812256023147338b8a9538321d4c456)
02-16 20:49:34.628  3872  3872 F DEBUG   :       #1 pc 00000000000a836c  /data/app/com.google.chip.chiptool-rPVLWEFRvE413khV9YptWg==/base.apk (offset 0x97a000) (chip::NetworkProvisioning::SendNetworkCredentials(char const*, char const*)+96)

and this:
02-16 20:56:04.323  5040  5040 F DEBUG   : backtrace:
02-16 20:56:04.323  5040  5040 F DEBUG   :       #00 pc 000000000008246c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: 5812256023147338b8a9538321d4c456)
02-16 20:56:04.323  5040  5040 F DEBUG   :       #1 pc 00000000000a839c  /data/app/com.google.chip.chiptool-dz3iwqwmItgQDBBaEcevJw==/base.apk (offset 0x97a000) (chip::NetworkProvisioning::SendNetworkCredentials(char const*, char const*)+96)
02-16 20:56:04.323  5040  5040 F DEBUG   :       #2 pc 000000000009bb58  /data/app/com.google.chip.chiptool-dz3iwqwmItgQDBBaEcevJw==/base.apk (offset 0x97a000) (chip::RendezvousSession::SendNetworkCredentials(char const*, char const*)+44)
02-16 20:56:04.323  5040  5040 F DEBUG   :       #3 pc 000000000009bb94  /data/app/com.google.chip.chiptool-dz3iwqwmItgQDBBaEcevJw==/base.apk (offset 0x97a000) (non-virtual thunk to chip::RendezvousSession::SendNetworkCredentials(char const*, char const*)+44)
02-16 20:56:04.323  5040  5040 F DEBUG   :       #4 pc 0000000000051488  /data/app/com.google.chip.chiptool-dz3iwqwmItgQDBBaEcevJw==/base.apk (offset 0x97a000) (AndroidDeviceControllerWrapper::SendNetworkCredentials(char const*, char const*)+128)
02-16 20:56:04.323  5040  5040 F DEBUG   :       #5 pc 0000000000054188  /data/app/com.google.chip.chiptool-dz3iwqwmItgQDBBaEcevJw==/base.apk (offset 0x97a000) (Java_chip_devicecontroller_ChipDeviceController_sendWiFiCredentials+188)
02-16 20:56:04.323  5040  5040 F DEBUG   :       #6 pc 000000000013f350  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: ccd73e8ae9b59d5596b3b8aeef234d43)
<snip>
02-16 20:56:04.327  5040  5040 F DEBUG   :       #75 pc 00000000000be560  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+116) (BuildId: e5b25f8fb9f6bb45ccbeca8c07061dad)
02-16 20:56:04.327  5040  5040 F DEBUG   :       #76 pc 00000000000c13d0  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+776) (BuildId: e5b25f8fb9f6bb45ccbeca8c07061dad)
02-16 20:56:04.327  5040  5040 F DEBUG   :       #77 pc 00000000000034e0  /system/bin/app_process64 (main+1168) (BuildId: ade4367f7cc82a88f668180d34ce79fe)
02-16 20:56:04.327  5040  5040 F DEBUG   :       #78 pc 000000000007dc24  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108) (BuildId: 5812256023147338b8a9538321d4c456)

* Make it an argument
jmartinez-silabs referenced this pull request in SiliconLabs/matter Sep 8, 2022
…t switch

Merge in WMN_TOOLS/matter from fix_thermostat_doc to RC_0.3.0

Squashed commit of the following:

commit 75541a429db4164b7c09b8c165114cbd67f9372e
Author: Ezra Hale <[email protected]>
Date:   Thu Sep 8 08:51:26 2022 -0400

    further minor cleanup on the urls etc...

commit 7a90c063f2f936dfed3489060c7abb54bf6be2f5
Author: Ezra Hale <[email protected]>
Date:   Thu Sep 8 08:43:56 2022 -0400

    projectchip -> project-chip

commit 1e30b31f1eab975c7dfd6d3b925485e8ac23f570
Author: Ezra Hale <[email protected]>
Date:   Thu Sep 8 08:22:09 2022 -0400

    addressed comments, fixed errors caused by brute force replace of CHIP

commit 4d97ea794d56f97f950d949bf723931edf27d7b8
Author: Ezra Hale <[email protected]>
Date:   Wed Sep 7 13:51:18 2022 -0400

    chip -> matter

commit 6b9d0f57c0489b7f213d7dd8f12b26b023f7032e
Author: Ezra Hale <[email protected]>
Date:   Wed Sep 7 13:28:42 2022 -0400

    updated thermostat README to remove mention of light switch
jmartinez-silabs referenced this pull request in SiliconLabs/matter Oct 13, 2022
Merge in WMN_TOOLS/matter from cherry-pick/thermostat_updates to RC_0.4.0

Squashed commit of the following:

commit dc14eae3bde510ceb498bd4d59ee90f318dba306
Author: Ezra Hale <[email protected]>
Date:   Thu Sep 8 14:01:13 2022 +0000

    Pull request #75: updated thermostat README to remove mention of light switch

    Merge in WMN_TOOLS/matter from fix_thermostat_doc to RC_0.3.0

    Squashed commit of the following:

    commit 75541a429db4164b7c09b8c165114cbd67f9372e
    Author: Ezra Hale <[email protected]>
    Date:   Thu Sep 8 08:51:26 2022 -0400

        further minor cleanup on the urls etc...

    commit 7a90c063f2f936dfed3489060c7abb54bf6be2f5
    Author: Ezra Hale <[email protected]>
    Date:   Thu Sep 8 08:43:56 2022 -0400

        projectchip -> project-chip

    commit 1e30b31f1eab975c7dfd6d3b925485e8ac23f570
    Author: Ezra Hale <[email protected]>
    Date:   Thu Sep 8 08:22:09 2022 -0400

        addressed comments, fixed errors caused by brute force replace of CHIP

    commit 4d97ea794d56f97f950d949bf723931edf27d7b8
    Author: Ezra Hale <[email protected]>
    Date:   Wed Sep 7 13:51:18 2022 -0400

        chip -> matter

    commit 6b9d0f57c0489b7f213d7dd8f12b26b023f7032e
    Author: Ezra Hale <[email protected]>
    Date:   Wed Sep 7 13:28:42 2022 -0400

        updated thermostat README to remove mention of light switch

commit 220622601d8c58e0d9d1583edc6b472ebc91f126
Author: Shayna Kaushal <[email protected]>
Date:   Wed Sep 7 15:59:53 2022 +0000

    Pull request #62: Thermostat updates

    Merge in WMN_TOOLS/matter from thermostat_updates to RC_0.3.0

    Squashed commit of the following:

    commit 7d27ef4020e859b35c1f43b142c82af1eaed7a60
    Author: shayna <[email protected]>
    Date:   Tue Sep 6 16:24:44 2022 -0400

        [thermo] get/set attributes done

    commit ae9eee59524145a062dcf950ce07996c02c631aa
    Author: Shayna Kaushal <[email protected]>
    Date:   Tue Sep 6 12:15:09 2022 -0400

        [thermo] jenkins: wifi thermostat build

    commit 7ec590237f1c3de688953f0a408561275ea386c6
    Author: Shayna Kaushal <[email protected]>
    Date:   Tue Sep 6 10:32:08 2022 -0400

        [thermo] jenkins trial

    commit a6b5f390ab08c43611770d553f2b3b03985c4cbd
    Author: Shayna Kaushal <[email protected]>
    Date:   Fri Sep 2 17:26:28 2022 -0400

        no changes - added comments to be removed

    commit 818fb2fd098b5eb12f800c76329380d9cbdb5617
    Author: Shayna Kaushal <[email protected]>
    Date:   Fri Sep 2 11:12:28 2022 -0400

        [thermo] some comments resolved, todo: read attributes

    commit 64a2cf609bdfa0f40dab187aaedb4a24d95f205a
    Author: Shayna Kaushal <[email protected]>
    Date:   Thu Sep 1 15:47:58 2022 -0400

        [thermo] cleaned

    commit bb75e776644941054d06069608d370ee00f8f8f8
    Author: Shayna Kaushal <[email protected]>
    Date:   Thu Sep 1 15:47:06 2022 -0400

        [thermo] cleaned

    commit cec89f46cfa7011d5e8eabd6bdb09152a675a5b2
    Author: Shayna Kaushal <[email protected]>
    Date:   Thu Sep 1 15:40:33 2022 -0400

        [thermo] readme edits

    commit 20f1608706c0cdacefb8fbf72c62b54db0c64e64
    Author: Shayna Kaushal <[email protected]>
    Date:   Thu Sep 1 15:23:06 2022 -0400

        [thermo] added limits

    commit 9d012ab60ec602f809c6f1c2d8b7a8f1cfc465e7
    Author: Shayna Kaushal <[email protected]>
    Date:   Thu Sep 1 12:56:23 2022 -0400

        [thermo] cleaned - todo: add limits, docs

    commit 23150e76b129b9e0181965a987e6a0b62fbda651
    Author: Shayna Kaushal <[email protected]>
    Date:   Thu Sep 1 10:16:27 2022 -0400

        code added, todo: clean+docs
nipatel-silabs pushed a commit to nipatel-silabs/connectedhomeip that referenced this pull request Oct 19, 2022
Merge in WMN_TOOLS/matter from cherry-pick/thermostat_updates to RC_0.4.0

Squashed commit of the following:

commit dc14eae3bde510ceb498bd4d59ee90f318dba306
Author: Ezra Hale <[email protected]>
Date:   Thu Sep 8 14:01:13 2022 +0000

    Pull request project-chip#75: updated thermostat README to remove mention of light switch

    Merge in WMN_TOOLS/matter from fix_thermostat_doc to RC_0.3.0

    Squashed commit of the following:

    commit 75541a429db4164b7c09b8c165114cbd67f9372e
    Author: Ezra Hale <[email protected]>
    Date:   Thu Sep 8 08:51:26 2022 -0400

        further minor cleanup on the urls etc...

    commit 7a90c063f2f936dfed3489060c7abb54bf6be2f5
    Author: Ezra Hale <[email protected]>
    Date:   Thu Sep 8 08:43:56 2022 -0400

        projectchip -> project-chip

    commit 1e30b31f1eab975c7dfd6d3b925485e8ac23f570
    Author: Ezra Hale <[email protected]>
    Date:   Thu Sep 8 08:22:09 2022 -0400

        addressed comments, fixed errors caused by brute force replace of CHIP

    commit 4d97ea794d56f97f950d949bf723931edf27d7b8
    Author: Ezra Hale <[email protected]>
    Date:   Wed Sep 7 13:51:18 2022 -0400

        chip -> matter

    commit 6b9d0f57c0489b7f213d7dd8f12b26b023f7032e
    Author: Ezra Hale <[email protected]>
    Date:   Wed Sep 7 13:28:42 2022 -0400

        updated thermostat README to remove mention of light switch

commit 220622601d8c58e0d9d1583edc6b472ebc91f126
Author: Shayna Kaushal <[email protected]>
Date:   Wed Sep 7 15:59:53 2022 +0000

    Pull request project-chip#62: Thermostat updates

    Merge in WMN_TOOLS/matter from thermostat_updates to RC_0.3.0

    Squashed commit of the following:

    commit 7d27ef4020e859b35c1f43b142c82af1eaed7a60
    Author: shayna <[email protected]>
    Date:   Tue Sep 6 16:24:44 2022 -0400

        [thermo] get/set attributes done

    commit ae9eee59524145a062dcf950ce07996c02c631aa
    Author: Shayna Kaushal <[email protected]>
    Date:   Tue Sep 6 12:15:09 2022 -0400

        [thermo] jenkins: wifi thermostat build

    commit 7ec590237f1c3de688953f0a408561275ea386c6
    Author: Shayna Kaushal <[email protected]>
    Date:   Tue Sep 6 10:32:08 2022 -0400

        [thermo] jenkins trial

    commit a6b5f390ab08c43611770d553f2b3b03985c4cbd
    Author: Shayna Kaushal <[email protected]>
    Date:   Fri Sep 2 17:26:28 2022 -0400

        no changes - added comments to be removed

    commit 818fb2fd098b5eb12f800c76329380d9cbdb5617
    Author: Shayna Kaushal <[email protected]>
    Date:   Fri Sep 2 11:12:28 2022 -0400

        [thermo] some comments resolved, todo: read attributes

    commit 64a2cf609bdfa0f40dab187aaedb4a24d95f205a
    Author: Shayna Kaushal <[email protected]>
    Date:   Thu Sep 1 15:47:58 2022 -0400

        [thermo] cleaned

    commit bb75e776644941054d06069608d370ee00f8f8f8
    Author: Shayna Kaushal <[email protected]>
    Date:   Thu Sep 1 15:47:06 2022 -0400

        [thermo] cleaned

    commit cec89f46cfa7011d5e8eabd6bdb09152a675a5b2
    Author: Shayna Kaushal <[email protected]>
    Date:   Thu Sep 1 15:40:33 2022 -0400

        [thermo] readme edits

    commit 20f1608706c0cdacefb8fbf72c62b54db0c64e64
    Author: Shayna Kaushal <[email protected]>
    Date:   Thu Sep 1 15:23:06 2022 -0400

        [thermo] added limits

    commit 9d012ab60ec602f809c6f1c2d8b7a8f1cfc465e7
    Author: Shayna Kaushal <[email protected]>
    Date:   Thu Sep 1 12:56:23 2022 -0400

        [thermo] cleaned - todo: add limits, docs

    commit 23150e76b129b9e0181965a987e6a0b62fbda651
    Author: Shayna Kaushal <[email protected]>
    Date:   Thu Sep 1 10:16:27 2022 -0400

        code added, todo: clean+docs
shgutte pushed a commit to shgutte/connectedhomeip that referenced this pull request Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants