Commit Graph

25558 Commits (eda75fd02a27d0d26bbed4953abb19ed778a5a8c)

Author SHA1 Message Date
Mahesh Mahadevan ed8fc97388 Fix ANALOGIN support for LPC55S69
1. Update to handle 12-bit resolution
2. Properly handle the pin configuration
3. Update the pin setup to handle the ADC B channel

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-08-23 11:37:41 +01:00
Ganesh Ramachandran 918519fb62 Added new features to TMPM46B 2019-08-23 11:37:41 +01:00
Lin Gao acd1d51a77 Cosmetic changes to incorporate review feedback 2019-08-23 11:37:41 +01:00
Lin Gao 4b32d29015 Fix a build break with ARM compiler 2019-08-23 11:37:41 +01:00
Lin Gao a968c041e5 Implement PWMOUT 2019-08-23 11:37:41 +01:00
Lin Gao 2334d5a3f1 Added missing pinmap definitions. Fixed target JSON config to avoid treating cc3220sf a target 2019-08-23 11:37:41 +01:00
Lin Gao e628e5a5c8 Added CC3220 related changes to tools 2019-08-23 11:37:41 +01:00
Lin Gao 42c4d840c2 Add CC3220SF_Launchxl to Mbed OS 2019-08-23 11:37:41 +01:00
Veijo Pesonen 9e6e442ec6 changes the default TDBStore location
Thus far the default position has been after the application plus two
spare sectors. For simplicity and to have a predictable location for the
TDBStore with the default configuration the location is now switched to
the end of the flash. Two last sectors to be exact.
2019-08-23 11:37:41 +01:00
Veijo Pesonen 9dc59c4428 Allows having KVStore in internal and update image in external flash
Fixes a bug where it has not been possible to have KVStore in internal
flash while an update image image has been kept in external storage.
2019-08-23 11:37:41 +01:00
paul-szczepanek-arm fdbbf7bc8a fix recursive call 2019-08-23 11:37:41 +01:00
Olli-Pekka Puolitaival ff08d50916 Python3 fixes 2019-08-23 11:37:41 +01:00
int_szyk 555f86548a tweak atomic_test timeout 2019-08-23 11:37:41 +01:00
Chun-Chieh Li 027007110c Enlarge LPTICKER_DELAY_TICKS for safe
On Nuvoton targets, lp_ticker_set_interrupt(...) needs around 3 lp-ticker
ticks to take effect. It may miss when current tick and match tick are very
close (see hal/LowPowerTickerWrapper.cpp). Enlarge LPTICKER_DELAY_TICKS to
4 from 3 to address this boundary case.
2019-08-23 11:37:41 +01:00
Olli-Pekka Puolitaival c68bd37a96 Python3 fixes 2019-08-23 11:37:41 +01:00
Chun-Chieh Li 6b4745209e Fix mbedmicro-rtos-mbed-systimer/Wake up from deep sleep failing
This test requires total latency (tot = h/w + s/w) (wakeup from deepsleep) be
under 1ms. To check the issue, measure total latency on Nuvoton targets:

TARGET      EXP(us)     EXP+TOL(us) ACT(us)
NANO130     42000       43000       42939
NUC472      42000       43000       42236
M453        42000       43000       43274
M487        42000       43000       42877
M2351       42000       43000       43213

Checking h/w spec, h/w latency (wakeup time from normal power-down mode) on
M487/M2351 is just 1us (n/a on other targets). S/W latency plays the major
part here.

S/W latency relies on system performance. On Nuvoton targets, 'LPTICKER_DELAY_TICKS'
possibly complicates the test. Anyway, to pass the test, add extra 1ms latency
(deep-sleep-latency) in targets.json for Nuvoton targets.
2019-08-23 11:37:41 +01:00
Michal Paszta 31e2356a0b FATFileSystem::stat() enabled for all compilers
Macro which restricted compilation to GCC_ARM is removed.
Existing read_write() test is amended to call stat() and check that correct size is returned.
2019-08-23 11:37:41 +01:00
Laurent Meunier 47b63e9b72 __cplusplus guard fixed pwmout_device.h for STM32 families
This bug prevented using this header in cpp code directly.
2019-08-23 11:37:41 +01:00
int_szyk 0a50a4e0fa tweak overflow_protect() common_tickers() 2019-08-23 11:37:41 +01:00
int_szyk c82cc8f09c tweaked overflow_protect() lp_ticker() 2019-08-23 11:37:41 +01:00
Hugues Kamba 318dff4ae7 Do not ignore `features/frameworks/unity/` as it is needed by GreenTea test
The `unity` dir needs to be ignore differently.
2019-08-23 11:37:41 +01:00
Hugues Kamba 0b2b4ca042 Fix inclusion of test related directories by build tool 2019-08-23 11:37:41 +01:00
Przemyslaw Stekiel 93fe9015ca tests-mbed_hal-us_ticker: adapt to the new requirements (relax us ticker frequecy). 2019-08-23 11:37:41 +01:00
Przemyslaw Stekiel 9238e981af Relax us ticker frequency requirement.
This change is required by the Samsung S111(S5JS100). On this board timer clock used for us ticker operates at 26MHz.
According to current requirements, 8 MHz is the top limit for us ticker timer.

This change relaxes top limit to 100 MHz, but only for 32-bit timers.

Ticker common layer schedules one interrupt per timer rollover to trace elapsed time. We need to ensure that this operation is not performed too frequently. I.e. in case of 16-bit timer at 32 MHz, the timer rollover will happen after ~2 ms. This may cause that there will be no time for other tasks. That is why we increase the top limit, but only for 32-bit timers.
2019-08-23 11:37:41 +01:00
Martino Facchin be76717cf7 Add Arduino NANO33BLE 2019-08-23 11:37:41 +01:00
David Rauschenbach 378a7023c0 Define I²C related pin names for the L-Tek FF-LPC546XX target 2019-08-23 11:37:41 +01:00
cyliangtw 0eddd52999 Add Nuvoton M261 sub-family 2019-08-23 11:37:41 +01:00
Martin Kojtal 808c45062f
Merge pull request #11195 from ARMmbed/release-candidate
Release candidate for mbed-os-5.13.3
2019-08-14 11:55:15 +02:00
Martin Kojtal d587e73ab3 Cellular unittest: Fix wrong rebase - remove not valid file 2019-08-12 12:54:51 +01:00
Seppo Takalo dd1d867bac Merge pull request #11156 from artokin/nanostack_patch_for_mbed_os_5_13_x
Nanostack patch release for Mbed OS 5.13.x
2019-08-12 12:54:50 +01:00
Seth Itow ec35930848 stm32f413xh: add crash capture support for IAR 2019-08-12 12:54:49 +01:00
Seth Itow 748971d6ce stm32f413xh: add crash capture support for ARM_MICRO 2019-08-12 12:54:48 +01:00
Seth Itow cc5b134cac stm32f413xh: add crash capture support for GCC_ARM 2019-08-12 12:54:47 +01:00
Ireneusz Gaicki 5090d5c190 STM32F7: Do not generate redundant IN tokens
When STM32F746-DISCO board was being used in (unsupported) USBHost mode,
the communication was unreliable. Our investigation revealed that the
problem lied in redundant IN tokens that the host generated even though
it shouldn't. This could lead to endless high-frequency NAKs being
received from device, which caused watchdog reset as USBHost spent all
time in interrupt handlers.

In our application the clocks frequencies are:
  * HCLK = 48 MHz
  * APB1 = 6 MHz
  * APB2 = 12 MHz

We have captured the raw USB High-Speed traffic using OpenVizsla.
Without this change, when USB MSD device connected to the system
responded to IN with NAK, there were excessive IN tokens generated about
667 ns after the NAK. With this commit the IN tokens are generated no
sooner than 10 us after the NAK.

The high frequency of the IN/NAK pairs is not the biggest problem.
The biggest problem is that the USB Host did continue to send the IN token
after DATA and ACK packets were received from device - *without* any request
from upper layer (USB MSD).

The USB MSD devices won't have extra data available on Bulk IN endpoint
after the expected data was received by Host. In such case IN/NAK cycle
time is only houndreds of nanoseconds, the MCU has no time for anything else.

The problem manifested not only on Bulk endpoints, but also during
Control transfers. Example correct scenario (when this fix is applied):
  * SETUP stage
    * SETUP [host -> address 0 endpoint 0]
    * DATA0 [80 06 00 01 00 00 08 00] [CRC16: EB 94]
    * ACK
  * DATA stage
    * IN
    * NAK
    ... the IN/NAK repeated multiple time until device was ready
    * IN
    * DATA1 [12 01 10 02 00 00 00 40] [CRC16: 55 41]
    * ACK
  * STATUS stage
    * OUT
    * DATA1 ZLP
    * ACK

Without this commit, in DATA stage, after the ACK was received, the host
did send extra IN to which device responded with STALL. On bus it was:
  * DATA stage
    ...
    * IN
    * DATA1 [12 01 10 02 00 00 00 40] [CRC16: 55 41]
    * IN
    * STALL
    * IN
    * STALL
  * STATUS stage
    * OUT
    * DATA1 ZLP
    * STALL

In the fault case the next SETUP was sent only after 510 ms, which
indicates timeout in upper layer.

With this commit the next SETUP is sent 120 us after the STATUS stage ACK.
2019-08-12 12:54:47 +01:00
Szymon Szantula 5f4825c5bf __cplusplus guard fixed
This error prevented using this header in cpp code directly.
2019-08-12 12:54:46 +01:00
Maciej Bocianski b2bd371aa8 Xpresso: qspi_write fix
Due to the data buffer is loaded in two steps the whole block needs protection from being interrupted
2019-08-12 12:54:45 +01:00
Seppo Takalo 70af1a518c Zero initialise all NVStore&kvstore members 2019-08-12 12:54:45 +01:00
desmond.chen ef934aea03 Fix include path issues on NRF5x with Cordio 2019-08-12 12:54:44 +01:00
Ari Parkkila d160098651 Cellular: Add DNS servers from PDP contexts to nsapi_dns 2019-08-12 08:44:06 +01:00
Ari Parkkila 527daa0446 Fix nsapi_dns_add_server to add a server just once 2019-08-12 08:42:56 +01:00
Michal Paszta 08f77e1007 Coverity and compilation warnings fixes 2019-08-12 08:42:56 +01:00
Michal Paszta dc55dae623 Bring back SPIF module-specific debug logs
The logs are switched off by default and can be enabled with a
module-specific compile switch in mbed_app.json.

Logs brought back from PR #10501
2019-08-12 08:35:16 +01:00
Kyle Kearney 0bde671c86 Fix inout pins not functioning correctly
Update the drive mode when setting the GPIO direction.
2019-08-12 08:35:16 +01:00
desmond.chen edfdc946c3 NRF52 need to call TIMER_TASK_SHUTDOWN for current consumption 2019-08-12 08:35:16 +01:00
maclobdell a83dc21e97 fix rom start & size for psoc6 targets for 5.13 2019-08-12 08:35:15 +01:00
Maciej Bocianski 29aa19379b freescale: fix i2c_byte_read function 2019-08-12 08:32:07 +01:00
Chun-Chieh Li d8dff83fcb Nuvoton: Remove dead code nu_delay_cycle_x4(...)
Originally, nu_delay_cycle_x4(...) is borrowed from mbed test code for delay
cycle. Currently, it is not used on Nuvoton targets. If delay cycle is needed,
use wait_ns(...) instead which has strict implementation and has passed tests.
2019-08-12 08:32:07 +01:00
Leszek Rusinowicz 0fabceea00 FUTURE_SEQUANA: Add missing serial_free() implementation 2019-08-12 08:32:07 +01:00
int_szyk ef369dd926 Newline at the end of files 2019-08-12 08:32:07 +01:00
int_szyk 2e7c7f754f Astyle 2019-08-12 08:32:06 +01:00