Commit Graph

17107 Commits (822bf98c11c5b45ec9089eaab04503411d9e37c5)

Author SHA1 Message Date
Deepika 5876114f23 Use Cortex M23 specific header files and interrupts
1. Update use of correct header files
2. Added missing entry of M2351 device in IAR defines.
3. Removed support of ARM toolchain in targets.json
2018-07-27 13:30:04 -05:00
cyliangtw eff7974e48 Revise nu_bitutil.h for M23 2018-07-27 13:30:04 -05:00
cyliangtw a7723c4b73 Modify Nuvoton common files to avoid conflicting with master 2018-07-27 13:30:04 -05:00
cyliangtw 984576408e Add partition header file for CMSE feature 2018-07-27 13:30:04 -05:00
cyliangtw a05d449de4 Remove mbed_sdk_init_forced 1. mbed_sdk_init is called before C++ global obj constructor in OS 5 2. Refine startup file with GCC_ARM toolchain related to this modification. 2018-07-27 13:30:04 -05:00
cyliangtw 7208455b8f remove progen, not used any more 2018-07-27 13:30:04 -05:00
cyliangtw e1a9492e75 Support __vector_table instead of __vector_handlers in IAR 2018-07-27 13:30:04 -05:00
cyliangtw db10dc0207 Support GCC & IAR toolchain 2018-07-27 13:30:04 -05:00
cyliangtw d67d32d3af Sync SDH_CardDetection type to avoid GCC compiler error 2018-07-27 13:30:04 -05:00
cyliangtw 949c330229 Add one new target M2351, regard as M0+ with some V8M CPU control at first 2018-07-27 13:30:04 -05:00
Jimmy Brisson 0ac5f32579 Show Mbed 2 support in compile -S 2018-07-27 13:30:00 -05:00
David Saada 20387d41d3 Unity: Add macros for test skipping.
The TEST_SKIP and TEST_SKIP_UNLESS macros (w/ and w/o messages) allow the test
to skip the test case execution from the point the macro was called (without
failing the test).
2018-07-27 13:30:00 -05:00
Steven Cooreman 43c81dee40 Add EFM32GG11 Ethernet driver 2018-07-27 13:29:56 -05:00
Steven Cooreman f86bb29914 Add EFM32GG11_STK3701 support 2018-07-27 13:29:55 -05:00
David Saada a8d99d619f NVStore tests: Tune memory consumption; stop threads greafully
- Tune thread stack size in nvstore test using heap stats
- Stop threads gracefully instead of killing them (in multi-thread test)
2018-07-27 13:29:55 -05:00
Martin Kojtal 50bd61a4a7
Merge pull request #7518 from ARMmbed/release-candidate
Release candidate for mbed-os-5.9.3
2018-07-16 09:39:51 +02:00
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