Commit Graph

25558 Commits (eda75fd02a27d0d26bbed4953abb19ed778a5a8c)

Author SHA1 Message Date
Martin Kojtal 74d2b8e5b9 cellular: fix file permission 2019-07-11 11:40:53 +01:00
Maciej Bocianski 121f28da0f HAL I2C: adds missing DEVICE_I2C guards 2019-07-11 11:40:53 +01:00
jeromecoutant 4b751b3245 Wrong timeout value in greentea tests 2019-07-11 11:40:53 +01:00
Mirela Chirica 227013f7cc Cellular: Added handling for BG96 network PDP context deactivation 2019-07-11 11:40:53 +01:00
Laurent Meunier 4a6310a26b Add extra idle debug stack size in case all STATS are enabled 2019-07-11 11:40:53 +01:00
Kimmo Vaisanen 8a86811f1a Cellular: Fix PLMN debug trace for IAR
IAR does not allow printing from null pointer as parameter for %s. PLMN string
can be null depending on user configuration.
2019-07-11 11:40:53 +01:00
Teppo Järvelin 050af7c49c Cellular: fix athandler to use correct timeout in case of multiple urc's
Start time was not updated when multiple urc's were found and so timeout
was set to zero. Now that start time is updated, timeout is correct.
2019-07-11 11:40:53 +01:00
mudassar-ublox 6acf1d70cc Style issue fixed 2019-07-11 11:40:53 +01:00
mudassar-ublox 1e29490dba socket close callback 2019-07-11 11:40:52 +01:00
Kevin Bracey 15b103e5e5 NSAPI/lwIP: Use netconn_recv_tcp_pbuf
Slight RAM+speed efficiency improvement - read the TCP implementation's
native pbufs, rather than forcing netconn_recv to generate netbuf
wrappers for us. Saves one small lwIP heap allocation per TCP packet
received.
2019-07-11 11:40:52 +01:00
Qinghao Shi bb726b3be6 modify targets.json to trun off MPU 2019-07-11 11:40:52 +01:00
Qinghao Shi 9745d04d5f correct CMSDK for M0Plus due to MPU is not presented 2019-07-11 11:40:52 +01:00
d-kato d88af0e69d Fix bugs by optimization 2019-07-11 11:40:52 +01:00
d-kato 099617dfd9 tests-mbed_drivers-crc: Increase the task stack 2019-07-11 11:40:52 +01:00
Volodymyr Medvid 3bc1d20bc4 PSOC6: add SOFTFP to standard component list
This allows Cypress to deliver middleware libraries with
precompiled libraries for SoftFP ahd HardFP, separated by
component-specific sub-directories:

COMPONENT_SOFTFP/TOOLCHAIN_GCC_ARM/libcy_capsense.a
COMPONENT_HARDFP/TOOLCHAIN_GCC_ARM/libcy_capsense.a
2019-07-11 11:40:52 +01:00
Marten Lootsma 50eae59dd9 Changed to one more info to debug 2019-07-11 11:40:52 +01:00
Marten Lootsma 54cebf9116 Add trace logging with size of block device 2019-07-11 11:40:52 +01:00
Marten Lootsma 839b23194b Cleaned up SPIF trace log.
- Test most SPIF log to DEBUG level.
- Removed DEBUG/ERROR/INFO tags.
- Removed not needed line endings.
2019-07-11 11:40:52 +01:00
Laurent Meunier 7062d6ba7a Fixes in Sys Timer test
Do not call sleep from the test thread, but let scheduler do it.
And also include the deep sleep latency in the computation of the allowed
delta for deep sleep test case.
2019-07-11 11:40:52 +01:00
Chun-Chieh Li f62010d026 Override wait_ns to provide more accurate implementation
At high HCLK rate, M2351 cannot provide zero-wait-state flash performance. Besides,
cache is forcibly turned off for non-secure land for internal reason. We locate
'delay_loop_code' from flash to SRAM to achieve zero-wait-state performance.
2019-07-11 11:40:52 +01:00
Filip Jagodzinski 771658953b Add a top level README file for USB tests
Add setup instructions and aggregate all the info from README files
related to USB testing.
2019-07-11 11:40:52 +01:00
Przemyslaw Stekiel 39ec779ee8 Ticker common layer: run interrupt reschedule if the inserted event has already expired.
On some platforms, if low power ticker interrupt is set to very close value (e.g. timestamp < current tick + 3), then interrupt may not fire. This is one use case of lp ticker wrapper, but not all platforms use the wrapper. Some platforms cheat a bit and in this case, simply schedules interrupt a bit later. The problem has been found while working on the low-level lp ticker wrapper for ST boards which run lp ticker using LPTIM. These platforms have such limitation.

Failing test: tests-mbed_drivers-lp_timeout (Test Case: Zero delay)

In the test scenarion, the lp ticker callback is attached with 0.0 s delay in the loop. The new events are put in the front of the lp ticker event list and interrupt reschedule is performed. Usually, the new event is already expired, interrupt fires immediately and next event from the list is then scheduled (e.g. system tick). When the next event (e.g. system tick) is very close to the current time it might be scheduled a bit later (because of lp ticker limitation). Let's assume that system tick has been delayed by 3 ticks and while inserting new zero delay event, absolute system tick time on the event list has already expired. In this case, zero delay event may be added after the expired system tick event and no reschedule is performed (because the head of the list has not changed). Interrupt also didn't fire yet since it has been delayed, so after return from attach_callback(0) we are still waiting for the delayed interrupt and zero delay callback has not been called instantly.

This may also affect other platforms which use such delays (Cypress, NORDIC, etc.).

