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

EFR32 lock and lighting app don't boot. #15325

Closed
rgoliver opened this issue Feb 17, 2022 · 2 comments · Fixed by #15365
Closed

EFR32 lock and lighting app don't boot. #15325

rgoliver opened this issue Feb 17, 2022 · 2 comments · Fixed by #15365
Labels
bug Something isn't working efr32 hotfix urgent fix needed, can bypass review V1.0

Comments

@rgoliver
Copy link

Problem

After the additional lock checks from #15152, EFR32 dies at startup (tested on lighting and locking apps):

20220217 15:16:36  INF  <efr32 > ==================================================
20220217 15:16:36  INF  <efr32 > chip-efr32-lock-example starting
20220217 15:16:36  INF  <efr32 > ==================================================
20220217 15:16:36  INF  <efr32 > Init CHIP Stack
20220217 15:16:37  INF  <info  > [DL] Setting device name to : "EFR32_LOCK"
20220217 15:16:37  INF  <efr32 > Initializing OpenThread stack
20220217 15:16:37  INF  <info  > [DL] OpenThread started: OK
20220217 15:16:37  INF  <info  > [DL] Setting OpenThread device type to ROUTER
20220217 15:16:37  INF  <efr32 > Starting Platform Manager Event Loop
20220217 15:16:37  INF  <efr32 > Starting OpenThread task
20220217 15:16:37  INF  <efr32 > Starting App Task
20220217 15:16:37  INF  <efr32 > Starting FreeRTOS scheduler
20220217 15:16:37  INF  <info  > [DL] Bluetooth stack booted: v3.2.1-b216
20220217 15:16:37  INF  <info  > [DL] RAIL version:, v2.11.1-b0
20220217 15:16:37  INF  <detail> [DL] Thread task running
20220217 15:16:37  INF  <detail> [-] Starting pw_rpc server
20220217 15:16:37  INF  <detail> [DL] CHIP task running
20220217 15:16:37  INF  <detail> [DL] Start BLE advertissement
20220217 15:16:37  INF  <info  > [ZCL] Using ZAP configuration...
20220217 15:16:37  INF  <error > [DL] Chip stack locking error at '../../examples/lock-app/efr32/third_party/connectedhomeip/src/app/util/attribute-stor
20220217 15:16:37  INF  age.cpp:553'. Code is unsafe/racy
20220217 15:16:37  INF  <error > [-] chipDie chipDie chipDie

Proposed Solution

Need to go through startup code and add appropriate locks.

@jmeg-sfy
Copy link
Contributor

Problem

After the additional lock checks from #15152, EFR32 dies at startup (tested on lighting and locking apps):

20220217 15:16:36  INF  <efr32 > ==================================================
20220217 15:16:36  INF  <efr32 > chip-efr32-lock-example starting
20220217 15:16:36  INF  <efr32 > ==================================================
20220217 15:16:36  INF  <efr32 > Init CHIP Stack
20220217 15:16:37  INF  <info  > [DL] Setting device name to : "EFR32_LOCK"
20220217 15:16:37  INF  <efr32 > Initializing OpenThread stack
20220217 15:16:37  INF  <info  > [DL] OpenThread started: OK
20220217 15:16:37  INF  <info  > [DL] Setting OpenThread device type to ROUTER
20220217 15:16:37  INF  <efr32 > Starting Platform Manager Event Loop
20220217 15:16:37  INF  <efr32 > Starting OpenThread task
20220217 15:16:37  INF  <efr32 > Starting App Task
20220217 15:16:37  INF  <efr32 > Starting FreeRTOS scheduler
20220217 15:16:37  INF  <info  > [DL] Bluetooth stack booted: v3.2.1-b216
20220217 15:16:37  INF  <info  > [DL] RAIL version:, v2.11.1-b0
20220217 15:16:37  INF  <detail> [DL] Thread task running
20220217 15:16:37  INF  <detail> [-] Starting pw_rpc server
20220217 15:16:37  INF  <detail> [DL] CHIP task running
20220217 15:16:37  INF  <detail> [DL] Start BLE advertissement
20220217 15:16:37  INF  <info  > [ZCL] Using ZAP configuration...
20220217 15:16:37  INF  <error > [DL] Chip stack locking error at '../../examples/lock-app/efr32/third_party/connectedhomeip/src/app/util/attribute-stor
20220217 15:16:37  INF  age.cpp:553'. Code is unsafe/racy
20220217 15:16:37  INF  <error > [-] chipDie chipDie chipDie

Proposed Solution

Need to go through startup code and add appropriate locks.

Problem is likely on every single EXAMPLE => window-covering as well

@jmeg-sfy jmeg-sfy added bug Something isn't working efr32 hotfix urgent fix needed, can bypass review V1.0 labels Feb 18, 2022
@mkardous-silabs
Copy link
Contributor

PR #15365 fixes all the examples for efr32.
This PR, #15152 had added an assert when interacting with the matter stack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working efr32 hotfix urgent fix needed, can bypass review V1.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants