Commit Graph

28111 Commits (c53d2f119800b87a4e9997ac0b55f575689bef8b)

Author SHA1 Message Date
Martin Kojtal b943b5f4db
Merge pull request #12179 from jamesbeyond/update_ble
TESTS: Update testing of examples in mbed-os
2020-01-07 11:25:19 +01:00
Mika Leppänen 9e41f1fc7d Corrected PPP debug trace flagging
Some parts of PPP debug traces were enabled also on non-debug builds.
Now they are correctly disabled. Corrected also compiler warnings
that became visible when trace macros were flagged (if clauses without
brackets).
2020-01-07 12:07:50 +02:00
Martin Kojtal 0f5c3f0b37
Merge pull request #12189 from dustin-crossman/cy8cproto_062_4343w-baudrate-fix
Removed hardcoded CY8CPROTO_062_4343W bt baudrate limit.
2020-01-07 11:04:43 +01:00
Martin Kojtal e666848f07
Merge pull request #12194 from juhhei01/socket_api_fix
Nanostack Socket event handler fix
2020-01-07 11:00:28 +01:00
Martin Kojtal 244422d470
Merge pull request #12188 from rajkan01/greentea_test_bug_fix
Greentea test :Added the print in the exception handler
2020-01-07 09:28:25 +01:00
Ari Parkkila 4b3ef73333 Cellular: Fix astyle 2020-01-06 22:35:53 -08:00
Ari Parkkila 27024b34e3 Cellular: Add NIDD over CP socket tests 2020-01-06 22:35:18 -08:00
Ari Parkkila 85baad850f Cellular: Add NIDD for U-blox/N2XX 2020-01-06 22:35:18 -08:00
Ari Parkkila f695e278ea Cellular: Add NIDD for Quectel/BC95 2020-01-06 22:35:18 -08:00
Ari Parkkila 033402d597 Cellular: Change CellularNonIPSocket to poll before timeout 2020-01-06 22:35:18 -08:00
Ari Parkkila f4158ca00e Cellular: Change ATHandler debug print levels 2020-01-06 22:35:18 -08:00
Ari Parkkila 913cbd96a6 Cellular: Change 3GPP TS 27.007 NIDD to async
Add a missing license header.
Remove semaphores and add +CRTDCP to support async operation.
Fix delete context and disconnect to execute just once.
Add support for NONIP PPD type.
Change CellularNetwork::clear() to virtual so it can be overridden.
2020-01-06 22:35:18 -08:00
Ari Parkkila 972d8a6107 Cellular: Add count/dequeue methods in CellularList 2020-01-06 22:33:50 -08:00
Ari Parkkila 7374b22191 Cellular: Change CellularNonIPSocket to singleton 2020-01-06 22:33:49 -08:00
Ari Parkkila feee2a234e Cellular: Fix Non-IP of Quectel/BG96 modem driver
Add missing license headers.
Remove semaphores to allow async operation.
Change hex format to allow binary payload.
Limit payload size to 100 bytes.
Fix missing plus char at +QCFGEXT.
2020-01-06 22:33:49 -08:00
Kimmo Vaisanen 6c647104c7 Cellular: Move cellular event queue thread ownership to CellularDevice
Earlier CellularDevice has owned event queue used by cellular (state machine and ATHandler for example),
but the thread used to dispatch the queue has been owned by state machine.

This commit moves the event queue thread to CellularDevice so now the ownership of cellular event queue
is in one place.
2020-01-07 08:28:30 +02:00
Hugues Kamba dbaeeaf758 Replace RawSerial instances as it has been deprecated 2020-01-06 15:48:49 +00:00
cyliangtw 2764f481dd NANO130 SRAM 16KB can't afford usb-msd test, to skip this test 2020-01-06 19:12:00 +08:00
cyliangtw 95be7da860 Add CLKSEL0_USBSEL_HIRC48 in m2351_clk.h 2020-01-06 19:08:52 +08:00
Hugues Kamba 15bf72e982 LPC11U24: Fix baremetal build and runtime error
* Add `USTICKER` support for `LPC11U24`.
* Add `tickless-from-us-ticker` and `boot-stack-size` overrides.
2020-01-06 08:47:13 +00:00
Chun-Chieh Li 22e4f93400 [M2351] Add pre-built secure images for PSA 2020-01-06 15:55:01 +08:00
Chun-Chieh Li fc60d1f4bc [M2351] Change memory partition for PSA
1. Change secure/non-secure ROM to 240KiB/272KiB
2. Change secure/non-secure RAM to 64KiB/32KiB
2020-01-06 15:55:01 +08:00
ccli8 9f88fce50e [M2351] Support secure/non-secure combined build for PSA
Support secure/non-secure combined build for PSA target:
1.  In secure post-build, deliver built secure image to TARGET_NU_PREBUILD_SECURE
    directory.
2.  In non-secure post-build, merge non-secure image with secure image saved in
    TARGET_NU_PREBUILD_SECURE directory.
3.  In non-secure post-build, user can also drop secure image saved in
    TARGET_NU_PREBUILD_SECURE directory and provide its own by adding the line below
    in mbed_app.json:
    "target.extra_labels_remove": ["NU_PREBUILD_SECURE"]
2020-01-06 15:55:01 +08:00
Chun-Chieh Li c9b4474d50 [M2351] Merge secure idle/powerdown sequences into one
Merge SYS_UnlockReg_S()/CLK_Idle_S() or CLK_PowerDown_S()/SYS_LockReg_S()
into nu_idle_s() or nu_powerdown_s() when they are available.
2020-01-06 15:55:01 +08:00
Chun-Chieh Li a0a1c4d52c [M2351] Override NS interface by locking kernel scheduler
Lock kernel scheduler rather than mutex to guarantee serialization of NS
secure calls
2020-01-06 15:55:01 +08:00
ccli8 dec84ede7e [M2351] Enforce locked entry into TFM for platform-specific NSC calls
On M2351, some spaces like SYS/CLK are hard-wired to secure and cannot change.
To access these spaces from non-secure world, we must provide platform-specific NSC
functions. With TFM introduced, we must synchronize NSC calls into TFM to keep TFM
in sync instead of straight NSC calls. To achieve this goal, we go with the following
approach:

