Commit Graph

18957 Commits (31dcbc654007988927d98a4ad53b35b37f03b644)

Author SHA1 Message Date
Ashok Rao 31dcbc6540 Removing default flow control for BL652 2018-10-19 11:46:55 +01:00
Markus Siglreithmaier 442ec4a14f STM32L4: Use HAL layer functions for sleep implementation 2018-10-19 11:46:55 +01:00
Markus Siglreithmaier 103fa52818 STM32L4: Fix sleep implementation
Correctly detect and handle the low power run mode when entering and exiting sleep mode.

The generic `hal_sleep` implementation tries to exit LPR mode always, resulting in a spin-loop during a critical section (disabled IRQ).
The new approach returns from LPR to Run mode if enabled (LPR bit set), enters sleep, and resets to the original state on wakeup (WFI).
2018-10-19 11:46:55 +01:00
Deepika 3ec1f7c632 Add required header file and namespace element instead add all 2018-10-19 11:46:55 +01:00
Deepika 758c37e4a8 Version check not needed as driver in part of mbed-os 2018-10-19 11:46:55 +01:00
jeromecoutant 266dff0f37 STM32L1 ADC update for internal channels 2018-10-19 11:46:55 +01:00
ccli8 d9d737f67c Update secure library/executable
1. Remove hal_sleep/hal_deepsleep from secure library
2. Add CLK_Idle_S/CLK_PowerDown_S
2018-10-19 11:46:55 +01:00
ccli8 0faad50f2c Fix hal_deepsleep with serial_can_deep_sleep
Add secure functions CLK_PowerDown_S/CLK_Idle_S
2018-10-19 11:46:55 +01:00
ccli8 bb3875049c Fix serial corruption due to deep sleep
Prevent deep sleep when there is still any character being transmitted on the UART.
This allows tickless to be safely enabled.
2018-10-19 11:46:55 +01:00
ccli8 d8b35fe41d Fix HAL sleep test failure with lp_ticker
Replace wait_us with nu_busy_wait_us in lp_ticker since wait_us is not allowed in sleep test
which would suspend us ticker layer on which wait_us relies. nu_busy_wait_us is implemented
by calling us ticker HAL API directly rather than relying on us ticker layer.
2018-10-19 11:46:55 +01:00
ccli8 faa7c90543 Add nu_delay_cycle_x4
nu_delay_cycle_x4 is a replacement for wait_us when us ticker is not available.
2018-10-19 11:46:55 +01:00
ccli8 9f1b4ed967 Add nu_busy_wait_us
nu_busy_wait_us is a replacement for wait_us when intermediary us ticker layer is disabled.
2018-10-19 11:46:55 +01:00
ccli8 d9d506e1fa Move nu_countdown_init/expired/free implementations to nu_timer.c from nu_timer.h 2018-10-19 11:46:55 +01:00
Naveen Kaje 099d0500ef NRF52: serial_api: Use polling for putc
There are scenarios where putc is called within a critical section, e.g
to log ASSERTs in early initialization code. The interrupts being
disabled here prevents the handlers for the UARTE from executing.
This breaks the tx_in_progress flag based approach. The tx_in_progress
never gets reset. Poll on the TXDRDY instead.

It can be recreated with a simple program as shown here:

*************** Current Behavior ****************
++ MbedOS Error Info ++
Error Status: 0x80FF0100 Code: 256 Module: 255
Error Message: F

************** With Fix *************************

++ MbedOS Error Info ++
Error Status: 0x80FF0100 Code: 256 Module: 255
Error Message: Fatal Run-time error
Location: 0x2C0A9
Error Value: 0x0
Current Thread: Id: 0x20005520 Entry: 0x30EBF StackSize: 0x1000 StackMem: 0x20004520 SP: 0x20005490
For more info, visit: https://armmbed.github.io/mbedos-error/?error=0x80FF0100
-- MbedOS Error Info --
nrf failure at .\main.cpp:22
***************************************************
2018-10-19 11:46:55 +01:00
Mahesh Mahadevan 455b44bd0f MIMXRT1050_EVK: Add RTC support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-19 11:46:55 +01:00
Thomas Kemmer 90253ef7f5 Use high resolution time for Timer::read(). 2018-10-19 11:46:55 +01:00
Andrew Leech 6334e71cc3 nrf: allow target.mbed_ram_start and target.mbed_ram_size to override settings in linker 2018-10-19 11:46:55 +01:00
Andrew Leech 47c14328cd Ensure target bootloader settings can be overridden in mbed_app.json Values like `target.mbed_rom_start` were being replaced by None and then ignored. 2018-10-19 11:46:55 +01:00
Jenny Plunkett 384257d49c Remove reference to "mBed"
Removed another reference to "mBed"

Another "mBed"
2018-10-19 11:46:55 +01:00
alrodlim 61cda7eda9 Move I2C pins definition so that A4 and A5 are defined before using them 2018-10-19 11:46:55 +01:00
alrodlim 6c800b3e4e fixed pin names of I2C pins 2018-10-19 11:46:55 +01:00
David Saada d00224ea33 Fix is_valid_erase function to use get_erase_size with address 2018-10-19 11:46:55 +01:00
Wajahat Abbas 861d649a7e corrected a typo in AT_CellularPower::opt_power_save_mode 2018-10-19 11:46:55 +01:00
Deepika 025af303ef Refactor circular buffer test to platform folder 2018-10-19 11:46:55 +01:00
Deepika add5b013a5 Replace modulo op with compare/reset op 2018-10-19 11:46:55 +01:00
Cruz Monrreal c53d51fe92
Merge pull request #8341 from ARMmbed/release-candidate
Release candidate for mbed-os-5.10.1
2018-10-08 12:47:44 -05:00
adbridge 763f0f4107 Update Mbed version block 2018-10-08 15:29:20 +01:00
Juho Eskeli 7b13cea74e Reduce heap size on stm32f207 2018-10-08 15:29:18 +01:00
Juhani Puurula cb545f15b0 Nanostack MAC tester: updated README.md 2018-10-08 15:29:18 +01:00
Juhani Puurula 3d226eaf5e Skip the Nanostack MAC tester 2018-10-08 15:29:18 +01:00
Juhani Puurula b015264ae8 mac_commands.cpp: fix wait command 2018-10-08 15:29:18 +01:00
Juhani Puurula 95365844db Enabled trace, added KW24D default driver 2018-10-08 15:29:18 +01:00
Juhani Puurula 2d20f1f74a Nanostack MAC tester: changed mbed_trace_array to mbed_print_array 2018-10-08 15:29:18 +01:00
Juhani Puurula 05e202fc56 Nanostack MAC testcases: removed running tests directly 2018-10-08 15:29:18 +01:00
Juhani Puurula 7e2bc492ee Renamed MAC tester config 2018-10-08 15:29:18 +01:00
Juhani Puurula 360ba9e392 Added nanostack mac tester and testcases 2018-10-08 15:29:18 +01:00
Russ Butler 964b77ce1e Rename device option STCLK_OFF_DURING_SLEEP
Rename STCLK_OFF_DURING_SLEEP to SYSTICK_CLK_OFF_DURING_SLEEP to avoid
confusion with the STmicroelectronics.
2018-10-08 15:29:18 +01:00
Moran Peker eb76a2419c Disable MBEDTLS_SHA256_ALT on STM targets. 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm d07432174e assert instead of error 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm 120f0e987b remove pointless cast 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm 3f2b8882f2 fix namespace errors 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm 92434ac77d change namespace 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm 98ddcc1955 removed unusused header 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm 637fba671a moved SimpleEventQueue 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm fe09b9195b check WsfBufAlloc 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm e47117ab1a replace malloc with cirdio buffer allocation 2018-10-08 15:29:18 +01:00
jeromecoutant 75eab8be70 STM32 LPTICKER : set default LPTICKER_DELAY_TICKS to 1
For both implementation, RTC and LPTIM, there is some delay in the
set_interrupt function due to HW constraints.

Value has been set to 4 for STM32L0,
because SystemClock is slower than other families.
2018-10-08 15:29:18 +01:00
jeromecoutant db7b22878c STM32 LPTICKER with RTC : Fix tickless and lp wrapper
When both tickless and LPTICKER_DELAY_TICKS are enabled some ST
devices randomly get stuck sleeping forever. This is because the
wake up time passed to the rtc is ignored if the previous match is
about to occur. This causes the device to get stuck in sleep.

This patch prevents matches from getting dropped by the rtc by
deactivating the rtc wake up timer before setting a new value.

Events leading up to this failure for the RTC:

-1st call to lp_ticker_set_interrupt
-delay until ticker interrupt is about to fire
-2nd call to lp_ticker_set_interrupt
-interrupt for 1st call fires and match time for 2nd call is dropped
-LowPowerTickerWrapper gets ticker interrupt but treats it as a
 spurious interrupt and drops it since it comes in too early
-device enters sleep without a wakeup source and locks up
2018-10-08 15:29:18 +01:00
jeromecoutant 3d0acbc866 STM32 LPTICKER with LPTIM : Fix tickless and lp wrapper
This fixes issue with mbed_hal/lp_ticker/lp_ticker_early_match_race_test
2018-10-08 15:29:18 +01:00
jeromecoutant 357e126d56 STM32L0 internal channel ADC_TEMP
Temperature measurement was not stable
2018-10-08 15:29:18 +01:00