Commit Graph

28079 Commits (aad53c237725c30bb68e8acee8f4e8d07a486e96)

Author SHA1 Message Date
d-kato aad53c2377 RZ_A1H: enable bootloader support 2020-01-09 16:15:50 +09:00
Martin Kojtal 40b7901cfb
Merge pull request #12217 from OpenNuvoton/nuvoton_usbd
Nuvoton: Add DEVICE_USBDEVICE detection in usbd implementation
2020-01-08 17:00:23 +01:00
Martin Kojtal 8d94d4ce92
Merge pull request #12214 from kivaisan/move_string_to_pdp_type_to_cellularcontext
Cellular: Move string_to_pdp_type method to CellularContext
2020-01-08 16:59:58 +01:00
Martin Kojtal af03f839e2
Merge pull request #10959 from OpenNuvoton/nuvoton_m2351_psa
M2351: Support TFM level 1
2020-01-08 16:09:35 +01:00
Martin Kojtal c42125f890
Merge pull request #12151 from hugueskamba/hk-nrf-fix-baremetal-build
NRF5x: Fix baremetal linker error
2020-01-08 14:41:26 +01:00
Martin Kojtal 4b0c4a073c
Merge pull request #12216 from rvolosatovs/fix/unit-tests
Fix dl_channel tests
2020-01-08 14:04:25 +01:00
Martin Kojtal 1a6934adc4
Merge pull request #12081 from micgur01/master
Expose target_offset and header_offset parameters in targets.json
2020-01-08 14:01:57 +01:00
cyliangtw b924a922a8 Add DEVICE_USBDEVICE detection in usbd implementation to avoid compiler error on target without usb-device 2020-01-08 19:36:51 +08:00
Martin Kojtal b77f6b457e
Merge pull request #12055 from 0xc0170/fix_12054
cmsis: remove arm math
2020-01-08 12:00:54 +01:00
Roman Volosatovs 21b0463653
Fix dl_channel tests 2020-01-08 11:54:05 +01:00
Kimmo Vaisanen 0d7cc428b1 Cellular: Move string_to_pdp_type method to CellularContext
string_to_pdp_type is only used in CellularContext classes and by having
the conversion method in CellularContext it can be used to check also
the non-standard Non-IP PDP type string.
2020-01-08 12:15:51 +02:00
Martin Kojtal 6b89d16dd3
Merge pull request #12181 from michalpasztamobica/dtls_design_doc_connectivity
Add DTLS in Connectivity's design document
2020-01-07 16:41:36 +01:00
Martin Kojtal d4c2fd56a9
Merge pull request #12195 from mikaleppanen/ppp_trace_disable
Corrected PPP debug trace flagging
2020-01-07 16:41:15 +01:00
Martin Kojtal fab9e3b6c7
Merge pull request #12176 from OpenNuvoton/nuvoton_usbd
Nuvoton: Support usbd
2020-01-07 16:38:39 +01:00
Martin Kojtal c8ac1ef2b8
Merge pull request #12196 from kjbracey-arm/lwipclose
LWIP: don't pbuf_free(NULL) on socket close
2020-01-07 15:56:13 +01:00
Martin Kojtal 3e790cc9ab
Merge pull request #12065 from AriParkkila/cell-fea-nidd
Non-IP socket implementation for NIDD over CP
2020-01-07 15:55:15 +01:00
Martin Kojtal d07d7ca722
Merge pull request #12185 from paul-szczepanek-arm/db-delete
BLE: fix pointer not set to null on delete
2020-01-07 14:56:04 +01:00
Martin Kojtal 9d16a17e7e
Merge pull request #11653 from tymoteuszblochmobica/multiple
Add  Getaddrinfo interface for multiple DNS adresses
2020-01-07 14:53:36 +01:00
Martin Kojtal 2d3c4022ae
Merge pull request #12193 from kivaisan/move_event_thread_to_cellulardevice
Cellular: Move cellular event queue thread ownership to CellularDevice
2020-01-07 14:04:55 +01:00
Ari Parkkila 7899fead59 Cellular: Refactor CellularBase from AT_ControlPlane_netif 2020-01-07 04:03:33 -08:00
Martin Kojtal 39daa5fd77
Merge pull request #12109 from hugueskamba/hk-replace-rawserial-usage
Replace RawSerial as it has been deprecated
2020-01-07 12:59:57 +01:00
Kevin Bracey 988ef099c7 LWIP: don't pbuf_free(NULL) on socket close
`pbuf_free(NULL)` causes an `LWIP_ASSERT`. Make the call conditional.

Fixes #12184
2020-01-07 13:20:14 +02:00
Martin Kojtal 5d71e69f6a
Merge pull request #12186 from mprse/fix_for_issue_12172_stm_serial
STM serial init: Set pin function only if pin is defined (not NC)
2020-01-07 11:38:00 +01:00
Martin Kojtal 7d8eec4b4d
Merge pull request #12155 from hugueskamba/hk-baremetal-lpc11uxx-fix
LPC11U24: Fix baremetal build and runtime error
2020-01-07 11:28:10 +01:00
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