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

Fix sleep function for NRF52. #3108

Merged
merged 2 commits into from
Oct 26, 2016
Merged

Conversation

pan-
Copy link
Member

@pan- pan- commented Oct 21, 2016

Description

An active IRQ from the FPU can prevent the micro to go to sleep, even if this
IRQ is not enabled and not implemented.
As a workaround, this patch clear the FPU IRQ before sleep is entered.

An active IRQ from the FPU can prevent the micro to go to sleep, even if this
IRQ is not enabled and not implemented. As a workaround, the FPU IRQ is cleared
before enterring sleep.
@pan-
Copy link
Member Author

pan- commented Oct 21, 2016

@nvlsianpu @anangl What do you think of this PR ?

@nvlsianpu
Copy link
Contributor

nvlsianpu commented Oct 21, 2016

I verified this against our internal fix - it's the Same. I approve this PR.

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 24, 2016

/morph test

@mbed-bot
Copy link

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 934

Build failed!

@pan-
Copy link
Member Author

pan- commented Oct 24, 2016

@0xc0170 whoops, I forgot to provide a definition for FPU_EXCEPTION_MASK.
Should be fixed now.

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 24, 2016

/morph test

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 935

All builds and test passed!

@0xc0170 0xc0170 merged commit 5c89e1f into ARMmbed:master Oct 26, 2016
@pan- pan- deleted the nrf52_sleep_clean_fpu_irq branch July 3, 2018 11:04
aisair pushed a commit to aisair/mbed that referenced this pull request Apr 30, 2024
Ports for Upcoming Targets


Fixes and Changes

2966: Add kw24 support ARMmbed/mbed-os#2966
3068: MultiTech mDot - clean up PeripheralPins.c and add new pin names ARMmbed/mbed-os#3068
3089: Kinetis HAL: Remove clock initialization code from serial and ticker  ARMmbed/mbed-os#3089
2943: [NRF5] NVIC_SetVector functionality ARMmbed/mbed-os#2943
2938: InterruptIn changes in NCS36510 HAL. ARMmbed/mbed-os#2938
3108: Fix sleep function for NRF52. ARMmbed/mbed-os#3108
3076: STM32F1: Correct timer master value reading ARMmbed/mbed-os#3076
3085: Add LOWPOWERTIMER capability for NUCLEO_F303ZE ARMmbed/mbed-os#3085
3046: [BEETLE] Update BLE stack on Beetle board ARMmbed/mbed-os#3046
3122: [Silicon Labs] Update of Silicon Labs HAL ARMmbed/mbed-os#3122
3022: OnSemi RAM usage fix ARMmbed/mbed-os#3022
3121: STM32F3: Correct UART4 and UART5 defines when using DEVICE_SERIAL_ASYNCH ARMmbed/mbed-os#3121
3142: Targets- NUMAKER_PFM_NUC47216 remove mbed 2 ARMmbed/mbed-os#3142
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants