Commit Graph

17291 Commits (mbed-os-5.9)

Author SHA1 Message Date
Cruz Monrreal II 627be9bdd6 Update Mbed version block 2018-07-15 22:54:26 -05:00
bcostm f1550aea7a stm32 lpuart: enable lse and hsi if not done 2018-07-15 22:54:26 -05:00
Jimmy Brisson 0eafe2c288 Skip target lookup in test builds.
This should allow custom targets to be transferred to each process
when building in parallel
2018-07-15 22:54:26 -05:00
jeromecoutant ddc39b33b9 STM32 LPTICKER with LPTIM minor update
Code cleaning (L0 Cube update, comment precision)
2018-07-15 22:54:26 -05:00
Deepika 62990b487d Update stats to fetch Mbed OS version info 2018-07-15 22:54:26 -05:00
Jimmy Brisson 2e0139ebc9 Tools: Correct release version "parsing" for py3 2018-07-15 22:54:26 -05:00
Jimmy Brisson c37190e525 Drop quotes from command line make 2018-07-15 22:54:26 -05:00
Jimmy Brisson e672a3e6d0 Correct cmse lib creation for the make_gcc_arm 2018-07-15 22:54:26 -05:00
Jimmy Brisson f730d491ce Fix Python3 bug with `mbed export -S` 2018-07-15 22:54:26 -05:00
Przemyslaw Stekiel 4d31fcbd0c tests-mbed_hal-lp_ticker: change implementation of the delay before deep-sleep.
Serial buffer must be flushed before entering deep sleep mode. In the test this is done by the additional delay which is implemented on the busy loop which decrements given value down to 0 (`void wait_cycles(volatile unsigned int cycles)`). This solution is not appropriate since it is very target specific and the cycles value has been already increased few times. Additionally very big number of loop cycles which is suitable for fast targets may take much longer on slower boards and results in test timeout.
It has been verified that 20ms is sufficient delay for the green-tea transmission. In this test we cannot simply use `wait_ms(20)` since this potentially may put board to sleep and wake up using lp ticker. The test re-initialzies the lp ticker(disables ticker interrupt) and this operation may break the schedule and time tracing by the upper layer. But we can use us ticker which is not affected by this test. The solution is to add a delay routine based on busy loop and us ticker only. This way are able to wait exactly 20 ms.
2018-07-15 22:54:26 -05:00
Naveen Kaje 9b224fe98f NRF52832 linker script: formatting fix 2018-07-15 22:54:26 -05:00
Naveen Kaje 31db58a6a4 Fix linker script for NRF52840/ARM 2018-07-15 22:54:26 -05:00
Hasnain Virk 5d50cf1836 Streamlining connect() API with posix like retcodes
For ABP: First call to connect() or connect(params) will return LORAWAN_STATUS_OK
         and a CONNECTED event will be sent. Any subsequent call will return
         LORAWAN_STATUS_ALREADY_CONNECTED (posix EISCONN) and no event is generated.

FOR OTAA: First call to connect() or connect(params) will return LORAWAN_STATUS_CONNECT_IN_PROGRESS
          and a CONNECTED event will be sent whenever the JoinAccept is received. If the application
          calls connect again before receiving the CONNECTED event, LORAWAN_STATUS_BUSY will be returned.
          After the CONNECTED event is dispatched, any subsequent call to connect() or connect(params) API
          will be returned with LORWAN_STATUS_ALREADY_CONNECTED.

No new parameters are accepted after the first call. The application must disconnect before making
a connect() call with new parameters.
2018-07-15 22:54:26 -05:00
Hasnain Virk 000adb03f0 Updating docs
API documentation is updated to clear how the connection related return codes will
work from now on.
2018-07-15 22:54:26 -05:00
Hasnain Virk b6fbb97892 LoRaWAN: Handling re-joining when already Joined
This is a remedy for the issue #7230.
While the device is joining, LORAWAN_STATUS_CONNECT_IN_PROGRESS is returned.
However, if the device is already joined, we will return LORAWAN_STATUS_ALREADY_CONNECTED.
2018-07-15 22:54:26 -05:00
Martin Kojtal 3950834e51 Raytac: target removal
No files to build - should not be in targets
Reverts part of the https://github.com/ARMmbed/mbed-os/pull/6178
2018-07-15 22:54:25 -05:00
Deepika 9c58d99bd7 Separate version header file to get version updates in Mbed OS 2018-07-15 22:54:14 -05:00
Mirela Chirica 5d05e443bb Cellular: Fix socket_send unit test 2018-07-15 22:53:59 -05:00
Ari Parkkila 594e5283be Cellular: Removed max_packet_size 2018-07-15 22:53:59 -05:00
Przemyslaw Stekiel b305890fc7 tests-mbed_drivers-lp_timer: change delay method
The test sometimes fails on NRF51_DK (test case: "Test: LowPowerTimer - time measurement 1 ms.") in morph tests.

