Skip to content

LoRa SX1276 LoRaWAN Sleep Mode Low Power Fix #15180

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

Closed
wants to merge 10 commits into from

Conversation

hallard
Copy link
Contributor

@hallard hallard commented Nov 26, 2021

Summary of changes

Fix sx1276 #227
May be same patch could be applied to #14224 (sx1272 and sx126x) but I have nothing to test

Impact of changes

Management of TCXO is now working fine
return DIO mapping of sx1276 to low power state

Migration actions required

Documentation


Pull request type

[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[x] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers

@0xc0170 , @jeromecoutant , @MarceloSalazar

@ciarmcom ciarmcom added the release-type: patch Indentifies a PR as containing just a patch label Nov 26, 2021
@ciarmcom
Copy link
Member

@hallard, thank you for your changes.
@0xc0170 @MarceloSalazar @jeromecoutant @ARMmbed/mbed-os-maintainers please review.

Copy link
Collaborator

@jeromecoutant jeromecoutant left a comment

Choose a reason for hiding this comment

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

Maybe a squash could be nice :-)

jeromecoutant and others added 9 commits November 29, 2021 11:50
for custom boards like RAK811
… destructed. Fixed by removing timeout event from event queue on close/destruction.
Fix the following issues in TF-M to avoid emergence in the future:
1.  Enable initial stack not located in SRAM bank0
    On reset, only SRAM bank0 is enabled. And SRAM bank1/2 will be enabled in immediately following SystemInit().
    When initial stack is located in SRAM bank1/2, we will meet trouble because SystemInit() itself needs to use initial stack.
    To conquer the dilemma, we add preceding code in front of original Systeminit(), which is responsible for enabling SRAM bank1/2 and guarantees no using initial stack.
2.  Fix sector maps of internal/external (SDH) Flash are incompatible, caused by TF-M's MCUboot port.
    This is done by adapting external (SDH) Flash sector size to internal Flash's.
3.  Enlarge firmware upgrade scratch size. There are two advantages:
    (1) Get around MCUboot limit which requires scratch size not smaller than image trailer size
    (2) Improve wear leveling for the scratch area
@hallard
Copy link
Contributor Author

hallard commented Nov 29, 2021

looks like still not expert of rebase/squash I suggest applying Merge/Squash when merging instead it becomes worst if I try again

author Charles <[email protected]> 1637881721 +0100
committer Charles <[email protected]> 1638183821 +0100

parent bfa4f12
author Charles <[email protected]> 1637881721 +0100
committer Charles <[email protected]> 1638183722 +0100

Fixe Low Power high consumption
Check TCXO available
added TCXO startup delay

STM32L1: add support of MCU_STM32L151xB

for custom boards like RAK811

Allow STM32F7 targets without Ethernet

Support different STM32F7 flash configurations

Support missing SPI6 on STM32F7

Add STM32F722ZE target

DTLSSocket handshake timeout calls object functions even if object is destructed. Fixed by removing timeout event from event queue on close/destruction.

B_U585I_IOT02A supports OSPI

M2354: Fix potential issues in TF-M

Fix the following issues in TF-M to avoid emergence in the future:
1.  Enable initial stack not located in SRAM bank0
    On reset, only SRAM bank0 is enabled. And SRAM bank1/2 will be enabled in immediately following SystemInit().
    When initial stack is located in SRAM bank1/2, we will meet trouble because SystemInit() itself needs to use initial stack.
    To conquer the dilemma, we add preceding code in front of original Systeminit(), which is responsible for enabling SRAM bank1/2 and guarantees no using initial stack.
2.  Fix sector maps of internal/external (SDH) Flash are incompatible, caused by TF-M's MCUboot port.
    This is done by adapting external (SDH) Flash sector size to internal Flash's.
3.  Enlarge firmware upgrade scratch size. There are two advantages:
    (1) Get around MCUboot limit which requires scratch size not smaller than image trailer size
    (2) Improve wear leveling for the scratch area

Update Mbed version block

Fixe Low Power high consumption

Fix CI

added TCXO startup delay
@hallard
Copy link
Contributor Author

hallard commented Nov 29, 2021

Replaced by #15181

@mergify mergify bot removed needs: review component: connectivity release-type: patch Indentifies a PR as containing just a patch labels Nov 29, 2021
@hallard hallard deleted the LORA_SX1276_LP_Fix branch July 3, 2022 17:25
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.

6 participants