1. Like PSA APIs, enforce locked entry through tfm_ns_lock_dispatch().
2. Run platform-specific secure functions in default secure partition, in which SYS/CLK
   spaces have been configured to be accessible.
2020-01-06 15:55:00 +08:00
ccli8 ad80ed17fc [M2351] Change default stdio-baud-rate to 115200 2020-01-06 15:55:00 +08:00
ccli8 41d95ef2fb [M2351] Support TFM level 1 2020-01-06 15:55:00 +08:00
ccli8 76a029e88d [M2351] Support initializing multiple .data/.bss sections with GCC_ARM 2020-01-06 15:54:59 +08:00
ccli8 db11eef0bc [M2351] Remove draft uvisor code with GCC_ARM
uVisor is deprecated since mbed-os 5.10, so remove related code with it.
2020-01-06 15:54:59 +08:00
ccli8 1aca8a5b56 [M2351] Make exported NSC symbols consistent across toolchains
This idea comes from TFM.
2020-01-06 15:54:59 +08:00
Chun-Chieh Li 85dfc1a971 TFM: Change NS lock functions to weak
Default NS lock functions use mutex to guarantee serialization into secure world.
But this mechanism doesn't support pre-rtos and interrupt-disabled.
This commit changes these functions to weak so that platform can override them to provide another mechanism.
This approach is just what TF-M repository is adopting.

https://review.trustedfirmware.org/c/trusted-firmware-m/+/1460
2020-01-06 15:46:09 +08:00
Dustin Crossman dbedc86c06 Removed hardcoded CY8CPROTO_062_4343W bt baudrate limit. 2020-01-03 16:46:00 -08:00
Rajkumar Kanagaraj 504ef7e7e1 Incorporated the review comment 2020-01-03 10:13:39 -08:00
Rajkumar Kanagaraj e5c6254372 Greentea test :Added the print in the exception handler 2020-01-03 09:36:26 -08:00
Juha Heiskanen b71d5edd38 Nanostack Socket event handler fix
SOCKET_TX_DONE not generate event signal anymore for SOCKET_MODE_DATAGRAM.
Event handler try to read socket which is not necessary in that case.
2020-01-03 18:24:12 +02:00
Martin Kojtal 078f71d72a nuvoton: remove dsp math from bitutil file 2020-01-03 15:25:02 +00:00
Martin Kojtal 7fd637b66b
Merge pull request #12095 from NXPmicro/Update_MXRT_SDK6
Update MXRT1050 to SDK 6.0
2020-01-03 15:22:13 +00:00
Hugues Kamba 6afca2460e NRF5x: Fix baremetal linker error
DEBUG_NRF_USER gets defined for build profiles (develop, debug)
which do not define NDEBUG (see nrf_assert.h). Therefore the definition
of the function should also be visible if DEBUG_NRF_USER is defined.
2020-01-03 15:14:09 +00:00
Veijo Pesonen 9763ad3b2d DataFlashBlockDevice: Makes default configuration to use mbed_lib.json settings
DataFlashBlockDevice parameters come from mbed_lib.json if not provided
explicitly.
2020-01-03 15:31:01 +02:00
Veijo Pesonen 67676dc123 SPIFReducedBlockDevice: Makes default configuration to use mbed_lib.json settings
SPIFReducedBlockDevice parameters come from mbed_lib.json if not provided
explicitly.

Introduced an app config file for running filesystem tests with RSPIF
block device
2020-01-03 15:30:13 +02:00
Veijo Pesonen 23f87877a1 SPIFBlockDevice: Makes default configuration to use mbed_lib.json settings
SPIFBlockDevice parameters come from mbed_lib.json if not provided
explicitly.

Introduced an app config file for running filesystem tests with SPIF
modules
2020-01-03 15:28:41 +02:00
Veijo Pesonen 3be2b8bf12 QSPIFBlockDevice: Makes default configuration to use mbed_lib.json settings
QSPIFBlockDevice parameters come from mbed_lib.json if not provided
explicitly.

Introduced an app config file for running filesystem tests with QSPIF
modules
2020-01-03 15:25:40 +02:00
Veijo Pesonen 803ae3444d SDBlockDevice: Makes default configuration to use mbed_lib.json settings
SDBlockDevice parameters come from mbed_lib.json if not provided
explicitly.

Introduced an app config file for running filesystem tests.
2020-01-03 15:25:40 +02:00
Martin Kojtal 83101170a3
Merge pull request #12167 from dustin-crossman/pr/cypress_target_update
Update Cypress Targets and Assets
2020-01-03 13:15:28 +00:00
Przemyslaw Stekiel 79d16ae8f7 STM serial init: Set pin function only if pin is defined (not NC) 2020-01-03 14:14:26 +01:00
cyliangtw 115520a7b8 Add SPDX identifiers in Nuvoton USBD files 2020-01-03 20:40:47 +08:00
cyliangtw eab8555fc8 Support NUC472 with USB 2.0 only and set M487 USB1.1 in default 2020-01-03 20:40:46 +08:00
cyliangtw 4cddc5de25 Add M453 USBD 2020-01-03 20:40:45 +08:00
cyliangtw 6612ee8460 Set NANO130 CLK as 48 MHz for USBD support 2020-01-03 20:40:44 +08:00