The test verifies if LowPowerTimer class correctly counts elapsed time. Sometimes we got measured ~1600 us for delay 1000 us (delta 550 us).
The delay is performed using `wait_us()` function which for delays greater than or equal to 1 ms (our case) calls `Thread::wait((uint32_t)ms);`. This causes rescheduling and potentially can put board into sleep (deep sleep mode is disabled by `wait_us()`). For our test purposes we don't need rescheduling/sleep since this actions takes extra time and have influence on the time measurement accuracy.
The solution is to implement function for delay which is based on busy loop and uses us ticker. It has been verified that this solves the problem. With this fix when measurement of 1 ms is repeated 1000 times we got usually measured time equal to ~1080 us, and sometimes ~1300us (checked that this is caused by systick interrupt handling). Since this is test for drivers layer and the results are acceptable I decided to not disabling systick in the test).
2018-07-15 22:53:59 -05:00
Mirela Chirica e900d42cdf Cellular: HSI set to be source clock for WISE_1570 2018-07-15 22:53:58 -05:00
Jimmy Brisson c9308754b9 Ensure that files generated have a directory 2018-07-15 22:53:58 -05:00
Marcus Chang 5b3f54f0ef Fix linker script for NRF52840/IAR
Add missing noinit section.
2018-07-15 22:53:58 -05:00
Kevin Bracey 063092f256 Add Apache licenses to ns_hal files 2018-07-15 22:53:45 -05:00
Kevin Bracey 23cf0ed7a6 Add option to make Nanostack use global event queue 2018-07-15 22:53:45 -05:00
Marcus Chang c94bab0e6b Allow STDIO pins to be NC in NRF52 series
Prevent ASSERT from triggering when one of the STDIO pins is not
connected.
2018-07-15 22:53:45 -05:00
jeromecoutant e95291858c STM32 RTC : bypass shadow registers
- RTC_SSR for the subseconds
- RTC_TR for the time
- RTC_DR for the date

These registers were accessed through shadow registers which are synchronized with PCLK1 (APB1 clock).
They are now accessed directly in order to avoid waiting for the synchronization duration.
2018-07-15 22:53:45 -05:00
bcostm 9f73ba13e9 stm32 ticker: change th eplace where timer init in done, fix overflow issue with 16-bit timer
- Move back the 16/32bit timer initialization in HAL_InitTick() and not in us_ticker_init()
- Use ticker_read_us() and us_ticker_read() in HAL_GetTick() to fix potential overflow issue with the 16bit timer

==> These corrections allow timer, rtc, sleep, tick tests to PASS
2018-07-15 22:53:45 -05:00
bcostm fcad2a6f0a stm32 ticker: corrections in order to pass tests 2018-07-15 22:53:45 -05:00
bcostm d3e35ab118 stm32 ticker: typo corrections 2018-07-15 22:53:45 -05:00
bcostm ccb538562f stm32 ticker: change license 2018-07-15 22:53:45 -05:00
bcostm 9a480e3260 stm32 ticker: rename hal_tick.h in us_ticker_data.h 2018-07-15 22:53:45 -05:00
bcostm 92fe07f02f stm32 ticker: rename macro and update ST HAL Tick functions
- rename TIM_MST_16BIT in TIM_MST_BIT_WIDTH in order to use it directly in ticker info structure
- change HAL_InitTick() and HAL_GetTick()
2018-07-15 22:53:45 -05:00
bcostm 609ade7130 stm32 ticker: rename files and move functions
- rename hal_tick_common.c in hal_tick_overrides.c
- move 16 and 32bits timer functions in us_ticker.c
2018-07-15 22:53:45 -05:00
Jimmy Brisson 1b0f38d819 Add _RTX_ define where it's needed and used 2018-07-15 22:53:45 -05:00
Jimmy Brisson 44e2a009fd Partial revert of "CMSIS/RTX: Adapt Mbed OS to CMSIS/RTX device support scheme" 2018-07-15 22:53:45 -05:00
Karl Zhang 7474daea2d Flash API: Enable Flash api on CM3DS
Implement flash_api.c for CM3DS on MPS2+.
Because MPS2+ board has no physical flash chip, the implementation emulates
flash over SRAM.
2018-07-15 22:53:45 -05:00
Marcus Chang e44efbb68e Change NRF52 series UART to only use one SWI channel
This fixes conflicts with the SoftDevice.
2018-07-15 22:53:45 -05:00
Marcus Chang 542d7841cb Fix inconsistent SWI configuration in NRF52 series
All SWI channels except SWI0 is being used by the SoftDevice and
not only SWI1.
2018-07-15 22:53:45 -05:00
Marcus Chang a2e7424063 Remove white space in config files for NRF52 series 2018-07-15 22:53:45 -05:00
Senthil Ramakrishnan 3eaca32964 Remove error reporting for release builds 2018-07-15 22:53:45 -05:00
Senthil Ramakrishnan c5a2f3c993 Don't print error reports in release builds 2018-07-15 22:53:45 -05:00
Kimmo Vaisanen 4deeb4c18b Disable LSE for MTB_USI_WM_BN_BM_22
Current MTB_USI_WM_BN_BM_22 modules do not have OSC32_IN connected, so
external xtal is not in use.
2018-07-15 22:53:45 -05:00
Jimmy Brisson f9c25ee769 Correct string usage in version checking 2018-07-15 22:53:45 -05:00
Mirela Chirica 0d52fc3a20 Cellular: More unit tests for ATHandler's read routines 2018-07-15 22:53:45 -05:00
Mirela Chirica de2290aed6 Cellular: Fix for ATHandler's read string and hexstring NULL termination 2018-07-15 22:53:44 -05:00
Jimmy Brisson acf278af52 Add aliases to example exporter options 2018-07-15 22:53:44 -05:00
Jimmy Brisson 63a075f497 Correct -E help 2018-07-15 22:53:44 -05:00
Jimmy Brisson d6d3b51939 Correct argv usage 2018-07-15 22:53:44 -05:00
Jimmy Brisson 05bcc160c2 Simplify main function 2018-07-15 22:53:44 -05:00