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
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
Ari Parkkila
4b3ef73333
Cellular: Fix astyle
2020-01-06 22:35:53 -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
ccli8
41d95ef2fb
[M2351] Support TFM level 1
2020-01-06 15:55:00 +08:00
Dustin Crossman
dbedc86c06
Removed hardcoded CY8CPROTO_062_4343W bt baudrate limit.
2020-01-03 16:46:00 -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
7fd637b66b
Merge pull request #12095 from NXPmicro/Update_MXRT_SDK6
...
Update MXRT1050 to SDK 6.0
2020-01-03 15:22:13 +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
0dbf34bf06
Merge pull request #12123 from kivaisan/refactor_variable_visibilities
...
Cellular: Refactor cellular variable visibilities
2020-01-03 12:11:52 +00:00
paul-szczepanek-arm
e16889d694
set pointer to null on delete
2020-01-03 09:00:59 +00:00
Martin Kojtal
de798c4f37
Merge pull request #12147 from ristohuhtala/mbed-coap-builder-uint-overflow
...
mbed-coap uint16 overflow fix
2020-01-02 13:51:14 +00:00
Martin Kojtal
b79da0c7f2
Merge pull request #12146 from ristohuhtala/mbed-coap-parser-buffer-overflow
...
mbed-coap buffer overflow fix
2020-01-02 13:50:52 +00:00
Martin Kojtal
b8045fb29b
Merge pull request #12164 from shuopeng-deng/pr-dev/remove-hardcoded-timeout-in-cypress-bt-code
...
Pr dev/remove hardcoded timeout in cypress bt code
2020-01-02 12:52:51 +00:00
Risto Huhtala
82caa9007e
Code review fix. Removing extra spaces
2020-01-02 13:40:50 +02:00
Martin Kojtal
6baa5e479d
Merge pull request #12020 from linlingao/fix_rat
...
Fix issues in setting radio access technology
2020-01-02 10:08:11 +00:00
Kimmo Vaisanen
f7cc3db70b
Cellular: Refactor cellular variable visibilities
...
- Earlier some variables were public even though used only internally
- Also refactored variables to the end of class definitions
- Removed duplicate _property_array from CellularDevice
- Changed _impl methods as protected
2019-12-30 10:00:24 +02:00
Risto Huhtala
1d220135c9
Update mbed-coap changelog-md with v5.1.3 information
2019-12-30 09:37:17 +02:00
Bartek Szatkowski
50455c0aa4
Remove unsupported folder
...
Mbed OS was carrying this directory for a long time. The main reason was
to enable users to benefit from some form of USB stack. Now when there
is proper implementation of USB stack in Mbed I think it's time for
unsupported directory to go. If any other functionality present in this
directory will be needed it'll need to be introduced in Mbed OS
properly.
2019-12-27 16:04:49 +01:00
Antti Kauppila
ca7848d854
Refactored away onboard_modem_api because it is not needed at all
...
All targets must implement soft_- and hard_power_on/off() functions which are practically same what onboard_modem_api offered.
These were seen as a duplicate features and therefore we removed this.
All targets involved have been updated to reflect the changes
2019-12-27 16:04:10 +01:00
Antti Kauppila
48cf631456
relocated NonIP related files to netsocket root folder
2019-12-27 16:04:10 +01:00
Anna Bridge
5bef46b71a
Merge pull request #12063 from michalpasztamobica/get_ip_address_if_fixed
...
Move get_ip_address_if() to NetworkStack and include it in multihoming test
2019-12-24 11:04:59 +00:00
Shuopeng Deng
1d54f665b9
fix code review ARs
2019-12-20 09:16:59 -08:00
Ari Parkkila
d5abab8843
Cellular: Add check for network congestion in BC95 driver
2019-12-20 04:25:26 -08:00
Jaeden Amero
cfc9e9fa65
tls: Update Mbed TLS to 2.20.0d1
2019-12-20 11:54:44 +00:00
Jaeden Amero
3cff0771b5
crypto: Update to Mbed Crypto 3.0.0d0
2019-12-20 11:54:44 +00:00
Martin Kojtal
789a193696
Merge pull request #12133 from kivaisan/limit_at_trace_length
...
Cellular: Suppress long AT traces
2019-12-20 11:24:38 +01:00
Risto Huhtala
03b12ed334
mbed-coap uint16 overflow when calculating packet data size
2019-12-20 11:34:53 +02:00
Risto Huhtala
9f0c0043d8
mbed-coap Buffer overflow when paring CoAP message
2019-12-20 10:42:54 +02:00
Shuopeng Deng
7e79623b39
Removed a hardcoded timeout in CyH4TransportDriver.cpp
...
Replaced a hardcoded timeout in CyH4TransportDriver.cpp with a cypress
hal function. The cypress PUTC hal API only blocks until data has been
send into the HW buffer, not until all data has been out of the HW
buffer. Modified an API to block untill all tx transmit is complete.
This allows the removal of a hardcoded timeout in
CyH4TransportDriver.cpp that waits for data int the HW buffer to be
sent.
2019-12-19 15:35:38 -08:00
Lin Gao
0bc8f4f726
Revert BUFF_SIZE fix, to be fixed in another PR. Add missing property entries
2019-12-19 13:45:30 -06:00
Lin Gao
c8524c25be
add config option and property to choose automatic fallback for PLMN manual operator selection
2019-12-19 11:26:13 -06:00
Lin Gao
d5d4520d62
Implement set_access_technology_impl for Telit ME910
2019-12-19 11:23:30 -06:00
Lin Gao
a5a9683348
Change AT+COPS mode to manual first then fall back to auto to improve reliability. Fix a syntax error when RAT is set
2019-12-19 11:23:30 -06:00
Lin Gao
9e17653723
Increase BUFF_SIZE to avoid error in AT response when debug is turned on
2019-12-19 11:21:14 -06:00
Anna Bridge
c5199677cb
Merge pull request #12132 from michalpasztamobica/lwip_remove_unused_mbox_configs
...
LWIP: Remove unused MBOX configs
2019-12-19 16:41:22 +00:00
Kimmo Vaisanen
f5ef066055
Cellular: Suppress long AT traces
...
When AT traces are enabled and very long AT commands are traced,
system can easily go to unwanted state. Therefore the length of the AT
traces is limited to DEBUG_MAXLEN (currently 60 characters).
This commit fixes read_hex_string, read_bytes and write to use this
limitter.
2019-12-19 09:54:23 +02:00
Michal Paszta
02a23e50ba
LWIP: Remove unused MBOX configs
...
The configs have never been used and LWIP just uses its own settings.
2019-12-18 12:27:07 +02:00
Ari Parkkila
31bd1a795b
Cellular: Fix Gemalto driver to handle remote peer closed
2019-12-18 01:37:53 -08:00
Ari Parkkila
89b66465c2
Cellular: Fix Gemalto/Cinterion driver
2019-12-18 01:10:51 -08:00
Anna Bridge
81d4a72359
Merge pull request #12120 from mtomczykmobica/ONME-4433
...
ONME-4433 SocketAddress::operator== should also check port
2019-12-17 16:43:19 +00:00
Anna Bridge
eac7d30ca5
Merge pull request #12114 from AriParkkila/cell-dns-zero
...
Cellular: Fix to not use all zero address for DNS
2019-12-17 16:41:39 +00:00
Anna Bridge
309183420b
Merge pull request #12111 from rajkan01/feature_feof_disable
...
Microlib: Disable feof function usage in general filesystem test
2019-12-17 16:36:54 +00:00
Anna Bridge
e28daf7c84
Merge pull request #12110 from AnttiKauppila/cp_recv_len
...
Moved CP Max recv len into mbed_lib.json
2019-12-17 16:28:37 +00:00
Anna Bridge
298f3f22b7
Merge pull request #12088 from AriParkkila/cell-cops
...
Cellular: Fix AT command for COPS manual network selection
2019-12-17 16:24:28 +00:00
Martin Kojtal
e2ee3817be
Merge pull request #12108 from juhhei01/patch-1
...
Wi-sun network event handler update
2019-12-17 10:11:29 +01:00
Marcin Tomczyk
35e2c9d315
ONME-4433 SocketAddress::operator== should also check port
2019-12-16 15:38:49 +01:00
Przemyslaw Stekiel
25f354fe1f
storage: fix static pin-map for ARMC5
2019-12-16 15:38:07 +01:00
Antti Kauppila
6d0b2fae9b
Moved CP Max recv len into mbed_lib.json
...
According to [3GPP-TS_24.008] the maximum size for Non-IP link MTU is 1358 octets to prevent fragmentation in the backbone network.
Therefore reduced the maximum size to follow the standard.
2019-12-16 15:48:46 +02:00
Tymoteusz Bloch
8b2f4c2e7e
Getaddrinfo interface for multiple DNS adresses added.
...
New members are added to the network interface
-getaddrinfo
-getaddrinfo_async
gethostbyname is unchanged but gethostbyname_async result param now contains results od DNS records found.
Test cases for sync/async added added to DNS test folder.
2019-12-16 13:59:46 +01:00
Ari Parkkila
50ab644380
Cellular: Fix to not use all zero address for DNS
2019-12-16 04:56:45 -08:00
Rajkumar Kanagaraj
95f56bac30
Microlib: Disable feof function usage in tests
...
feof function is not supported in Microlib library. so disabling all the feof function usage in the green tea test.
2019-12-16 04:34:20 -08:00
Juha Heiskanen
3e51bd41ee
Wi-sun network event handler update
...
Wi-sun network event ARM_NWK_NWK_CONNECTION_DOWN will set Bootstrap state to active and notify interface state to MESH_BOOTSTRAP_STARTED
2019-12-16 12:56:53 +02:00
Martin Kojtal
fd4288a0dc
Merge pull request #12027 from michalpasztamobica/dns_module_test
...
Modify nsapi_dns tests to be module tests
2019-12-16 09:49:16 +01:00
Mahesh Mahadevan
c538919254
MIMXRT1050: Update the ENET driver to use wait_us
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-13 12:08:19 -06:00
Anna Bridge
8fcfbe117f
Merge pull request #12079 from AnttiKauppila/coverity_fixes
...
Coverity fixes
2019-12-12 16:28:12 +00:00
Ari Parkkila
483c557f9b
Cellular: Fix AT command for COPS manual network selection
2019-12-12 00:31:43 -08:00
Michal Paszta
c2856ef710
Remove deprecated string-based get_ip_address_if
2019-12-12 09:22:32 +02:00
Michal Paszta
d5d04ebb90
Move get_ip_address_if to the right class
...
get_ip_address_if was wrongly added to OnboardNetworkStack::Interface, while it should in fact be placed directly in OnboardNetworkStack.
2019-12-12 09:20:27 +02:00
Antti Kauppila
11b1df00b8
Coverity fix for mbed-client-cli
...
- uint64_t cast added to avoid overflow
2019-12-11 09:32:02 +02:00
Antti Kauppila
c42426a889
Coverity fixes for UBlox
...
- Unneeded class variables refactored away
- Init function refactored to remove duplicate code
2019-12-11 09:26:41 +02:00
Antti Kauppila
35c2b60800
Coverity fix for ATHAndler
...
Unneeded NULL check removed
2019-12-11 09:25:29 +02:00
Martin Kojtal
a996ea27f7
Merge pull request #12057 from OpenNuvoton/nuvoton_emac_max_recv
...
NUC472/M487: Limit EMAC receive frame length as 1518
2019-12-11 08:12:02 +01:00
Martin Kojtal
06da49984f
Merge pull request #12069 from jeromecoutant/PR_ASTYLE
...
STM32: astyle update
2019-12-11 08:01:19 +01:00
Martin Kojtal
f10e4ac04b
Merge pull request #11996 from ARMmbed/feature-cellular
...
Feature cellular
2019-12-10 14:54:57 +01:00
jeromecoutant
54aa300a3c
STM32 EMAC astyle corrections
2019-12-10 14:39:47 +01:00
jeromecoutant
3903cb4c97
STM32 MBEDTLS astyle corrections
2019-12-10 14:39:46 +01:00
Martin Kojtal
f2a1804d51
Merge pull request #12058 from mprse/static_pinmap_for_cloud_client
...
Add static pin-map support: SDBlockDevice, kvstore, system storage (reduce ROM used by Mbed Cloud Client example)
2019-12-10 14:19:18 +01:00
Przemyslaw Stekiel
ee5953ad74
Add static pinmap support: SDBlockDevice, kvstore, system storage
...
This is done in order to enable static pin-map for Mbed Cloud Client Example. This should give extra ROM savings, ~1KB.
2019-12-10 12:26:23 +01:00
Michal Paszta
fd46af67c6
Modify nsapi_dns tests to be module tests
...
The nsapi_dns tests were cross-class tests anyway, going through nsapi_dns and UDPSocket. Now they also include EthernetInterface and only mock the NetworkStack, which makes them the most cross-class module test we could think of in netsocket module.
2019-12-10 11:05:25 +02:00
Martin Kojtal
77b1ee51ef
Merge pull request #12050 from SeppoTakalo/IOTSTOR-992
...
Fix TDBStore sizes for SecureStore tests
2019-12-10 09:47:12 +01:00
cyliangtw
42103f089d
Correct the definition of M487/NUC472 EMAC NU_ETH_MAX_FLEN & PACKET_BUFFER_SIZE
2019-12-10 10:40:03 +08:00
Antti Kauppila
e221ba9bb9
initialisation added for _property_array
2019-12-09 15:25:22 +02:00
Antti Kauppila
7a87023921
Disabled SMS by default
2019-12-09 15:25:22 +02:00
Antti Kauppila
30ea858f51
Disable APN lookup by default
2019-12-09 15:25:22 +02:00
Antti Kauppila
90d3dc1f13
CellularStack fixed
2019-12-09 15:25:22 +02:00
Antti Kauppila
e51230c5e4
Remove CellularBase and AT_CellularBase
...
Removed CellularBase and AT_CellularBase from cellular stack and updated both code and unittests accordingly.
Moved property handling into AT_CellularDevice
2019-12-09 15:25:22 +02:00
cyliangtw
54d8c40f96
Limit max of NUC472 EMAC recv frame len as 1518
2019-12-09 19:15:23 +08:00
cyliangtw
410e4173b1
Limit max of M487 EMAC RX frame len as 1518
2019-12-09 18:12:26 +08:00
Seppo Takalo
1f99703806
Fix TDBStore sizes for tests
...
Tests must require at least 2 erase sectors per TDBStore,
so that the garbage collection may work.
2019-12-09 11:18:29 +02:00
Martin Kojtal
e9cb9cb014
Merge pull request #12018 from jeromecoutant/PR_OLIMEX_EMAC
...
STM32_EMAC cleanup
2019-12-05 14:03:46 +01:00
Martin Kojtal
412a9317de
Merge pull request #12017 from VeijoPesonen/remove_nvstore
...
NVStore: already deprecated implementation removed
2019-12-05 09:10:30 +01:00
Martin Kojtal
e2a11c0297
Merge pull request #11988 from ARMmbed/feature_securestore_refactoring
...
Small fixes for SecureStore
2019-12-05 08:23:35 +01:00
Martin Kojtal
58da078df9
Merge pull request #12015 from jeromecoutant/PR_ETHERNET_ARMC5
...
STM EMAC: compilation issue with ARMC5
2019-12-05 08:23:11 +01:00
Martin Kojtal
9248169f1f
Merge pull request #11976 from pstolarz/lwip_mbox_fix
...
LWIP system mailbox overflow fix
2019-12-04 15:54:59 +01:00
Seppo Takalo
21acb66c1c
TDBStore: remove unused variables
2019-12-04 16:21:55 +02:00
Seppo Takalo
7902100238
SecureStore: Get rid of casting by using opaque pointers.
2019-12-04 16:21:55 +02:00
Seppo Takalo
23b2b8c4f3
SecureStore: Deinitialize also member TDBStorages on deinit()
2019-12-04 14:55:45 +02:00
Seppo Takalo
650b93b66c
SecureStore: Validate internal RBP data first
...
Previous logic was allowing external storage to be tampered by setting
write-protected keys, so values could not be updated, but it was still
used by get().
2019-12-04 14:55:45 +02:00
Seppo Takalo
bde9753696
SecureStore: Don't use flags of corrupted data. Allow removing.
2019-12-04 14:55:45 +02:00
Seppo Takalo
56d67360ef
SecureStore: Validate internal header size before using its values.
2019-12-04 14:55:45 +02:00
Martin Kojtal
7a085b472b
Merge pull request #11987 from ARMmbed/feature_tdbstore_refactoring
...
TDBStore refactoring
2019-12-04 13:51:50 +01:00
Martin Kojtal
6f18801ccc
Merge pull request #11986 from ARMmbed/feature_storage_test_improvements
...
Storage related test improvements and small fixes
2019-12-04 10:16:28 +01:00
Martin Kojtal
4ae8984819
Merge pull request #11878 from michalpasztamobica/api_hardening
...
Improve API documentation and test coverage
2019-12-04 10:15:43 +01:00
Martin Kojtal
34c9cf93e5
Merge pull request #11975 from michalpasztamobica/pppinterface_pointer_checks
...
PPPinterface: remove faulty address getter check for invalid pointer
2019-12-04 10:14:30 +01:00
Martin Kojtal
bbf68d7272
Merge pull request #11983 from u-blox/ublox_odin_driver_os_5_v3.7.1_rc3
...
Ublox Odin Driver OS 5 v3.7.1 rc3: Network-WiFi Test Crash Fixes
2019-12-04 10:12:11 +01:00
Piotr Stolarz
9a70621507
Review fixes
2019-12-03 18:04:15 +01:00
Martin Kojtal
e4e6ac5bd6
Merge pull request #12008 from AriParkkila/cell-at-string-fix
...
Cellular: Fix ATHandler string handling
2019-12-03 15:52:39 +01:00
jeromecoutant
093099b2e7
STM_EMAC: move TARGET_OLIMEX to the correct directory
2019-12-03 14:48:05 +01:00
Veijo Pesonen
060a1c6df7
NVStore: deprecated implementation removed
2019-12-03 15:36:31 +02:00
jeromecoutant
27f40156b5
STM EMAC: compilation issue with ARMC5
2019-12-03 14:33:24 +01:00
Seppo Takalo
ce7b196b26
TDBStore: Don't copy more data than what we can hold
2019-12-03 15:20:10 +02:00
Seppo Takalo
fe3c3550f9
TDBStore: Move Assert to init(), so Block parameter are initialised correctly
2019-12-03 15:20:10 +02:00
Seppo Takalo
adf409f7f7
Do not require Flash device for TDBStore
...
TDBStore used to rely on Flash devices erase value.
This logic has been removed, and TDBStore can do the entire erase
logic itself, in case the given BlockDevice does not offer erase().
This relies on BlockDevice to properly return -1 in BlockDevice::get_erase_value().
2019-12-03 15:20:10 +02:00
Seppo Takalo
3dc6c4879f
TDBStore: erase one program unit more, when cleaning an area
2019-12-03 15:20:10 +02:00
Seppo Takalo
93d7422f75
TDBStore: Do no garbage_collect() on init()
...
Previous logic caused garbage collection to kick in, if the init() was
called on empty storage. This has effect of erasing areas twice, if both
areas were empty.
Re-write logic so that we erase areas only on garbage_collect() or reset().
The init() logic already chooses the active area, so no need to touch,
until keys are modified.
Removed also the is_erase_unit_erased() as this is working only on
FLASH devices, and TDBStore should be refactored to work on all storages.
2019-12-03 15:20:10 +02:00
Seppo Takalo
36523282fa
TDBStore: Keep copy of reserved data on both areas.
...
Change the "reserved data" logic so that every time we erase and area,
the content of reserved data is then immediately copied to newly erased
area. This keeps two copies of the data.
When data is requested, return only if checksum is matching.
When data is written, only allow if BOTH checksums are incorrect, meaning
that areas are either corrupted or erased.
Only exception is TDBStore::reset() which erases all keys and reserved data.
Removed all logic that tried to detect, if reserved are was erased or
corrupted. Rely entirely on checksum.
Add moduletest for reserved data.
2019-12-03 15:20:10 +02:00
Seppo Takalo
0fe159f6c4
Greentea: Fix slice-calculation from kvstore test phase 2
2019-12-03 14:51:37 +02:00
Seppo Takalo
2ddd4069b6
Remove flaky error_inject_test
2019-12-03 14:38:40 +02:00
Seppo Takalo
b9eaac4da0
Fix Greentea handler typecasting.
2019-12-03 14:38:40 +02:00
Seppo Takalo
3eb8d6eb1d
BufferedBlockDevice: Sync all the buffers on deinit()
...
Make sure that all data has been written on the underlying
storage when we do deinit().
2019-12-03 14:38:40 +02:00
Seppo Takalo
8ab3984d33
Don't allow over-read on BufferedBlockDevice
2019-12-03 14:38:40 +02:00
Seppo Takalo
191d3444bb
HeapBlockDevice: Don't assert on const functions
2019-12-03 14:38:40 +02:00
Seppo Takalo
6105634bb0
Remove unceressary NULL check from BufferedBlockDevice::size()
2019-12-03 14:38:40 +02:00
Seppo Takalo
bcaf37dcfa
SlicingBlockDevice should assert, if size does not look valid
2019-12-03 14:38:40 +02:00
Seppo Takalo
92a60c3d80
Extend SlicingBlockDevice test coverage
2019-12-03 14:38:40 +02:00
Seppo Takalo
12dea71f40
Greenteatests: Validate KVStore content when WRITE_ONCE flag is set.
2019-12-03 14:38:40 +02:00
Martin Kojtal
ad3647c191
Merge pull request #11957 from kjbracey-arm/crc-redo
...
MbedCRC and CRC HAL revisions (6.0 redo)
2019-12-03 13:21:36 +01:00
Ari Parkkila
c22dd77f42
Cellular: Fix ATHandler string handling
2019-12-03 03:21:13 -08:00
Michal Paszta
caf01479ea
Improve doxygen and unittest coverage for API
...
Mainly focusing on hardening the tests for return values.
2019-12-02 20:48:10 +02:00
Michal Paszta
33096c2e54
Fix PPPInterface::disconnect to return NO_CONNECTION in case of failure
2019-12-02 20:47:43 +02:00
Martin Kojtal
da5a8b2b65
Merge pull request #11952 from pferland-multitech/master
...
Fix for Dragonfly nano and registration for LTE-M plans
2019-12-02 16:55:14 +01:00
Kevin Bracey
cf13cd48bc
LittleFS test: silence sign mismatch warning
2019-12-02 14:45:37 +02:00
Kevin Bracey
7a219260c1
LittleFS: correct CRC calculation
...
When using MbedCRC, init value must be non-reversed, regardless of
`reflect_data` or `reflect_out` settings. This means we need to reflect
the intermediate output before passing using it as the next init value.
(In GCC this ends up putting in two `RBIT` instructions back-to-back,
because it's implemented as assembler, so it doesn't know how to
optimise. In ARMC6, `__RBIT` is implemented as an intrinsic, so adding
this reflection cancels the existing reflection and makes the code
smaller).
2019-12-02 14:45:37 +02:00
Kevin Bracey
c67816b5ff
Adjust code for MbedCRC changes
...
* Make mbed_error use bitwise MbedCRC call rather than local
implementation.
* Remove use of POLY_32BIT_REV_ANSI from LittleFS.
* Move some MbedCRC instances closer to use - construction cost is
trivial, and visibility aids compiler optimisation.
2019-12-02 14:45:37 +02:00
Martin Kojtal
24c6c4cab5
Merge pull request #11935 from AriParkkila/cell-depr-device
...
Cellular: Mark to be deprecated in CellularDevice
2019-11-29 15:45:35 +01:00
Ari Parkkila
088140e04b
Cellular: Mark CellularDevice::stop deprecated
2019-11-29 04:24:56 -08:00
Hamza Rizwan
c15320d48e
Fixes for Network WiFi Test Crashes
2019-11-29 14:52:25 +05:00
Martin Kojtal
7177d8fefe
Merge pull request #11950 from ABOSTM/DISCO_H747I_TICKLESS
...
DISCO_H747I: add support of MBED_TICKLESS
2019-11-29 09:48:09 +01:00
Martin Kojtal
9f34b255be
Merge pull request #11958 from mikaleppanen/ws_rf_ch_conf
...
Add support for Wi-SUN RF channel configuration
2019-11-29 09:47:05 +01:00
Martin Kojtal
733f5e25c8
Merge pull request #11971 from ARMmbed/IOTSTOR-951
...
TDBStore: Unlock the master mutex even after garbage_collect()
2019-11-29 09:45:22 +01:00
Michal Paszta
ecc89c98c7
PPPinterface: remove address getters check for invalid pointer
2019-11-28 17:01:09 +02:00
Piotr Stolarz
feb6a46619
[BUGFIX] LWIP system mailbox overflow fix
2019-11-28 14:32:36 +01:00
Martin Kojtal
ffdd54315f
Merge pull request #11941 from michalpasztamobica/remove_internal_string_apis
...
Remove string-based API usage within mbed-os
2019-11-28 14:26:03 +01:00
Seppo Takalo
7f7b191077
IOTSTOR-951: Unlock the master mutex even after garbage_collect()
2019-11-28 14:33:07 +02:00
Seppo Takalo
b82e106a43
Astyle fixes
2019-11-28 10:59:48 +02:00
Seppo Takalo
abbb2485d2
Greentea: Fix storage sizes for SecureStore tests.
...
Previously Greentea tests was not initialising its storage
before asking for bd->get_program_size(), causing FlashBlockDevice to
return zero. This caused both TDBStorage's to use zero for both
parameter to SlicingBlockDevice(bd, 0, 0), effetivaly both then
used same addresses for slice. This caused SecureStore tests
to fail, because writes to internal RBP storage overwrote keys
from external storage.
Fine-tune TDBStore sizes, so that all tests can fit into storage.
2019-11-28 10:47:47 +02:00
Veijo Pesonen
065ff2645e
Fixes features-storage-tests-kvstore-static_tests test case bugs
...
At least with LPC55S69's default TDBStore configuration it's
impossible to run storage Greentea tests without exhausting the
memory reserved for storing keys.
Fixes an issue where number of keys were removed based on number of
threads which didn't have anything to do with the test case.
Fixes an issue where number of keys were assumed to be constant
but variable number was used for configuration.
2019-11-28 10:37:11 +02:00
Seppo Takalo
8f77de6453
TDBStore safety check: Erase if there is valid keys on the free space.
...
In case our are contains data from previous reset() or reset_area(),
we might end up in the situation where free space contains valid
key headers, but we have not erased that area yet. This can cause
failures if the deinit() and init() because new scan of that area
would continue as long as keys are found. This causes keys on the
not-yet-erased area to be included in the new instance of TDBStore.
To prevent this failure, check after each key-write that our free
space does not contain valid key headers. Also make sure that we
erase one program unit sector over the master record. If we erased
just the master record,first key might is still there, causing next
init() to find it. Extend erase area by one program unit, so that
build_ram_table() won't find any keys.
2019-11-28 10:37:07 +02:00
Michal Paszta
ea04c4f85e
Remove internal usage of deprecated APIs in IPCore
...
Updated:
* netsocket classes,
* unittests, stubs and mocks,
* greentea tests
2019-11-27 20:02:20 +02:00
Alexandre Bourdiol
affe7113ef
TARGET_STM: Remove timeout on HSEM.
...
With tickless mechanism hsem can be used for quite a long time
(time to set up PLL clock).
Also, if hsem is held to long, then this is not the current core which is faulty,
but probably the other (the one which hold the HSEM)
2019-11-27 14:25:43 +01:00
Martin Kojtal
9974d831fe
Merge pull request #11949 from ARMmbed/acabarbaye-patch-1
...
Fix for ARMC5 compilation errors for some targets
2019-11-27 13:12:14 +01:00
Mika Leppänen
2a908b51ff
Added support for Wi-SUN RF channel configuration
...
Added support to Wi-SUN tasklet for following mbed-mesh-api .json configuration options:
wisun-uc-channel-function
wisun-bc-channel-function
wisun-uc-fixed-channel
wisun-bc-fixed-channel
wisun-bc-interval
wisun-bc-dwell-interval
wisun-uc-dwell-interval
This allows e.g. enabling single channel configuration for testing.
This pull request does not change existing functionality since when
defaults from mbed-mesh-api .json are used, no new or changed
ws_management_* interface calls are made.
2019-11-27 14:04:25 +02:00
Martin Kojtal
b0751bf507
Merge pull request #11946 from ARMmbed/revert-11559-crc
...
Revert "MbedCRC and CRC HAL revisions"
2019-11-27 11:07:13 +01:00
Martin Kojtal
58d6f5f39f
Merge pull request #11873 from AnttiKauppila/disable_sms
...
Make SMS configurable in Cellular stack
2019-11-27 09:03:55 +01:00
Peter Ferland
35e4904b23
Enabled CGREG for Dragonfly Nano allowing 2G fallback registrations
2019-11-26 17:20:27 -06:00
Peter Ferland
2301036b80
Changed registration AT commands used by Multitech Dragonfly Nano
2019-11-26 16:53:46 -06:00
Adrien CABARBAYE
877523dab4
Update QUECTEL_BG96_CellularStack.cpp
...
Similar issue for a different target
`./mbed-os/features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp", line 431: Error: #20 : identifier "sprintf" is undefined`
> armcc -c --gnu -Ospace --split_sections --apcs=interwork --brief_diagnostics --restrict --multibyte_chars -O3 -DMBED_TRAP_ERRORS_ENABLED=1 --cpu=Cortex-M4.fp.sp --md --no_depend_system_headers --c99 -D__ASSERT_MSG --cpp11 --no_rtti --no_vla -DMBED_ROM_START=0x0 -DMBED_ROM_SIZE=0x80000 -DMBED_RAM_START=0x20000000 -DMBED_RAM_SIZE=0x10000 -DTARGET_SOFTDEVICE_NONE -DTARGET_NORDIC -DCMSIS_VECTAB_VIRTUAL_HEADER_FILE="cmsis_nvic.h" -DTARGET_NRF52 -DCMSIS_VECTAB_VIRTUAL -DTARGET_MCU_NRF52832 -DDEVICE_SPI_ASYNCH=1 -DMBED_TICKLESS -DDEVICE_SLEEP=1 -DFEATURE_BLE=1 -DNRF52_PAN_12 -D__CMSIS_RTOS -DTARGET_SDK_15_0 -DNRF52_PAN_64 -DDEVICE_SPI=1 -DDEVICE_I2C=1 -DNRF52_PAN_15 -DDEVICE_SERIAL=1 -DTARGET_LIKE_MBED -DDEVICE_PORTOUT=1 -DDEVICE_SERIAL_ASYNCH=1 -DTARGET_M4 -DNRF52_PAN_31 -D__FPU_PRESENT=1 -D__CORTEX_M4 -DTARGET_RTOS_M4_M7 -DDEVICE_PORTIN=1 -DTARGET_CORDIO_LL -DTARGET_NRF5x -DCONFIG_GPIO_AS_PINRESET -DDEVICE_SERIAL_FC=1 -DDEVICE_USTICKER=1 -DTARGET_RELEASE -D__MBED__=1 -DTARGET_CORDIO -DMBED_MPU_CUSTOM -DNRF52_PAN_54 -DSWI_DISABLE0 -DDEVICE_INTERRUPTIN=1 -DNRF52_PAN_63 -DNRF52_PAN_51 -DDEVICE_ANALOGIN=1 -DCOMPONENT_PSA_SRV_EMUL=1 -DTARGET_NORDIC_CORDIO -DNRF52_PAN_62 -DNRF52_PAN_55 -DTARGET_CORTEX -DNRF52_PAN_53 -DDEVICE_PWMOUT=1 -DDEVICE_PORTINOUT=1 -DTOOLCHAIN_ARMC5 -DTARGET_CORTEX_M -DDEVICE_ITM=1 -DMBED_BUILD_TIMESTAMP=1574735595.5081437 -DNRF52_PAN_20 -DDEVICE_I2C_ASYNCH=1 -DDEVICE_LPTICKER=1 -DNRF52_PAN_30 -DTARGET_LIKE_CORTEX_M4 -DTARGET_NAME=MTB_UBLOX_NINA_B1 -DCOMPONENT_NSPE=1 -DDEVICE_TRNG=1 -DNRF52_PAN_58 -DTOOLCHAIN_ARM -DARM_MATH_CM4 -D__MBED_CMSIS_RTOS_CM -DNRF52 -DBOARD_PCA10040 -DDEVICE_FLASH=1 -DCOMPONENT_PSA_SRV_IMPL=1 -DTARGET_MTB_UBLOX_NINA_B1 -DDEVICE_SYSTICK_CLK_OFF_DURING_SLEEP=1 -DTARGET_NRF52832 -DTOOLCHAIN_ARM_STD -DNRF52_PAN_36 --preinclude=./BUILD/MTB_UBLOX_NINA_B1/ARMC5/mbed_config.h --via ./BUILD/MTB_UBLOX_NINA_B1/ARMC5/.includes_3003a516b3c5c98831c114756251051b.txt --depend BUILD/MTB_UBLOX_NINA_B1/ARMC5/mbed-os/features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.d -o BUILD/MTB_UBLOX_NINA_B1/ARMC5/mbed-os/features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.o ./mbed-os/features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp
2019-11-26 15:27:15 +00:00
Adrien CABARBAYE
de57ba8b50
Fix for ARMC5 compilation errors for some targets
...
the following compilation error is seen for a number of targets when compiling using ARMC5
`tools.utils.ToolException: "./mbed-os/features/cellular/framework/AT/AT_CellularContext.cpp", line 247: Error: #20 : identifier "sprintf" is undefined`
Failing command:
> 5.06u6/bin/armcc -c --gnu -Ospace --split_sections --apcs=interwork --brief_diagnostics --restrict --multibyte_chars -O3 -DMBED_TRAP_ERRORS_ENABLED=1 --cpu=Cortex-M4.fp.sp --md --no_depend_system_headers --c99 -D__ASSERT_MSG --cpp11 --no_rtti --no_vla -DDEVICE_SERIAL_ASYNCH=1 -D__MBED__=1 -D__CORTEX_M4 -DTOOLCHAIN_ARM -DMBED_BUILD_TIMESTAMP=1574735332.2275832 -DTARGET_RELEASE -DTARGET_GigaDevice -DDEVICE_SERIAL_FC=1 -DARM_MATH_CM4 -DTARGET_LIKE_MBED -DTARGET_GD32E10X -D__FPU_PRESENT=1 -DTARGET_GD32_Target -DTARGET_M4 -DDEVICE_RTC=1 -DDEVICE_INTERRUPTIN=1 -DCOMPONENT_PSA_SRV_EMUL=1 -D__CMSIS_RTOS -DTOOLCHAIN_ARMC5 -DDEVICE_SPISLAVE=1 -DTARGET_GD32_E103VB -DTARGET_CORTEX -DDEVICE_PORTIN=1 -DDEVICE_ANALOGOUT=1 -DDEVICE_I2C=1 -DDEVICE_ANALOGIN=1 -DDEVICE_FLASH=1 -DDEVICE_SLEEP=1 -DCOMPONENT_NSPE=1 -DDEVICE_SERIAL=1 -DDEVICE_PORTOUT=1 -DTARGET_GD32E103VB -DDEVICE_CAN=1 -DTARGET_NAME=GD32_E103VB -DTARGET_CORTEX_M -D__MBED_CMSIS_RTOS_CM -DDEVICE_PWMOUT=1 -DTARGET_FF_ARDUINO -DGD32E10X -DDEVICE_USTICKER=1 -DTARGET_RTOS_M4_M7 -DDEVICE_PORTINOUT=1 -DTOOLCHAIN_ARM_STD -DCOMPONENT_PSA_SRV_IMPL=1 -DDEVICE_SPI=1 -DTARGET_LIKE_CORTEX_M4 -DDEVICE_I2CSLAVE=1 --preinclude=./BUILD/GD32_E103VB/ARMC5/mbed_config.h --via ./BUILD/GD32_E103VB/ARMC5/.includes_022feb5c2e44b9896df9a82c69438bc9.txt --depend BUILD/GD32_E103VB/ARMC5/mbed-os/features/cellular/framework/AT/AT_CellularContext.d -o BUILD/GD32_E103VB/ARMC5/mbed-os/features/cellular/framework/AT/AT_CellularContext.o ./mbed-os/features/cellular/framework/AT/AT_CellularContext.cpp
[Error] AT_CellularContext.cpp@247,0: #20 : identifier "sprintf" is undefined
2019-11-26 15:05:52 +00:00
Antti Kauppila
cb806befcf
Enabled SMS by default to not break anything
2019-11-26 16:32:53 +02:00
Martin Kojtal
5f7ecea00b
Revert "MbedCRC and CRC HAL revisions"
2019-11-26 13:45:37 +00:00
Martin Kojtal
0df07e6a90
Merge pull request #11937 from AriParkkila/cell-remove-rx-avail
...
Cellular: Replace CellularSocket.rx_avail with pending_bytes
2019-11-26 12:28:49 +01:00
Ari Parkkila
adba109de6
Cellular: Replace CellularSocket.rx_avail with pending_bytes
...
CellularSocket::rx_avail can be refactored away as
it is a duplicate to CellularSocket::pending_bytes.
2019-11-25 21:49:17 -08:00
Martin Kojtal
a169edfdec
Merge pull request #11887 from kyle-cypress/pr/target-p62s1-43438
...
Add target for CYW9P62S1_43438EVB_01
2019-11-25 18:32:48 +01:00
Antti Kauppila
353782bf63
Disable SMS by default from Cellular stack
...
Put SMS behind configuration flag to save some memory (4,5kB) for Cellular users not needing SMS features.
UBlox N2XX target is also updated
2019-11-25 11:38:06 +02:00
Martin Kojtal
1a2ecebc62
Merge pull request #11881 from hugueskamba/hk-UBLOX_EVK_ODIN_W2-enable-baremetal
...
UBLOX_EVK_ODIN_W2: Fix baremetal build and greentea tests
2019-11-25 08:40:33 +01:00
Martin Kojtal
eb60e67d92
Merge pull request #11913 from VeijoPesonen/tdbstore_min_size
...
LPC55S69_NS default TDBStore size increased to 32kB
2019-11-22 14:47:56 +01:00
Martin Kojtal
b6edc5b0cc
Merge pull request #11923 from AriParkkila/cell-ppp-wait-connect
...
Cellular: Fix PPP to wait until connected event from (LWIP) PPP
2019-11-22 14:12:03 +01:00
Martin Kojtal
04ed9c5c8c
Merge pull request #11851 from amq/patch-2
...
Enable FAT ChaN lib configuration with mbed_lib.json
2019-11-22 13:38:56 +01:00
Martin Kojtal
38a8c0e28f
Merge pull request #11914 from michalpasztamobica/refactor_string_based_apis
...
Deprecate string-based APIs in IPCore
2019-11-22 12:00:56 +01:00
Hugues Kamba
157d126769
UBLOX_EVK_ODIN_W2: Fix baremetal build and greentea tests
...
Remove lwIP reliant networking and BLE tests for baremetal
Mbed OS 5 ported lwIP in its OS mode and uses threads. Networking
that rely on lwIP needs to be removed so it can be compiled with the
baremetal profile.
The BLE cordio Greentea tests are also disabled given that the feature
is not supported without an RTOS.
2019-11-22 10:55:39 +00:00
Michal Paszta
fd5b4b9119
Deprecate string-based APIs in IPCore
...
MBED_DEPRECATE macros is added to string-based APIs.
New, non-string-based APIs are added in their place.
Wiced binaries rebuilt
Any existing stubs or mocks are adjusted to compile and run with the newly added non-string based functions.
2019-11-22 11:31:12 +02:00
Martin Kojtal
869df2d280
Merge pull request #11889 from JarkkoPaso/nanostack_release_for_mbedos_5_15
...
Nanostack release for mbedos 5 15
2019-11-22 09:05:45 +01:00
Ari Parkkila
90d7748514
Cellular: Fix PPP to wait until connected event from (LWIP) PPP
2019-11-21 23:14:18 -08:00
Martin Kojtal
784b03b8b4
Merge pull request #11877 from cy-arsm/cy-arsm/topic/dualstack-ipv6-linklocal-fix
...
Fix for sending IPv6 UDP packet over link local interface
2019-11-21 14:27:43 +01:00
Martin Kojtal
9588fad72b
Merge pull request #11911 from anttiylitokola/mbed-coap-5.1.2
...
Update mbed-coap to version 5.1.2
2019-11-21 10:57:32 +01:00
Veijo Pesonen
8a0af607f3
LPC55S69_NS: Sets default TDBStore size to 32kB
...
Previously it was 2 pages - 1kB - which isn't sufficient to store
Reserved Area and Master Record. Reserved are requires one page and Master
Record takes two pages. With 512B page size and having two areas, active and
inactive, the minimum size requirement becomes 2 areas * 3 pages = 3kB. That
isn't enough to store any keys though.
2019-11-21 11:28:59 +02:00
Veijo Pesonen
458f5f43f3
TDBStore: Adds sanity check for storage size when compiled with debug profile
2019-11-21 11:28:59 +02:00
Balaji Subramanyam
f51cc6494e
Cypress Target update to support Manufacturing Test. ( #11868 )
...
Cypress Target update to support WiFi Manufacturing Test
Adding IOCTLS in WhdSTAInterface for MFG Test.
Fix WHD EMAC interface to release buffer when emac is not powered up or callback
is not registered.
2019-11-21 10:12:35 +01:00
Martin Kojtal
deaafa84ce
Merge pull request #11902 from AriParkkila/cell-bg96-epco
...
Cellular: Enable ePCO IE for BG96 driver
2019-11-21 09:14:18 +01:00
Antti Yli-Tokola
4a491b99df
Update mbed-coap to version 5.1.2
...
Compiler warning cleanups.
2019-11-20 22:36:25 +02:00
Ari Parkkila
2301af398e
Cellular: Enable ePCO IE for BG96 driver
...
As per 3GPP TS 24.301:
If the UE supports NB-S1 mode, Non-IP PDN type, or N1 mode,
then the UE shall support the extended protocol configuration options IE.
...
If the UE supports the extended protocol configuration options IE,
then the UE shall set the ePCO bit to extended protocol configuration options supported
in the UE network capability IE of the ATTACH REQUEST message.
2019-11-19 21:59:19 -08:00
Kyle Kearney
ad6dd0957c
Add BT firmware for 43438 radio
2019-11-19 18:03:00 -08:00
Jarkko Paso
79f8355334
Fixed compilation warnings
2019-11-19 15:15:12 +02:00
fred.li
cef6aba55e
RESET for each connect operation
2019-11-19 12:08:06 +08:00
fred.li
18fa28db77
Disable UNISOC Reconnect patch, Optimize workaround for LWIP issue
2019-11-19 12:08:05 +08:00
fred.li
88cf7df286
1, Restrict access to 1st 4K of flash
...
2, Merge UNISOC change for auto reconnect patch
2019-11-19 12:08:05 +08:00
Jarkko Paso
12d4497ab7
Merge commit '0b6ccc5816e44df9fe89c476514cb7043dfb483b'
...
* commit '0b6ccc5816e44df9fe89c476514cb7043dfb483b':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 0824752..9b3e144
2019-11-18 15:08:32 +02:00
Arun S
dc7178f176
Modified LwIP stack and LwIP mbed-os wrapper to support sending IPv6
...
UDP packets when IPv4 and IPv6 dual mode stack is enabled and the IPv6
packet is sent over link-local inerface.
2019-11-18 17:18:50 +05:30
Martin Kojtal
cb54f5065f
Merge pull request #11859 from kivaisan/fix_cellular_baremetal_scheduling
...
Cellular: Fix queue scheduling for bare metal
2019-11-16 07:55:36 +01:00
Martin Kojtal
7b79157a4d
Merge pull request #11580 from wajahat-ublox/ubx_modems_custom_boards
...
Remove target dependency in ublox cellular APIs
2019-11-15 18:26:54 +01:00
Anna Bridge
7cfa6faa5b
Merge pull request #11714 from tymoteuszblochmobica/linklocal
...
LWIP::get_ipv6_addr for link-local only
2019-11-15 12:32:54 +00:00
Seppo Takalo
af0708ca48
IOTSTOR-978: Skip a unstable testcase until fixed
2019-11-15 10:38:32 +02:00
Tymoteusz Bloch
6514433b68
LWIP::get_ipv6_addr fixed to avoid returning NULL even if only linklocal adress exits.
2019-11-14 17:19:54 +01:00
Martin Kojtal
fd22997b60
Merge pull request #11559 from kjbracey-arm/crc
...
MbedCRC and CRC HAL revisions
2019-11-13 18:24:04 +01:00
Martin Kojtal
539779fa58
Merge pull request #11531 from kyle-cypress/pr/qspi-sfdp
...
Improve QSPIFBlockDevice conformance to SFDP
2019-11-13 17:55:36 +01:00
amq
5ec0a911fa
Change "MBED_CONF_FAT" to MBED_CONF_FAT_CHAN"
2019-11-13 16:08:08 +01:00
amq
1b55cbe92d
Change library name from "fat" to "fat_chan"
2019-11-13 15:51:55 +01:00
Kimmo Vaisanen
deadcee06c
Cellular: Fix queue scheduling for bare metal
...
For non-rtos build (bare metal) cellular event queue is now scheduled by shared event queue.
2019-11-13 14:51:14 +02:00
Kevin Bracey
8811972201
Adjust code for MbedCRC changes
...
* Make mbed_error use bitwise MbedCRC call rather than local
implementation.
* Remove use of POLY_32BIT_REV_ANSI from LittleFS.
* Move some MbedCRC instances closer to use - construction cost is
trivial, and visibility aids compiler optimisation.
2019-11-13 14:31:49 +02:00
Antti Kauppila
8aac93a593
ATHandler build warning fixed
2019-11-13 09:38:02 +02:00
Kyle Kearney
0103e3a06a
General Block Device Test: Expand Thread Stack
...
The addition of trace logging during greentea tests pushes the multithreaded
read-write test beyond the limits of the stack it allocates for its threads.
The increase of 128 bytes was chosen by experimentation.
2019-11-12 15:41:12 -08:00
Matthew Macovsky
78569aa808
Enable TDBStore whitebox test on PSoC 6
2019-11-12 12:26:25 -08:00
Matthew Macovsky
92829bd9a4
Generalize KVStore phase 1/2 test BlockDevice sizes
2019-11-12 12:26:25 -08:00
Matthew Macovsky
a1c74036ea
Enable some of the kvstore tests for PSoC 6 MCUs
2019-11-12 12:26:25 -08:00
amq
b90838d6df
Change "description" to "help"
2019-11-12 19:15:39 +01:00
amq
52beee2bce
Add mbed_lib.json for the FAT ChaN library
2019-11-12 15:42:22 +01:00
amq
9b3affa78b
Enable FAT configuration with mbed_lib.json
2019-11-12 15:39:19 +01:00
Martin Kojtal
609612c1f2
Merge pull request #11840 from morser499/pr/whd1.50
...
Update Cypress WifiHostDriver to version 1.50
2019-11-12 13:56:35 +01:00
Martin Kojtal
f61979ab31
Merge pull request #11843 from kapi90/master
...
Fix ethernet memory handling issues on CM3DS
2019-11-12 13:56:13 +01:00
Martin Kojtal
d556bf698f
Merge pull request #11821 from rajkan01/feature-baremetal-greentea-psa
...
Skip Bare Metal green tea test for PSA component
2019-11-12 11:07:16 +01:00
Martin Kojtal
dd753abcb8
Merge pull request #11825 from rajkan01/feature-baremetal-greentea-storage
...
Bare metal green tea test for storage component
2019-11-12 11:01:29 +01:00
Martin Kojtal
09d9287e3b
Merge pull request #11721 from rajkan01/feature-baremetal-greentea
...
Bare metal greentea support
2019-11-12 10:59:39 +01:00
Bence Kaposzta
4dd7712ac7
Fix ethernet memory handling issues on CM3DS
...
Signed-off-by: Bence Kaposzta <bence.kaposzta@arm.com>
2019-11-12 10:57:20 +01:00
Ryan Morse
799146ba2f
Move WHD from being a Target to being a Component
2019-11-11 15:12:02 -08:00
Martin Kojtal
4f6ca1512a
Merge pull request #11827 from ABOSTM/DISCO_H747I_ETHERNET_READY
...
DISCO STM32H747I ETHERNET support, but disabled.
2019-11-11 16:56:36 +01:00
Bence Kaposzta
647216299f
Fix ethernet memory handling issues on CM3DS
...
Signed-off-by: Bence Kaposzta <bence.kaposzta@arm.com>
2019-11-11 15:32:50 +01:00
Bence Kaposzta
d5e89a25c6
Fix ethernet memory handling issues on CM3DS
...
Signed-off-by: Bence Kaposzta <bence.kaposzta@arm.com>
2019-11-11 14:39:08 +01:00
RAJKUMAR KANAGARAJ
d8e2dd5b47
Incorporated the review comments
2019-11-08 09:50:09 -08:00
jeromecoutant
7fcedd20e1
DISCO STM32H747I ETHERNET support, but disabled.
...
Ethernet is disabled by default,
because some hardware modifications are required on the board DISCO_H747I.
see https://os.mbed.com/teams/ST/wiki/DISCO_H747I-modifications-for-Ethernet
2019-11-08 16:05:00 +01:00
Martin Kojtal
9d4bd44fd7
Merge pull request #11831 from AGlass0fMilk/fix-ble-sm-sec-db
...
BLE: Added call to delete the security database object upon SM reset.
2019-11-07 11:54:45 +01:00
Martin Kojtal
383cf1984d
Merge pull request #11711 from jeromecoutant/PULL_REQUEST_CUBE_UPDATE_F7_V1.15.0
...
STM32F7 update drivers version to CUBE V1.15.0
2019-11-07 11:33:38 +01:00
Martin Kojtal
9b3731a76a
Merge pull request #11755 from michalpasztamobica/unittests_dns
...
Unittests for nsapi_dns
2019-11-07 10:55:37 +01:00
Martin Kojtal
f079dce02a
Merge pull request #11810 from kyle-cypress/pr/securestore-struct-init
...
SecureStore: Add member initializers for inc_handle_t
2019-11-07 09:20:43 +01:00
George Beckstein
9c75207299
Added call to delete the security database object upon SM reset. This allows the file to be closed by the OS and flushed to disk.
2019-11-06 14:31:04 -05:00
RAJKUMAR KANAGARAJ
8ecce14dad
Skip Bare metal green tea test for storage related components or the components test cases which is based on RTOS
2019-11-06 04:49:19 -08:00
RAJKUMAR KANAGARAJ
f30dd1cef2
Enable the Bare Metal green tea test
...
-PSA test framework uses the RTOS threads to run test cases so added MBED_CONF_RTOS_PRESENT to all the test cases.
2019-11-06 03:15:49 -08:00
RAJKUMAR KANAGARAJ
b1731ce3c8
-New PR for PSA,Netsocket,storage components,reverted all the changes to back to original
...
-Change the #error description more precisely
-Separated the MBED_CONF_RTOS_PRESENT guarded
2019-11-06 01:59:05 -08:00
RAJKUMAR KANAGARAJ
302f595c28
- Emac,NFC-EEPROM,PSA-CRYPTO components build issue fixed
...
- RTOS supported test case guarded with MBED_CONF_RTOS_PRESENT flag
- Added the #error to non supported test case for bare metal
2019-11-06 01:57:29 -08:00
Michal Paszta
4e5ea38d14
nsapi_dns: use delete[] for array alloc'd with new[]
2019-11-05 22:39:58 +02:00
RAJKUMAR KANAGARAJ
3fc8905315
Fixed the greentea test dependency and incorporated the review comments
...
-Added the mbedtls,crypto,psa,filesystem,fat,littlefs in baremetal.json to resolve compiler issue
-Disable metrics that are not available for bare metal
-Moved the baremetal.json inside TESTS/configs directory
2019-11-05 08:49:27 -08:00
RAJKUMAR KANAGARAJ
f402dbb2da
Bare metal greentea support
...
-Added the baremetal.json on Tests directory to enable bare-metal
-Conditional enable of greentea metrics
Note:
Run green tea with bare metal
mbed test -m target -t GCC_ARM -n tests-mbed_platform-transaction --app-config TESTS/baremetal.json
2019-11-05 08:49:27 -08:00
Wajahat Abbas
98f3baa455
Removed error directives
2019-11-05 14:25:54 +05:00
Wajahat Abbas
a5015c20ee
Remove target dependency in ublox cellular APIs
2019-11-05 14:25:54 +05:00
Martin Kojtal
0d0120a812
Merge pull request #11808 from michalpasztamobica/api_hardening
...
Document Socket API functions return values.
2019-11-05 09:46:54 +01:00
Martin Kojtal
355336ce43
Merge pull request #11797 from ARMmbed/IOTSTOR-941
...
IOTSTOR-953: Fix address calculations from SlicingBlockDevice
2019-11-05 09:09:14 +01:00
Kyle Kearney
db4dafc15a
SecureStore: Add member initializers for inc_handle_t
...
_inc_set_handle is new'd in SecureStore::init(), then its members are
referenced in various functions without being explicitly initialized
first. These pre-existing values can confuse the SecureStore's internal
state and cause various undesired behavior.
2019-11-04 14:49:57 -08:00
Martin Kojtal
18d4adf04f
Merge pull request #11719 from wajahat-ublox/echo_fix
...
Ensure modem echo is off before sending other AT commands
2019-11-04 15:56:12 +01:00
Martin Kojtal
fe940924cc
Merge pull request #11683 from AnttiKauppila/baremetal_support
...
Baremetal profile fixes
2019-11-04 15:53:57 +01:00
Martin Kojtal
412b0ae5d5
Merge pull request #11375 from tymoteuszblochmobica/nsapi_dns
...
NSAPI DNS query IP version check for non LWIP stacks.
2019-11-04 15:30:28 +01:00
Martin Kojtal
f27aec3377
Merge pull request #11279 from cy-jayasankar/pr/added-ipv6-link-local-address-api
...
Add API to get ipv6 link local address
2019-11-04 15:28:41 +01:00
Martin Kojtal
c908404d94
Merge pull request #11783 from mirelachirica/set_baud_rate
...
Adding set baud rate routine
2019-11-04 15:27:02 +01:00
Seppo Takalo
f0790cd7b2
Remove usage of Mbed TLS internal function from DeviceKey.
...
DeviceKey was using mbedtls_ssl_safer_memcmp() to compare result against
buffer of equal length, but zero content. This comparison makes no sense
as the entropy function is already returning proper error, if it fails.
2019-11-04 16:13:33 +02:00
Seppo Takalo
4ab3c8bb48
IOTSTOR-953: Fix address calculations from SlicingBlockDevice
...
* Change MBED_ASSERTS() to return valid error code, so that
checks are not bypassed on release builds.
* Fix starting address calculations so that "addr" parameter is always
relative to SlicingDevice and "_start" is only added when calls to
underlying storage block is made.
* Bypass BlockDevice:is_valid_*() to underlying block device.
Slicingblockdevice was just verifying addresses independently, without
verifying those from underlying block storage.
2019-11-04 16:13:32 +02:00
Seppo Takalo
a6d8f74b09
Add unittest for HeapBlockDevice and change some MBED_ASSERTS to errors.
2019-11-04 16:12:36 +02:00
Seppo Takalo
168b51c415
Add storage related files to baseline unittest.
...
* Refactor some headers to use relative path from Mbed OS root.
* Refactor some data types to compile on 64bit machines.
* Refactor some debug traces to use mbed_trace.
2019-11-04 16:12:36 +02:00
Seppo Takalo
7f089ac074
Add empty unittest to generate zero baseline for untested files.
2019-11-04 16:12:36 +02:00
Michal Paszta
87211e9158
Document Socket API functions return values.
...
Describe the return values with as much detail as possible, to let user only check the relevant return codes, instead of all nsapi_error_t. Refer to underlying APIs wherever possible.
2019-11-04 11:55:19 +02:00
Martin Kojtal
f59d71f0b4
Merge pull request #11772 from u-blox/ubx_context
...
Cellular: updated cellular context flags and cid in ublox-api
2019-11-04 09:57:08 +01:00
Martin Kojtal
a927ab8f7c
Merge pull request #11789 from jeromecoutant/PR_STM32H7
...
STM32H7: code and feature alignment for both NUCLEO and DISCO targets
2019-11-04 09:48:09 +01:00
Mirela Chirica
c484fc88f9
Cellular: Added set routine for baud rate
2019-11-01 17:21:31 +02:00
Antti Kauppila
0b8cd38dcd
Baremetal profile fixes
2019-11-01 15:12:19 +02:00
Jayasankar Nara
cb51fa57e2
Add API to get ipv6 link local address.
...
Protocols like mdns requires IPv6 link local address to be advertised in its
records (AAAA record). LWIP::Interface::bringup() API is creating IPv6 link
local address;But as of now there is no API exposed by mbed-os to get the
IPv6 link local address.
This new API is required to deliver mDNS library support on mbed-os for Cypress
platforms. Unit tested it by invoking get_ipv6_link_local_address with a simple
application.
2019-11-01 03:43:36 +05:30
jeromecoutant
76248b4942
STM32F7 MBEDTLS AES_ALT update for new HAL
2019-10-31 17:46:10 +01:00
Martin Kojtal
c93c181b6a
Merge pull request #11687 from Patater/update-to-mbedtls-2.20.0d0
...
Update to Mbed TLS 2.20.0d0 and Mbed Crypto 2.1.0d0
2019-10-31 17:12:31 +01:00
Veijo Pesonen
b01fe020cd
Deprecates NVStore
2019-10-31 14:54:54 +02:00
jeromecoutant
d7d0d0b8cb
STM32H7 FLASH and DEVICE_KEY
...
- Enable FLASHIAP for all H7 boards
- Use "TDB_INTERNAL" for all H7 boards
- Define specific internal_base_address only for DISCO_H747I_CM7
(default address is the end of FLASH which is correct for other H7 boards)
- Correct GetSectorBase function with Dual Bank information
2019-10-31 13:04:49 +01:00
Martin Kojtal
da6b336391
Merge pull request #10978 from vmedcy/lwip-rawsocket
...
LwIP: add ICMPv4 Socket support
2019-10-31 11:50:21 +01:00
Janne Kiiskila
3ab36cb934
Add default TDBStore location for DISCO_H747I (end of BANK1)
...
Place it at the end of the bank1, last two erase sectors.
As erase sector is 128 kB, default size must be double of that.
This can't be in bank2 as that is apparently dedicated to the M4 core.
Memory map is available in;
https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/flash_data.h
Memory map does not have this information, but issue [11617](https://github.com/ARMmbed/mbed-os/issues/11617 ) has.
2019-10-30 15:25:13 +02:00
Janne Kiiskila
655274a16e
DISCO_H747I - define default storage (TDB_INTERNAL)
...
DeviceKey needs the definition of the default storage place,
define it to be TDB_INTERNAL (as for the other boards).
2019-10-30 15:25:13 +02:00
Martin Kojtal
419556b84a
Merge pull request #11735 from michalpasztamobica/dns_unittest_preparation
...
Dns unittest preparation
2019-10-30 11:04:19 +01:00
Martin Kojtal
f1392d6b6b
Merge pull request #11695 from jeromecoutant/PR_GREENTEA_TRACE
...
GREENTEA: init trace if trace is enabled in json
2019-10-29 15:13:31 +01:00
Martin Kojtal
3c9853af61
Merge pull request #11754 from mirelachirica/athandler_write_hex_string
...
Cellular: Added write_hex_string to AT handler
2019-10-29 10:00:46 +01:00
Martin Kojtal
bc2162ab19
Merge pull request #11718 from desmond-blue/fix-ex-sm-fail-nrf52840
...
Handle legacy process event first on connection complete
2019-10-28 09:54:44 +01:00
Mirela Chirica
beeccbe52c
Cellular: Added write_hex_string to AT handler
2019-10-28 10:34:05 +02:00
Martin Kojtal
98072b24c8
Merge pull request #11748 from cydriftcloud/pr-dev/fix-spurious-link-down-up
...
Fix spurious link up/down when AP IP address range change
2019-10-28 09:28:54 +01:00
Balaji
5b9291628e
rebase mbed_lib.json to upstream/master
2019-10-25 12:39:27 -07:00
Balaji
948e989d27
fix mbed_lib.json add ,
2019-10-25 12:14:31 -07:00
Balaji
d9045b4840
index on lwip-rawsocket: 6905b1b547
Incorporate review comments from @kjbracey-arm
2019-10-25 11:00:55 -07:00
Balaji
6905b1b547
Incorporate review comments from @kjbracey-arm
2019-10-25 10:51:50 -07:00
Balaji
5168bbdcd0
Add InternetDatagram Base Class
2019-10-25 10:48:13 -07:00
Balaji
ab883350a0
Incorporate review comments from @kjbracey-arm
2019-10-25 10:48:12 -07:00
Balaji
90e188b23a
fix a style convention
2019-10-25 10:48:12 -07:00
Balaji
b91836a94d
fix astyle convention
2019-10-25 10:48:12 -07:00
Balaji
1a7288d220
fix astyle convention
2019-10-25 10:48:12 -07:00
Balaji
d92a946b78
fix astyle convention
2019-10-25 10:48:12 -07:00
Balaji
0b5dea5f99
Changes to the PR 10978 (LWIP: Add RAWIPSocket support)
2019-10-25 10:48:12 -07:00
Martin Kojtal
e1c3de649d
Merge pull request #11747 from miteshdedhia7/pr/fix-kvstore-statictests
...
Update the internal kvstore flash reservation size to from 7k to 65K for Cypress Devices
2019-10-25 14:42:10 +02:00
Martin Kojtal
a44fd827c2
Merge pull request #11578 from cydriftcloud/pr-dev/ap-sta-op-sync
...
Add synchronization and switching between WhdSoftAPInterface and WhdSTAInterfaces
2019-10-25 13:36:10 +02:00
Lei Zhang
d411d72196
MIDDLEWARE-2134: Fix spurious link up/down when AP IP address range changes
...
Fixed additional link down/up events in whd_wifi_link_state_change_handler by checking additional condition during the transition.
2019-10-24 18:43:07 -07:00
Martin Kojtal
ab931ee27c
Merge pull request #11662 from cydriftcloud/pr-dev/sta-extended-scan
...
Allow WhdAccessPoint scan results with extended parameters
2019-10-24 10:26:07 +02:00
Martin Kojtal
acf576a9ab
Merge pull request #11725 from OpenNuvoton/nuvoton_devicekey_entropy_alt
...
DeviceKey: Fix random key doesn't generate with custom entropy source
2019-10-24 09:22:37 +02:00
Lei Zhang
28884b589c
Add synchronization and switching between SoftAP/STA
...
- A shared mutex is added for synchronization
- ScopedMutexLock is used to to protect
- SoftAP: start, stop
- STA: scan, join, disconnect
- Fix switching issue between SoftAP and STA mode for primary interface
- Avoid reinit primary interface by getting mapping the current interface to the other one which is already on
- In concurrent mode, STA is the default if it is up, otherwise SoftAP is default.
- For non-concurrent mode, the most recent started interface is set as default.
2019-10-23 18:31:20 -07:00
Lei Zhang
7b16166d51
Allow WhdAccessPoint scan result with extended parameters
...
- Add WhdAccessPoint to include additional WHD scan info
- To save memory, only move assignment is supported for WhdAccessPoint
- Add scan_whd to scan for WhdAccessPoint
- Set set_blocking(false) to unsupported by return NSAPI_ERROR_UNSUPPORTED
2019-10-23 14:43:07 -07:00
midd
6fbc610448
Update the internal kvstore size to from 7k to 65K for device that use the internal flash for kvstore
2019-10-23 12:26:07 -07:00
Martin Kojtal
bb48dd35c6
Merge pull request #11624 from geky/littlefs-v1.7.2
...
LittleFS: Update to v1.7.2
2019-10-23 14:55:10 +02:00
Martin Kojtal
e7d95f5f2a
Merge pull request #11536 from jeromecoutant/PR_STM32_EMAC
...
STM32 EMAC configuration update
2019-10-23 13:10:10 +02:00
Michal Paszta
45976419b8
DNS: unified parameter type of nsapi_dns_query_async_cancel
2019-10-23 11:58:15 +03:00
Michal Paszta
83af4e0b36
DNS: Cast void* to intptr_t in nsapi_dns.cpp
...
This is for portability reasons. If this code was compiled to a 64-bit architecture, then the cast from void* to int would lose precision.
2019-10-23 11:58:00 +03:00
Martin Kojtal
c018b2bd46
Merge pull request #11677 from MukundGitHub/bt_firmware_update
...
Update BT Firmware to version 128.
2019-10-23 09:38:22 +02:00
Chun-Chieh Li
1bb351f410
DeviceKey: Fix random key doesn't generate on MBEDTLS_ENTROPY_HARDWARE_ALT
...
Originally, when DEVICE_TRNG is defined, MBEDTLS_ENTROPY_HARDWARE_ALT will also be defined
accordingly to provide entropy source. This is fine for targets supporting TRNG. However, for
targets without TRNG, it is also possible to provide non-TRNG entropy source solution via the
define MBEDTLS_ENTROPY_HARDWARE_ALT. Related discussion can be found at:
https://github.com/ARMmbed/mbed-os/issues/11680
2019-10-22 17:06:12 +08:00
Martin Kojtal
02c722af42
Merge pull request #11620 from jainvikas8/ISSUE-11256
...
Fix enum type to align with psa-arch-tests
2019-10-22 09:42:13 +02:00
mudassar-ublox
fa6c69c824
updated cellular context flags and cid in ublox-api
2019-10-22 11:17:46 +05:00
Mukund Ghonasgi
84f7e6a2f0
Update BT Firmware to version 128.
...
Fixes issues in BT firmware operation in low power mode.
2019-10-21 17:11:07 -07:00
Wajahat Abbas
c5f164d75f
Ensure modem echo is off
2019-10-21 15:02:08 +05:00
Martin Kojtal
95343276a5
Merge pull request #11717 from iliapenev/master
...
Fix Quectel M26 context hang
2019-10-21 11:54:50 +02:00
desmond.chen
d9e6110577
Handle legacy process event first on connection complete
2019-10-21 15:57:09 +08:00
Martin Kojtal
bfb435a899
Merge pull request #11657 from u-blox/ubx_apn_setting
...
Cellular: Fix apn check
2019-10-21 09:36:27 +02:00
Martin Kojtal
f6c28e54b6
Merge pull request #11586 from AnttiKauppila/lwip_improvements
...
Cleaned up Mbed LWIP configurations
2019-10-21 09:35:52 +02:00
Ilia Penev
ad1387b2fd
Fix Quectel M26 context hang
2019-10-21 00:48:22 +03:00
Martin Kojtal
9e87200809
Merge pull request #11556 from mikter/master
...
modified Wi-SUN tasklet to return success when calling connect twice
2019-10-18 16:07:25 +02:00
Martin Kojtal
4af05bb370
Merge pull request #11648 from rohfle/target-olimex-stm32e407
...
OLIMEX_STM32E407_F407ZG: Added new target platform
2019-10-18 16:05:05 +02:00
Martin Kojtal
0efea30377
Merge pull request #11644 from MukundGitHub/cypress_cordio_driver_host_wake_logic_changes
...
Cypress Cordio BT Driver setting Host MCU active during Host Wake assert
2019-10-17 14:26:11 +02:00
Mukund Ghonasgi
352ac5ed47
Address ARM Code review feedback.
2019-10-16 10:27:55 -07:00
jeromecoutant
0d678e9299
GREENTEA: init trace if trace is enabled in json
2019-10-16 11:47:07 +02:00
Martin Kojtal
16568da47f
Merge pull request #11605 from ABOSTM/DISCO_H747I_DUALCORE_SUPPORT
...
DISCO_H747I dualcore support
2019-10-16 17:35:25 +08:00
Martin Kojtal
19606710e6
Merge pull request #11630 from kivaisan/move_is_connected_as_protected
...
Cellular: Change visibility of _is_connected as protected
2019-10-16 15:58:50 +08:00
Martin Kojtal
fcd40ab1a5
Merge pull request #11628 from kyle-cypress/pr/directaccess-devicekey-test
...
Make devicekey remainder test more meaningful
2019-10-15 21:41:05 +08:00
Jaeden Amero
0573ba5fb6
Update Mbed Crypto to version 2.1.0d0
2019-10-15 14:23:26 +01:00
Jaeden Amero
f2d42bfa31
Update Mbed TLS to version 2.20.0d0
2019-10-15 14:14:01 +01:00
Mika Leppänen
3c39dbd737
Corrected nanostack PAE controller
2019-10-15 09:53:36 +03:00
Martin Kojtal
7522f9c348
Merge pull request #11667 from sathishm6/pr/ipv6-multi-cast-join-fix
...
Fixes IPv6 multicast join issue
2019-10-15 13:15:43 +08:00
Martin Kojtal
57c4a08e48
Merge pull request #11539 from mikaleppanen/cert_key_len_supp
...
Enable DER coded certificate support to Wi-SUN mesh API
2019-10-15 13:05:23 +08:00
Martin Kojtal
f05f03faed
Merge pull request #11512 from RonEld/fix_cc_ecdh_alt_for_mont_curve
...
Fix Failure in Cryptocell tests on Montgomrery curve
2019-10-15 13:03:26 +08:00
Alexandre Bourdiol
adcf0e2fa5
DISCO_H747I Dualcore support
...
Add 2 targets for DISCO_H747I dualcore:
* DISCO_H747I -> for CM7 core
* DISCO_H747I_CM4 -> for CM4 core
Current restrictions:
* TICKLESS deactivated
* DeepSleep not supported (DeepSleep wrapped to sleep)
Warning: use of the same IP (example I2C1) by both core at the same time is not prevented,
but is strongly not recommended.
Some Hardware Semaphore are use for common IP, to manage concurrent access by both cores: Flash, GPIO, RCC.
Warning: Drag and drop of binary to DISCO_H747I will flash CM7.
In order to flash CM4, one can use STM32 CubeProgrammer tool.
2019-10-14 18:02:57 +02:00
Sathish Kumar Mani
5b791a4345
Fixes IPv6 multicast join issue
...
Problem Statement:
During multicast join sequence, InternetSocket::join_multicast_group() calls InternetSocket::modify_multicast_group(). modify_multicast_group() sets up the multicast group address (i.e., mreq.imr_multiaddr) to be joined and the interface address (i.e., mreq.imr_interface) to be used for the multicast join request. The interface address is initialized with the default value, which sets the version of interface address to NSAPI_UNSPEC. This results in LWIP::setsockopt() API to attempt IPv6 multicast join on the IPv4 interface address, hence IPv6 multicast join always fails with the protocol error.
Fix:
Initialize interface address version based on the multicast address version in LWIP::setsockopt(), before attempting multicast join operation.
2019-10-14 17:41:27 +05:30
Michal Paszta
3d596468b4
Fix memory leak on NetworkInterface destruction
...
We dynamically allocate memory in every add_event_listener(), but we do not free it on NetworkInterface destruction.
2019-10-14 10:58:18 +03:00
Martin Kojtal
0e7d8927f1
Merge pull request #11615 from kivaisan/remove_deprecated_cellular_tests
...
Cellular: Remove old deprecated tests
2019-10-14 09:28:01 +02:00
Anna Bridge
489c30f569
Merge pull request #11297 from kyle-cypress/pr/qspi-dummy-cycles
...
Differentiate alt and dummy cycles in QSPIF
2019-10-11 14:34:17 +01:00
Antti Kauppila
691fc5525d
Fix build issue
2019-10-11 15:25:50 +03:00
Anna Bridge
64df07288c
Merge pull request #11551 from Tharazi97/Coverity
...
Coverity updates
2019-10-11 11:01:10 +01:00
Anna Bridge
917d982913
Merge pull request #11639 from JarkkoPaso/nanostack_release_for_mbedos_5_14_1
...
Nanostack patch release for mbedos 5.14.1
2019-10-11 10:59:16 +01:00
Anna Bridge
22951d7378
Merge pull request #11616 from u-blox/ubx_cellular_api
...
Cellular: Setting timeout before send command in gethostbyname.
2019-10-11 10:45:41 +01:00
Anna Bridge
319fd671b1
Merge pull request #11618 from AriParkkila/cell-stm-pwr
...
Cellular: Fix CellularStateMachine to not loop between init/power states
2019-10-11 10:44:36 +01:00
Rohan Fletcher
02df759c37
OLIMEX_STM32E407_F407ZG: Added new target platform
...
Added Olimex STM32-E407 (STM32F407ZG) evaluation board.
USB, UART, External HS XTAL and Ethernet are all working correctly.
2019-10-10 09:20:28 +13:00
mudassar-ublox
c8ade9032b
fix apn check
2019-10-09 12:31:53 +05:00
Tymoteusz Bloch
b8a18e29bd
NSAPI DNS query IP version check for non LWIP stacks.
2019-10-08 17:50:51 +02:00
Mukund Ghonasgi
f50417a3a0
Update Target Cypress Specific Cordio BT Driver to keep Host MCU active for the duration BT device asserts HOST WAKE. This change fixes race condition in Cypress Cordio driver.
2019-10-07 14:42:53 -07:00
Anna Bridge
ad891d9658
Merge pull request #11548 from AriParkkila/cell-dns-ip
...
Cellular: Fix resolving of DNS server IPv4/6 address
2019-10-07 16:46:47 +01:00
Anna Bridge
5108f9188d
Merge pull request #11558 from Tharazi97/Coverity_fixes
...
Coverity fixes
2019-10-07 14:52:11 +01:00
jeromecoutant
af8ab49a74
Avoid compilation if target doesn't support EMAC
2019-10-07 14:01:48 +02:00
Jarkko Paso
4cab344c59
Merge commit 'ffb05c770964013a9f1ee9fb89d25e9fd09e886d'
...
* commit 'ffb05c770964013a9f1ee9fb89d25e9fd09e886d':
Squashed 'features/nanostack/coap-service/' changes from e9edb1b..b919a33
2019-10-07 13:08:20 +03:00
Jarkko Paso
c15478021b
Merge commit '3e6cb31659a56d343c7b8fe37645f195eb87ffcf'
...
* commit '3e6cb31659a56d343c7b8fe37645f195eb87ffcf':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from c473148..0824752
2019-10-07 13:00:49 +03:00
jeromecoutant
587393bb45
STM32 EMAC: move from TARGET_STM_EMAC to TARGET_STM
2019-10-07 10:57:31 +02:00
Kimmo Vaisanen
1279c20ce6
Cellular: Change visibility of _is_connected as protected
...
AT_CellularContext::do_connect() is a virtual API and therefore can be overwritten in
inherited class. The problem was that it sets AT_CellularContext::_is_connected flag but
earlier it was set as private member making it impossible to set in overwritten do_connect()
method.
This commit fixes the problem by changing _is_connected as protected enabling its use
in inherited class.
2019-10-04 10:29:56 +03:00
Kyle Kearney
1cb6f7b31c
Make devicekey remainder test more meaningful
...
As of 722628be02
, the "remainder" configuration
also uses the default location near the end of flash. Which makes the two tests
nearly identical with the exception that the "last two sectors" test correctly
handles parts with a low (possibly 1:1) erase size to program size ratio.
Therefore, change the "remainder" test to instead be a "default" test that uses
the tdb_internal_address/size values, so that it
a.) tests something meaningfully different and
b.) tests using the custom TDB address/size values if they are provided.
c.) functions correctly on devices where the default sector-based size computation
does not work (e.g. because of the low erase size to program size ratio)
and therefore a custom location and size has been specified.
The is_conf_tdb_internal variable is unused and therefore removed.
2019-10-03 16:04:30 -07:00
Christopher Haster
de8df75ec0
Merge commit '70cb12e72bef7a1f220b0e5f21457b6930d984b2' into littlefs-v1.7.2
2019-10-03 09:56:09 -05:00
Anna Bridge
eeb033f814
Merge pull request #11357 from kivaisan/offloaded_tlssocket_bg96
...
Offloaded TLSSocket and BG96 support for it
2019-10-03 11:54:32 +01:00
Ari Parkkila
73145fd551
Cellular: Fix CellularStateMachine to not loop on power state
2019-10-03 01:12:14 -07:00
Kimmo Vaisanen
b6ebfeea2c
Cellular: Remove old deprecated tests
...
Cellular tests have been replaced with generic mbed-os netsocket and network interface tests.
2019-10-03 10:24:12 +03:00
mudassar-ublox
b2d0448351
setting timeout before send command
2019-10-03 12:22:17 +05:00
Vikas Katariya
c1486eaf41
Fix enum type to align with psa-arch-tests
...
This is related to https://github.com/ARMmbed/mbed-os/issues/11256
When TARGET_PSA is enabled on Cortex-A boards, the SECURE
is redeclared. So to minimize the impact we can redeclare this in
val.h which is used only by Mbed. And `security_t` itself is used in
mbed-os\components\TARGET_PSA\TESTS, but the SECURE string is not used.
Renamed to `caller_security_t` which aligns with
https://github.com/ARM-software/psa-arch-tests
2019-10-02 16:37:58 +01:00
Martin Kojtal
31114ba343
Merge pull request #11598 from JanneKiiskila/AT_Cell_err_warn
...
AT_CellularDevice.cpp - unused variable err warning
2019-10-01 13:35:03 +02:00
Martin Kojtal
828fd2378a
Merge pull request #11581 from AriParkkila/cell-pdp-cid
...
Cellular: Fix setting of PDP context ID (cid)
2019-10-01 13:32:47 +02:00
Martin Kojtal
f5b5989fc8
Merge pull request #11595 from SeppoTakalo/IOTSTOR-944
...
Check return of BlockDevice::init() in TDBStore.
2019-10-01 11:33:39 +02:00
Matthew Macovsky
baf375f8cb
Allow for arbitrary QSPI alt sizes
...
The QSPI spec allows alt to be any size that is a multiple of the
number of data lines. For example, Micron's N25Q128A uses only a
single alt cycle for all read modes (1, 2, or 4 bits depending on
how many data lines are in use).
2019-09-30 14:45:08 -07:00
Janne Kiiskila
55f6518853
AT_CellularDevice.cpp - unused variable err warning
...
We get this compiler warning;
Compile [ 7.9%]: AT_CellularDevice.cpp
[Warning] AT_CellularDevice.cpp@206,18: variable 'err' set but not used [-Wunused-but-set-variable]
Due to the fact, that the code that would actually use this variable
is behind trace flags. Based on review feedback from Antti Kauppila and
Kimmo Väisänen, adding same flagging also for that.
- Reason being - the operation needs to be within the locks.
2019-09-30 17:11:23 +03:00
Martin Kojtal
c385e141e2
Merge pull request #11535 from AnttiKauppila/DNS_cleanup
...
DNS manual cleanup mechanism added
2019-09-30 15:55:49 +02:00
Martin Kojtal
dc64165f34
Merge pull request #11597 from mirelachirica/errno_include_macosx
...
Missing errno.h include
2019-09-30 15:54:16 +02:00
Martin Kojtal
f30f7633e0
Merge pull request #11596 from kivaisan/fix_loramac_initialization_order
...
LoRa: Fix build warning about _ongoing_tx_msg
2019-09-30 15:38:17 +02:00
Martin Kojtal
d9a141e50a
Merge pull request #11518 from MukundGitHub/origin
...
Cypress Cordio Driver Update
2019-09-30 15:27:26 +02:00
Mika Tervonen
86e3a5a021
Modified Wi-SUN tasklet to return correct status when calling connect twice
...
When calling mesh connect method twice NSAPI_ERROR_IS_CONNECTED is returned
instead of NSAPI_ERROR_DEVICE_ERROR Following the mesh API documentation.
2019-09-30 14:15:14 +03:00
Mirela Chirica
0860f3e0f6
Cellular: Removed not used variable
2019-09-30 14:14:37 +03:00
Mirela Chirica
865a504542
Cellular: Include of errno.h needed for Mac OS X
2019-09-30 14:14:37 +03:00
Seppo Takalo
513891d4f6
Check return of BlockDevice::init() in TDBStore.
...
Return value was ignored, and TDBStore:init() ended up in a
MBED_ERROR() phase after that.
TDBStore API was limited to allow returning of only two separate
errors, which may end up hiding the actual return value. Change
the documentation slightly to allow returning of original error
code from the underlying block device.
Fixes #11591
2019-09-30 13:26:56 +03:00
Kimmo Vaisanen
4da74b6619
LoRa: Fix build warning about _ongoing_tx_msg
...
_ongoing_tx_msg was incorrectly initialized before _mlme_confirmation.
Fixes following build warning:
[Warning] LoRaMac.h@691,26: 'LoRaMac::_ongoing_tx_msg' will be initialized after [-Wreorder]
[Warning] LoRaMac.h@689,28: 'loramac_mlme_confirm_t LoRaMac::_mlme_confirmation' [-Wreorder]
[Warning] LoRaMac.cpp@68,1: when initialized here [-Wreorder]
2019-09-30 12:36:55 +03:00
Antti Kauppila
d34a40a745
Cleaned up Mbed LWIP configurations
2019-09-27 15:52:40 +03:00
Anna Bridge
727b089291
Merge pull request #11517 from balajicyp/tcp_pktloss
...
TCP Packet loss happens due to running of out of Mailbox size.
2019-09-27 13:27:27 +01:00
Ari Parkkila
e449e6dcdc
Cellular: Fix setting of PDP context ID (cid)
2019-09-27 02:09:36 -07:00
Balaji
4f8036b682
TCP Packet loss when TCP Receive mailbox is full.
2019-09-25 10:58:25 -07:00
Ari Parkkila
8054b8eef8
Cellular: Fix resolving of DNS server IPv4/6 address
2019-09-25 03:16:45 -07:00
Kimmo Vaisanen
6ba0efc969
Cellular: Use more specific error codes for socket open and connect
...
- When calling socket APIs when socket is not open, NSAPI_ERROR_NO_SOCKET will be
returned instead of generic NSAPI_ERROR_DEVICE_ERROR
- If socket_send() is called when connection is not open, NSAPI_ERROR_NO_CONNECTION
will be returned instead of generic NSAPI_ERROR_DEVICE_ERROR
2019-09-25 09:25:33 +03:00
Kimmo Vaisanen
b319be14e8
Offloaded TLSSocket for BG96
...
Some external modems have an internal TLSSocket implementation which can be used
instead of mbedtls based TLSSocket. Using offloaded TLSSocket can result in
significantly reduced ROM usage.
Offloaded TLSSocket can be enabled by enabling "nsapi.offload-tlssocket" and the used
network stack (e.g. cellular modem's CellularStack class) must support the setsockopt's
defined in nsapi_types.h.
Compared to original mbedtls based TLSSocket, offloaded TLSSocket brings in one significant
API limitation. Offloaded TLSSocket requires setting of certificates and keys after open()
and before connect() calls, where mbedtls based TLSSocket allows setting these before open()
call.
2019-09-25 09:25:33 +03:00
Mukund Ghonasgi
57d4103dd8
Adapt to Target that don't support 3M BT Uart Baud
2019-09-24 16:49:54 -07:00
Kyle Kearney
832c69b1a6
Explicitly set tdb internal flash size for PSOC6
...
The default computation assumes that a flash sector is several times
larger than a flash page. On PSoC 6 targets this is not the case
(the two values are the same) so the computed size is too small.
This is a similar change to 1b1f14d36b
,
but for devices which implement TDB in internal storage.
2019-09-24 11:31:04 -07:00
Martin Kojtal
d91ed5fa42
Merge pull request #11495 from kivaisan/improve_cellular_ut
...
Improve cellular unittests
2019-09-24 16:37:02 +02:00
Martin Kojtal
e1cfb7b908
Merge pull request #11534 from kivaisan/handle_qisend_send_fail
...
Cellular: Handle SEND FAIL and ERROR response
2019-09-24 13:30:32 +02:00
int_szyk
a60df639fe
thread_mle_message_handler: fix null comparison.
...
Fixes Coverity issue about comparing nullptr.
2019-09-24 12:53:53 +02:00
int_szyk
76407bc654
sn_coap_builder: remove unnecessary code.
...
Fixes Coverity issue about unused variable.
2019-09-24 11:35:52 +02:00
int_szyk
b0b9553991
CellularStack: remove unnecessary assignment.
...
Fixes Coverity issue about unused variable.
2019-09-24 11:05:01 +02:00
int_szyk
7c13b8f6b9
CellularUtil prefer_ipv6: check length.
...
Fixes Coverity issue about not checking the length of string before copying it.
2019-09-24 10:44:38 +02:00
Mukund Ghonasgi
15ee09c4bd
Update Cordio BT Driver to support without BT Device Wake and Host Wake pins defined.
2019-09-23 11:29:57 -07:00
int_szyk
62d07707c9
NFCEEPROM: fix _ndef_buffer_reader init in ctor.
...
Fixes Coverity issue about not initialized members.
2019-09-23 15:34:07 +02:00
int_szyk
d83cbb8766
NFC-Text: fix passing null pointer to a function.
...
Fixes Coverity issue about passing nullptr to memcpy.
2019-09-23 15:33:29 +02:00
int_szyk
081183c11e
NFC-URI: fix passing null pointer to a function.
...
Fixes Coverity issue about passing nullptr to memcpy.
2019-09-23 15:30:12 +02:00
Martin Kojtal
daafb950d9
Merge pull request #11538 from mirelachirica/ipv6_to_wise_1570
...
Cellular: Enable IPV6 for WISE_1570
2019-09-20 15:29:07 +02:00
Mika Leppänen
47e5dd74e2
Enabled DER coded certificate support to Wi-SUN mesh API
...
Wi-SUN mesh API uses now nanostack certificate interface with length parameters.
This enables that either PEM or DER formatted certificates can be used. Using
the length configuration for certificates and keys is optional, so existing
applications using the PEM certificates do not require changes.
2019-09-20 13:15:28 +03:00
Antti Kauppila
6adc2440a3
DNS manual cleanup mechanism added
2019-09-20 10:20:48 +03:00
Kimmo Vaisanen
1768b653ec
Cellular: Handle SEND FAIL and ERROR response
...
QISEND command can respond either SEND OK, SEND FAIL or ERROR.
If response is not SEND OK, sent bytes should not be checked but
error should be reported.
2019-09-20 10:06:32 +03:00
Martin Kojtal
11a34ec092
Merge pull request #11521 from u-blox/clear_after_sim_pin
...
Bux fix: Context can be cleared using CGDCONT after sim ready state
2019-09-19 17:15:55 +02:00
Mirela Chirica
090ce0358f
Cellular: Enable IPV6 for WISE_1570
2019-09-19 16:19:31 +03:00
Syed Fahimuddin Alavi
a269f714cc
Fix added to unlock AT handler mutex
2019-09-19 16:46:00 +05:00
Martin Kojtal
1afece7f1b
Merge pull request #11488 from kivaisan/fix_cellular_get_interface_name
...
Cellular: Fix get_interface_name to not include leading zero
2019-09-19 12:43:45 +02:00
Martin Kojtal
c1a1c22fe9
Merge pull request #11469 from AriParkkila/cell-clear-ndef
...
Cellular: Disable cellular.clear-on-connect by default
2019-09-19 10:37:10 +02:00
Martin Kojtal
185e380233
Merge pull request #11490 from AriParkkila/cell-bg96-ifc
...
Cellular: Add flow control (IFC) in BG96 AT driver
2019-09-19 10:25:47 +02:00
Martin Kojtal
15d200f3d3
Merge pull request #11499 from kivaisan/fix_quectel_m26_send
...
Cellular: Fix stop tag for Quectel M26 send command
2019-09-19 10:22:18 +02:00
Syed Fahimuddin Alavi
828fffbc4e
Bux fix: Context can be cleared using CGDCONT after sim ready state
2019-09-19 13:01:45 +05:00
Mukund Ghonasgi
0f5e3bf126
Cypress Cordio Driver Update
2019-09-18 11:11:37 -07:00
Ron Eldor
33b7c8ea2e
Fix Failure in cc ecdh_alt montgomery curve
...
Change the order of the input keys and output secret given and
returned from the CC API, to address correct endianity.
2019-09-18 16:48:45 +03:00
Jaeden Amero
eb00fbadb4
tls: Update to Mbed TLS 2.19.1
...
Update Mbed TLS to Mbed TLS 2.19.1.
2019-09-17 15:24:09 +01:00
Kimmo Vaisanen
ba4308344b
Cellular: Fix stop tag for Quectel M26 send command
...
Possible responses for send command are SEND OK<cr><ln>, SEND FAIL<cr><ln> or ERROR<cr><ln>
so normal OK<cr><ln> response check does not work properly.
2019-09-17 15:52:14 +03:00
Jaeden Amero
60f383e01f
tls: Update export keys callback to use const
...
Mbed TLS's export keys callback requires the hello.random (for both
server and client) to be const. Make the callbacks in Mbed OS that use
the key export feature use const to match.
2019-09-17 12:57:05 +01:00
Kimmo Vaisanen
b6ecce0bfb
Add UT for AT_CellularNetwork::is_active_context
2019-09-17 12:56:47 +03:00
Kimmo Vaisanen
e824714cd8
Add UT for CellularUtil::hex_to_char and ::hex_str_to_char_str
...
Also added checks for pointer validity.
2019-09-17 12:15:03 +03:00
Ari Parkkila
823993e7b1
Cellular: Add flow control (IFC) in BG96 AT driver
2019-09-16 03:16:36 -07:00
Martin Kojtal
9673ac1283
Merge pull request #11474 from dgreen-arm/fix-mbed-crypto-importer
...
Remove Mbed Crypto source files before importing
2019-09-16 11:25:21 +02:00
Kimmo Vaisanen
ab71b2dba8
Cellular: Fix get_interface_name to not include leading zero
...
Multihoming documentation about interface name:
"Two character name string is concatenated with 8 bit value containing index which is incremented on each netif addition"
Cellular uses context id as index and to follow LWIP (LWIP::Interface::get_interface_name), index does not include leading zeros.
2019-09-16 09:59:31 +03:00
Yogesh Pande
246f431ed4
Delaying message id random initialization to later stage.
...
Random initialization sequence is causing start up issues in multiple platform
when done at construction phase.
The right thing is to delay the random initialization to later stage when the
message id is actually required. This provides system to do all necessary allocation
upfront without causing any random race condition at startup phase.
2019-09-13 16:17:14 +03:00
Martin Kojtal
bf1aa5c016
Merge pull request #11465 from kotkcy/pr/mxcrypto_alts
...
Updated mbedTLS CRYPTO target to be more flexibly configured for supported boards
2019-09-13 12:31:12 +02:00
Martin Kojtal
66c39e0bca
Merge pull request #11424 from mirelachirica/stack_type_ip_versions
...
Stack type ip versions
2019-09-13 11:46:06 +02:00
Darryl Green
4b0f0ed61c
Remove Mbed Crypto source files before importing
2019-09-12 16:04:44 +01:00
Mirela Chirica
78f4e8b12f
Cellular: Enable IPv6 stack property for BG96
2019-09-12 12:56:29 +03:00
Mirela Chirica
7aaaae121e
Cellular: IP stack property redefined
2019-09-12 12:56:28 +03:00
Mirela Chirica
b44ba531a1
Cellular: Check IP version of send to address
2019-09-12 12:56:28 +03:00
Mirela Chirica
ea1b2b8045
Cellular: Stack type based on assigned IP addresses versions
2019-09-12 12:55:33 +03:00
Ari Parkkila
5fbcaeaca5
Cellular: Disable cellular.clear-on-connect by default
2019-09-12 00:02:14 -07:00
Kostiantyn Tkachov
9fc299a1cc
Updated mbedTLS CRYPTO target to be more flexibly configured for supported boards
2019-09-12 01:30:54 +02:00
Martin Kojtal
3297bf4062
Merge pull request #11420 from tymoteuszblochmobica/cm3ds
...
Fixed smsc9220_emac link_out memory management.
2019-09-10 19:52:44 +02:00
Ari Parkkila
94dcab9d69
Cellular: Add API to clear CellularDevice
...
A new API `CellularDevice::clear()` to clean-up the modem to a default initial state.
Function is virtual so it can be overridden. The default implementation clears all PDP contexts,
but the the first one if that has APN defined as `nsapi.default-cellular-apn`.
CellularStateMachine calls `clear()` to clean-up the modem on initial `connect()`,
if the flag `cellular.clear-on-connect: true` is defined.
2019-09-09 06:14:20 -07:00
Jaeden Amero
ea834ebc2a
crypto: Update to Mbed Crypto 2.0.0
2019-09-06 16:15:47 +01:00
Jaeden Amero
612255f8c3
tls: Update to Mbed TLS 2.19.0
2019-09-06 16:15:47 +01:00
Martin Kojtal
87cdef9258
Merge pull request #11408 from SeppoTakalo/mbed_trace_nanomesh
...
Remove mbed_trace dependency to Nanomesh headers
2019-09-06 14:36:14 +02:00
Seppo Takalo
a7634a1e5a
Include ns_types.h before mbed_trace.h in Nanomesh
2019-09-06 13:05:19 +03:00
Martin Kojtal
c2df0013e9
Merge pull request #11423 from JarkkoPaso/nanostack_release_for_mbedos_5_14
...
Nanostack release for mbedos 5 14
2019-09-06 12:02:31 +02:00
Martin Kojtal
21ebb725c5
Merge pull request #10991 from RonEld/update_readme_for_optin_in_modules
...
Explaining how to opt in modules
2019-09-06 11:41:41 +02:00
Seppo Takalo
40841453a5
Remove mbed_trace dependency to Nanomesh headers
...
This library only uses standard types from C99, and
thus does not need compiler specific tweaks from ns_types.h
2019-09-06 10:40:14 +03:00
Jarkko Paso
4ebbbc592d
Merge commit '396dae52ab4eef15910011432f2c7a4261fc22b7'
...
* commit '396dae52ab4eef15910011432f2c7a4261fc22b7':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 4a19dc4..c473148
2019-09-05 14:28:22 +03:00
Martin Kojtal
978296a26d
Merge pull request #11372 from AriParkkila/bg96-pwr
...
Cellular: Fix BG96 power on and connect
2019-09-05 13:10:26 +02:00
Martin Kojtal
0427bb7469
Merge pull request #11396 from gpsimenos/remove-sms-floats
...
Remove floating point from AT_CellularSMS
2019-09-05 11:12:17 +02:00
Martin Kojtal
567479792c
Merge pull request #11392 from hugueskamba/hk-remove-minor-warnings
...
Remove minor build warnings
2019-09-05 09:59:39 +02:00
Martin Kojtal
d135e9bf32
Merge pull request #11394 from hugueskamba/hk-replace-deprecated-wait_us
...
Replace wait_ms calls with rtos::ThisThread::sleep_for
2019-09-05 09:56:57 +02:00
Martin Kojtal
34a3948d6e
Merge pull request #11395 from hugueskamba/hk-replace-non-trivial-struct-initialization
...
Avoid non-trivial copy when initializing lorastack struct
2019-09-05 09:55:49 +02:00
Martin Kojtal
f0234268f5
Merge pull request #11046 from kotkcy/pr/cy_mbedtls_alt
...
Initial implementation of Cypress Crypto hardware acceleration for mbedTLS
2019-09-05 09:43:06 +02:00
Jarkko Paso
da0fe81bfd
Mesh API, Wi-SUN: Initialize Wi-SUN settings with values from json
2019-09-04 15:53:21 +03:00
Tymoteusz Bloch
2626d90266
Fixed msc9220_emac link_out memory management.
2019-09-04 13:59:36 +02:00
Ari Parkkila
cb20277701
Cellular: Fix BG96 power on and connect
2019-09-04 03:24:11 -07:00
Martin Kojtal
208d703b7e
Merge pull request #11338 from cydriftcloud/pr/psoc6-softap-bringdown
...
Bring down interface when stopping softap
2019-09-04 11:54:23 +02:00
Martin Kojtal
aba0760652
Merge pull request #10684 from jarvte/fix_athandler_destr
...
Cellular: fix ATHandler destructor possible crash on delete
2019-09-04 11:52:59 +02:00
Antti Yli-Tokola
1708ec2a3f
nsapi_dns: cleanup dns queue when running out or memory
2019-09-03 13:56:21 +03:00
Hugues Kamba
a306ad758d
Avoid non-trivial copy when initializing lorastack struct
...
Using memset generates a warning about the non-trivial operation.
Use member-initializer-list instead to initialise the structs members.
2019-09-03 11:08:04 +01:00
Hugues Kamba
9715587042
Remove extraneous parentheses.
2019-09-03 09:58:08 +01:00
Hugues Kamba
8c22bbbbc8
Use PRIu32 to print uint32_t variable
...
As the variable underlying type size is different depending on the
toolchain used
2019-09-03 09:29:06 +01:00
Martin Kojtal
e001216b55
Merge pull request #11315 from Patater/psa-crypto-api-1.0b3
...
Update Mbed OS for PSA Crypto API 1.0b3
2019-09-03 09:20:15 +02:00
Teppo Järvelin
753ba8ceb6
Cellular: fix ATHandler destructor possible crash on delete
...
In some multithread cases there is possibility that process_oob function
was called after ATHandler was deleted. Fix is to wait if oob processing
is ongoing.
2019-09-03 09:09:05 +03:00
Kostiantyn Tkachov
235949b1f4
Changed order of config file checking in include defines
2019-09-02 22:17:25 +03:00
Jaeden Amero
95d448b63d
attestation: Erase storage before test
...
Be robust when keys can't be opened for deletion by erasing storage and
thereby all keys.
2019-09-02 17:10:59 +01:00
Jaeden Amero
3d1b8363db
Use PSA Crypto API 1.0b3
...
The PSA Crypto API has moved on from 1.0b2 to 1.0b3, bringing along with
it some breaking changes. Update Mbed OS to use the 1.0b3 API.
2019-09-02 17:10:59 +01:00
George Psimenos
93cebc189c
Avoid potential overflow
2019-09-02 15:48:30 +01:00
Hugues Kamba
97acdc59a3
Replace wait_ms calls with rtos::ThisThread::sleep_for
...
`wait_ms` is deprecated and its use generates a warning.
2019-09-02 15:24:10 +01:00
Hugues Kamba
e65a0c0a99
Remove minor build warnings
2019-09-02 15:04:58 +01:00
Kostiantyn Tkachov
08fd15796a
Removed TABs from the ALT source files
2019-09-02 17:00:13 +03:00
George Psimenos
4df70449fe
Replace difftime and float literals
2019-09-02 14:56:56 +01:00
Kostiantyn Tkachov
cdbf30dd0f
Removed obsoleted typedef for mbedtls_be128[] in aes_alt.c
2019-09-02 16:29:00 +03:00
Kostiantyn Tkachov
f702d15855
Fixed SHA ctx and ilen parameters checking
2019-09-02 15:20:11 +03:00
Kostiantyn Tkachov
50a8592104
Fixed SHA ctx and ilen parameters checking
2019-09-02 15:20:11 +03:00
Kostiantyn Tkachov
7cbfa84625
Initial commit to add mbedTLS hardware acceleration for Cypress chips to mbed-os sources
2019-09-02 15:20:11 +03:00
Martin Kojtal
39733cbc0b
Merge pull request #11306 from AnttiKauppila/ATHandler_improvements
...
At handler improvements
2019-09-02 12:08:44 +02:00
Lei Zhang
5a3562a76b
Bringdown interface when stopping softap
...
The interface should be brought down when stopping softap.
2019-08-30 08:59:36 -07:00
Roman Okhrimenko
ed9995e06c
PSOC6_SB: Initial commit to add CY8CPROTO_064_SB to mbed-os sources.
2019-08-30 15:10:18 +03:00
Antti Kauppila
9151606bb2
AT locks placed for UBlox AT handling
2019-08-30 08:54:34 +03:00
Martin Kojtal
c99b150bcf
Merge pull request #11356 from kyle-cypress/pr/whd-link-state-fix
...
Fix WHD link state change event handling
2019-08-30 07:44:40 +02:00
Martin Kojtal
a65ed8c3d8
Merge pull request #11303 from jeromecoutant/PR_H743ZI2_480
...
NUCLEO_H743ZI2 : increase system clock from 400 MHz to 480 MHz
2019-08-29 17:10:06 +02:00
Martin Kojtal
9203c88b1e
Merge pull request #11275 from VeijoPesonen/disable_nvstore
...
Enable building feature storage with a bare metal profile
2019-08-29 17:05:54 +02:00
Martin Kojtal
40a84fc96f
Merge pull request #11359 from anttiylitokola/update-mbed-coap-to-5.0.0
...
Update mbed-coap to version 5.1.0
2019-08-29 16:37:09 +02:00
Lei Zhang
0b2e7bbef9
Use event handlers for link state callback
...
Allows DHCP to listen for device disconnect and refresh ip lease on reconnect.
2019-08-29 07:19:46 -07:00
Jaeden Amero
4eb4b32910
psa: Update crypto service for PSA Crypto 1.0b3
2019-08-29 14:55:21 +01:00
Jaeden Amero
ea17d58b49
mbedtls: Update Mbed TLS and Mbed Crypto
...
Update Mbed TLS to 2.19.0d0 and Mbed Crypto to 2.0.0d1.
2019-08-29 14:55:05 +01:00
Veijo Pesonen
155f04713a
Revert "Sets NVStore disabled by default"
...
This reverts commit bda7678071
.
2019-08-29 14:50:40 +03:00
Martin Kojtal
8ef742a49c
Merge pull request #11370 from u-blox/ublox_odin_driver_os_5_v3.7.1_rc1
...
Driver Updates + ARMC6 driver support + WIFI fixes
2019-08-29 13:35:06 +02:00
Antti Yli-Tokola
5f92db3c12
Add a flag to maintain backward compatibility
...
By default CoAP will create a copy of the whole data to be passed to application and it keeps the backward compatibility.
If enabled, application must NOT free the payload when it gets the COAP_STATUS_PARSER_BLOCKWISE_MSG_RECEIVED status.
And application must call sn_coap_protocol_block_remove() instead.
2019-08-29 13:34:24 +03:00
Martin Kojtal
453122944c
Merge pull request #11366 from 0xc0170/dev_rollup
...
Rollup part 2 for 5.14
2019-08-29 09:28:49 +02:00
Martin Kojtal
4d2078ebe8
Merge pull request #11367 from kyle-cypress/pr/cypress-5.14-rollup
...
Cypress 5.14 rollup
2019-08-29 08:42:49 +02:00
Martin Kojtal
c4a2e3f879
Merge pull request #11349 from VeijoPesonen/tdbstore_ecc_fix
...
TDBStore bugfix: won't rely on flash erase value to detect is a sector erased
2019-08-29 08:38:48 +02:00
Martin Kojtal
c1f1b2a609
Merge pull request #11339 from sathishm6/topic/pr-bct-auto-ip-fix
...
mbed-os/LwIP changes and fixes in auto-IP for Bonjour Conformance Test
2019-08-29 08:38:32 +02:00
aqib-ublox
7f36fbc86e
Driver Updates + ARMC6 driver support + wifi fixes
2019-08-29 11:33:29 +05:00
Kyle Kearney
8abada11f6
Add missing newlines to end of files
2019-08-28 10:56:15 -07:00
Lei Zhang
b27653af6f
Use individual headers instead of "mbed.h"
2019-08-28 10:56:15 -07:00
Kyle Kearney
26940e5c22
Add support for DHCP server with WHD
2019-08-28 10:56:15 -07:00
Kyle Kearney
0ee6dfd4a8
Fix deprecated wait_ms warning in Cypress BLE
...
Migrate to using ThisThread::sleep_for instead.
2019-08-28 10:56:15 -07:00
Mukund
41dded9ec5
Improve Cordio low power assist
...
Allow more flexibile configuration for BLE radio pins
2019-08-28 10:56:15 -07:00
Kyle Kearney
8c2dec1233
Update board hardware configuration
...
Include all configurator design files with each BSP
2019-08-28 10:56:15 -07:00
Kyle Kearney
e64fdba7fc
Update BSP and WifiInterface for WHD Changes
2019-08-28 10:56:14 -07:00
Martin Kojtal
de627dad6a
Merge branch 'read-int-zero' of git://github.com/dextero/mbed-os into dev_rollup
2019-08-28 18:37:46 +01:00
Martin Kojtal
206e52c574
Merge branch 'pr/tdbstore-missing-offset' of git://github.com/kyle-cypress/mbed-os into dev_rollup
2019-08-28 18:37:02 +01:00
Martin Kojtal
95fc8cfa2c
Merge pull request #11322 from kyle-cypress/pr/lwip-buffer-size
...
Updated the LWIP buffer pool size for PSoC6
2019-08-28 19:05:55 +02:00
Martin Kojtal
7eb97be5a3
Merge pull request #11358 from 0xc0170/dev_rollup
...
Rollup PRs for 5.14
2019-08-28 16:39:36 +02:00
Martin Kojtal
67d1bb180b
Merge pull request #11319 from kyle-cypress/pr/whd-1.30-update
...
Update WHD to 1.30.0
2019-08-28 16:11:24 +02:00
Antti Kauppila
2aac56f79a
NetworkInterface set_blocking() doxygen corrected
2019-08-28 13:12:07 +01:00
Vairamuthu Ramasamy
782734cae2
Added MBED_CONF_ prefix to QSPI pins, GitHub issue# 10060
2019-08-28 13:12:07 +01:00
Tymoteusz Bloch
83aa8b038b
Supressed coverity warnings for intentional NULL passing to ip_reass_dequeue_datagram
2019-08-28 13:12:07 +01:00
Kyle Kearney
5820a3172f
Fix typos in comments
2019-08-28 13:12:05 +01:00
Qinghao Shi
4a0ca21edd
BLE TEST: remove duplicated and failing test
2019-08-28 13:12:04 +01:00
Martin Kojtal
d6304e322c
Merge pull request #11181 from artokin/mbed_wisun_api_update
...
mbed-mesh-api: Add new API for Wi-SUN configuration
2019-08-28 13:50:13 +02:00
Antti Yli-Tokola
d74326e5cc
Update changelog about the breaking change
2019-08-28 14:22:03 +03:00
Martin Kojtal
a6372e521c
Merge pull request #11345 from yogpan01/fix-bare-metal-pdmc
...
Fix bare-metal configuration to support Pelion Device Management Client
2019-08-28 13:07:36 +02:00
Sathish Kumar Mani
a4aeee941d
mbed-os/LwIP changes and fixes in auto-IP for Bonjour Conformance Test
...
This PR is to fix the issues in LwIP for AutoIP which is required for passing Bonjour Conformance Test for mDNS. Following gives the summary of the changes/fixes added.
Changes:
1. Following issues are fixed in LwIP for AutoIP.
- Fixed bug in max conflict rate limiting: According to RFC section RFC 3927 Section 2.2.1 conflict probe interval should be increased to 60 seconds, once conflict count reaches after MAX_CONFLICTS (i.e., 10) counts. The initial value of 'autoip->tried_llipaddr' is 0. Hence the probe interval (i.e., autoip->ttw) should be increased to 60 secs when 'autoip->tried_llipaddr >= MAX_CONFLICTS'
- Added code to free 'autoip' client in autoip_stop() API: New 'autoip' client is allocated in autoip_start() API, and the client is not freed during autoip_stop(). This would result in memory leak, if not freed. Updated autoip_stop() API to take care of releasing the memory allocated for 'autoip' client.
2. Introduced a configurable macro "MBED_CONF_LWIP_DHCP_TIMEOUT" in "lwipopts.h" to configure DHCP timeout based on the usecase requirement. For example: bonjour conformance test would need a DHCP timeout value which is grater than 320 secs to run mDNS probing test to verify protocol compilance of the implementation.
Tested the fixes using Bonjour Conformance Test tool Version 1.5.0 for IPv4. It has successfully passed Bonjour Conformance Test.
2019-08-28 15:57:36 +05:30
Antti Yli-Tokola
2774e3f301
Update mbed-coap to version 5.0.0
...
- Reduce heap footprint by storing only single block when receiving a blockwise message.
* User is now responsible of freeing the data by calling sn_coap_protocol_block_remove() and must not free the payload separately.
- Bug fix: Request blockwise transfer if incoming payload length is too large and when it comes without block indication.
2019-08-28 11:26:55 +03:00
Arto Kinnunen
f8289ec0ac
mbed-mesh-api: Add API set_file_system_root_path
2019-08-28 09:34:30 +03:00
Arto Kinnunen
774162dd83
mbed-mesh-api: Add new Wi-SUN certificate API
...
Add new API for setting Wi-SUN:
-Setting own/trusted certificates
-Removing own/trusted certificates
2019-08-28 09:34:30 +03:00
Arto Kinnunen
c0f3cb7568
mbed-mesh-api: Add new Wi-SUN API
...
Add new API for setting Wi-SUN:
-network name
-regulatory domain, operating mode and operating class
2019-08-28 09:34:30 +03:00