The proposition is to add extra condition while adding an event to the event list. If the inserted event is already expired, then perform reschedule immediately.
2019-07-11 11:40:52 +01:00
Przemyslaw Stekiel aba5ca72cd tests-mbed_drivers-lp_timeout: Rework "Zero delay" test case
Execute test case 100 times in loop since one run is not enough to catch possible failure.
2019-07-11 11:40:52 +01:00
Przemyslaw Stekiel f1044a7de5 tests-mbed_hal-sleep: add exception for STM LPTIM targets.
On some targets like STM family boards with LPTIM enabled an interrupt is triggered on counter rollover.
We need special handling for cases when next_match_timestamp < start_timestamp (interrupt is to be fired after rollover).
In such case after first wake-up we need to reset interrupt and go back to sleep waiting for the valid one.

On some targets like STM family boards with LPTIM enabled there is a required delay (~100 us) before we are able to reprogram LPTIM_COMPARE register back to back.
This is handled by the low level lp ticker wrapper which uses LPTIM_CMPOK interrupt. CMPOK fires when LPTIM_COMPARE register can be safely reprogrammed again.
This means that on these platforms we have additional interrupt (CMPOK) fired always ~100 us after programming lp ticker.
Since this interrupt wake-ups the board from the sleep we need to go to sleep after CMPOK is handled.

Background:
There is an errata in LPTIM specification that explains that CMP Flag
condition is not an exact match (COUNTER = MATCH) but rather a
comparison (COUNTER >= MATCH).

As a consequence the interrupt is firing early than expected when
programing a timestamp after the 0xFFFF wrap-around.

In order to
work-around this issue, we implement the below work-around.
In case timestamp is after the work-around, let's decide to program the
CMP value to 0xFFFF, which is the wrap-around value. There would anyway be
a wake-up at the time of wrap-around to let the OS update the system time.
When the wrap-around interrupt happen, OS will check the current time and
program again the timestamp to the proper value.
2019-07-11 11:40:52 +01:00
Chris Trowbridge 2679f2b6fc Moved DEFAULT_DELAY_BETWEEN_AT_COMMANDS constant to cpp file 2019-07-11 11:40:52 +01:00
Chris Trowbridge 8329fc1d52 Remove unnecessary init AT commands 2019-07-11 11:40:52 +01:00
Chris Trowbridge a214a3cb59 Modify ME910 driver to follow power on/off best practices and add custom get_context() function 2019-07-11 11:40:52 +01:00
Chris Trowbridge cbea74820e Add default soft/hard power on/off sequences for ME910 2019-07-11 11:40:52 +01:00
Chris Trowbridge 761ab4dd75 Remove ME910 trace group #define 2019-07-11 11:40:52 +01:00
Chris Trowbridge 19997f6013 Remove ME910 flow control debug message 2019-07-11 11:40:52 +01:00
Chris Trowbridge 1b28301f11 Remove unnecessary #includes 2019-07-11 11:40:52 +01:00
Chris Trowbridge 808d0c3a8e Remove default power on/off functions 2019-07-11 11:40:52 +01:00
Chris Trowbridge 179a4163d7 Add Telit ME910 driver 2019-07-11 11:40:52 +01:00
Tymoteusz Bloch 4fe355e1d2 UDPSOCKET_ECHOTEST_NONBLOCK performance improvement. 2019-07-11 11:40:52 +01:00
George Beckstein 738cbb798d Removed mbed.h global include 2019-07-11 11:40:52 +01:00
George Beckstein 680625b6b7 Removed incorrect comment 2019-07-11 11:40:52 +01:00
aglass0fmilk 689e6877ee Added spdx identifiers and fixed indentation in targets.json 2019-07-11 11:40:52 +01:00
George Beckstein 2e4f74222c Astyle fixed USBPhy_Nordic.cpp 2019-07-11 11:40:52 +01:00
George Beckstein b2193628e2 Removing systick edit from sdk_config.h 2019-07-11 11:40:52 +01:00
George Beckstein 1da7dedd7d Disabling systick 2019-07-11 11:40:52 +01:00
George Beckstein 1ba6d4d417 Revert adding USB to STM32F407VG target 2019-07-11 11:40:52 +01:00
George Beckstein 75cb07ad4f Changed formatting, check if endpoint is stalled in unstall. Added errata header 2019-07-11 11:40:52 +01:00
aglass0fmilk e81f6a5640 Fixed failure on endpoint test data toggle reset (under Windows): "Data toggle not reset when calling ClearFeature(ENDPOINT_HALT) on an endpoint that has not been halted." 2019-07-11 11:40:52 +01:00
George Beckstein 70703ec06c Added in code to fix deepsleep underflow. Nullify event handler member variable. 2019-07-11 11:40:52 +01:00
George Beckstein 655f3db0ca Lock sleep when USB is initialized
Added logic to lock deep sleep when USB is initialized to prevent malfunctioning. This is consistent with the other drivers. See PR ARMmbed/mbed-os#9879
2019-07-11 11:40:52 +01:00
George Beckstein d2fe3a2562 Autoformatted with astyle 2019-07-11 11:40:52 +01:00
George Beckstein c427760d27 Fixed some comments 2019-07-11 11:40:52 +01:00
George Beckstein 925f8cb724 Fixed IRQ_ENABLE call to IRQ_DISABLE (oops). 2019-07-11 11:40:52 +01:00
George Beckstein 8b1d8dab0e Finished compatibility changes for nrfx renaming 2019-07-11 11:40:52 +01:00
George Beckstein 75a799d817 Fixing compatibilities with new nrfx drivers 2019-07-11 11:40:52 +01:00