Kevin Bracey
04580b73d8
C++11-ify virtualisation in Nanostack classes
...
Use `override` and `final` where appropriate, and eliminate unnecessary
`virtual`.
Some other C++11 simplifications.
Eliminate two unused header files (with no corresponding source files).
Reduces code size.
2020-02-21 15:20:57 +02:00
Kevin Bracey
f40c5616e1
Inline nsapi_create_stack(NetworkStack)
...
The rather fiddly `nsapi_create_stack` template + overloads used during
socket formation don't inline their core, which is the identity operation
for `NetworkStack *` itself. Make code generation easier by having that
core be inline.
2020-02-21 15:13:14 +02:00
Martin Kojtal
8f1bf967d3
Merge pull request #11942 from michalpasztamobica/remove_deprecated_apis
...
IPCore String-based API removal
2020-02-21 12:14:06 +00:00
Martin Kojtal
72b2fcf29a
Merge pull request #12384 from jeromecoutant/PR_WBDEBUG
...
STM32WB : update BLE part with better support
2020-02-21 12:12:42 +00:00
Marcin Tomczyk
b5d0b7b6f1
IOTSTOR-1009 - TDBStore magic number if endian sensitive - remove incorrect comment
2020-02-21 00:57:50 -08:00
Arto Kinnunen
da04cc3fcf
Update STM32 EMAC driver based on review
...
-Fix len type
-Use ETH_RX_BUF_SIZE instead of hard-coded value 1500
2020-02-21 10:26:57 +02:00
Arto Kinnunen
6a410f89eb
Update STM32 EMAC driver - limit RX frame length
...
DISCO_F769NI EMAC driver may return ethernet packet with illegal
length when driver is under heavy load. In one case, the received
bytes indicate frame length of 53 bytes but advertised data length
was 65518 bytes. In another case EMAC driver variable
`EthHandle.RxFrameInfos.length` contained value 0xFFFF FFFC.
As a work-around accept only 1-1500 bytes long ethernet packets.
2020-02-21 10:26:40 +02:00
Arto Kinnunen
85e85ee93a
Merge commit 'e7914df2fc0d604e27f5c26c935d05181f6be72d'
...
* commit 'e7914df2fc0d604e27f5c26c935d05181f6be72d':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 9b3e144f5b..fb7413b846
2020-02-20 16:29:05 +02:00
Seppo Takalo
94bb831753
Extend storage tests with de-init test case
2020-02-20 12:22:16 +02:00
jeromecoutant
f0370222d8
STM32WB BLE : add FW version when trace is enabled
2020-02-20 09:20:43 +01:00
jeromecoutant
55b42a683e
STM32WB HCIDriver trace update
2020-02-20 09:20:36 +01:00
Martin Kojtal
69a0542ade
Merge pull request #12453 from jeromecoutant/PR_TRACEGROUP
...
STM32 TRACE_GROUP update
2020-02-19 14:33:17 +00:00
Martin Kojtal
1b8370d495
Merge pull request #12444 from DavidLin1577/patch-5
...
Fixed typo: 'lenght' in ns_crc.h
2020-02-19 14:32:26 +00:00
Martin Kojtal
b1c1857ae5
Merge pull request #12445 from DavidLin1577/patch-6
...
Fixed typo: 'lenght' in ip6string.h
2020-02-19 14:32:10 +00:00
Martin Kojtal
d4cff726ee
Merge pull request #12443 from DavidLin1577/patch-4
...
Fixed typo: 'lenght' in coap_service_api.h
2020-02-19 14:31:16 +00:00
Martin Kojtal
9f5ced30dc
Merge pull request #12415 from jeromecoutant/PR_H7README
...
STM32H7 : add readme file for dual core use
2020-02-19 12:52:10 +00:00
jeromecoutant
2df428b36d
MBED_STACK_STATS_ENABLED : Add stack_name information in greentea metrics
2020-02-18 18:00:40 +01:00
Tymoteusz Bloch
0e7a53cdb1
DeviceKey Root of Trust generation refactored.
...
It's no longer automatically and silently created.
2020-02-18 16:32:20 +01:00
jeromecoutant
f000b87911
STM32 TRACE_GROUP update
...
Only 4 characters is allowed
2020-02-17 16:38:42 +01:00
David Lin
49b0f43cff
Fixed typo: 'lenght' in ip6string.h
...
Note that the word 'lenght' is wrong,
so that 'lenght' should been replaced with 'length'.
2020-02-16 18:38:19 +08:00
David Lin
1df601dea0
Fixed typo: 'lenght' in ns_crc.h
...
Note that the word 'lenght' is wrong,
so that 'lenght' should been replaced with 'length'.
2020-02-16 18:31:22 +08:00
David Lin
e8f632a3d1
Fixed typo: 'lenght' in coap_service_api.h
...
Note that the word 'lenght' is wrong,
so that 'lenght' should been replaced with 'length'.
2020-02-16 18:26:14 +08:00
Martin Kojtal
3d038e55ee
Merge pull request #12396 from felser/mtqn-IPV4V6
...
PDP Type needs to be IPV4V6
2020-02-14 14:56:48 +00:00
Martin Kojtal
bac5ffec85
Merge pull request #12398 from michalpasztamobica/block_device_unittests
...
Add BlockDevice unittests and fix issues they revealed
2020-02-14 08:23:06 +00:00
Martin Kojtal
a8188bfd4d
Merge pull request #12166 from hugueskamba/hk-baremetal-NRF52840_DK-fix
...
NRF52840_DK: Fix baremetal linker error
2020-02-14 08:21:27 +00:00
Michal Paszta
a3ba7d964d
FlashSimBlockDevice: initialize blanks buffer
2020-02-13 15:19:11 +02:00
Martin Kojtal
d7f3341974
Merge pull request #12339 from jeromecoutant/PR_MODEMVERSION
...
Cellular : add modem version in mbed trace
2020-02-13 13:04:30 +00:00
Martin Kojtal
667f8bbcd3
Merge pull request #12405 from zhiyong80/Customize-Etherhet-Phy-Addr-of-STM32-Boards
...
EthernetInterface fix detecting change of connection status on ARCH_MAX
2020-02-13 09:44:53 +00:00
Martin Kojtal
69a2803319
Merge pull request #12401 from hugueskamba/hk-remove-float-in-ticker
...
Remove float symbols from apps that use the NFCController class
2020-02-12 13:12:46 +00:00
jeromecoutant
0c8add6e28
DISCO_H747I_CM4 compilation issue
...
SCB_DisableDCache() function is only available for M7 core.
2020-02-12 09:14:58 +01:00
Zhiyonh Li
128d5b5170
Update mbed_lib.json
2020-02-10 23:26:28 -08:00
Zhiyonh Li
884f9c99e3
Fixed bug that EthernetInterface doesn't detect change of connection status on ARCH_MAX board.
...
ARCH_MAX board uses 0x01 as PHY address, different from other NUCLEO STM32 boards. To faciliate change of PHY address of customized boards, a configuration entry eth-phyaddr was added and can be overriden as needed in mbed_app.json by adding "stm32-emac.eth-phyaddr": X. Macro ETH_ARCH_PHY_ADDRESS was also renamed to ETH_PHY_ADDRESS, because it is not only used by ARCH_MAX board but also other boards.
2020-02-10 17:56:09 -08:00
Hugues Kamba
65fbee1d33
NRF52840_DK: Fix baremetal linker error
...
Compile in the inclusion of cryptocell310 only if the library is included
in the build
2020-02-10 15:18:46 +00:00
Hugues Kamba
ec2c341767
Remove float symbols from apps that use the NFCController class
...
Use the `Ticker` API that does not use floating point types and literal.
Also pass timeout in seconds instead of incorrectly passing milliseconds.
2020-02-10 15:00:09 +00:00
Martin Kojtal
563c1169b8
Merge pull request #12349 from artokin/wisun_configuration_update
...
Nanostack: Update Wi-SUN configuration
2020-02-10 14:25:08 +00:00
Martin Kojtal
94e191f57a
Merge pull request #12399 from kivaisan/delete_context_if_activation_fails
...
Cellular: Delete created context if activation fails
2020-02-10 14:21:30 +00:00
Martin Kojtal
88438dfd6c
Merge pull request #12394 from miteshdedhia7/pr/bug-fix-misc
...
Fix SDIO communication issue on Cypress 1M boards and other minor fixes
2020-02-10 14:05:11 +00:00
Martin Kojtal
deb4995dae
Merge pull request #12150 from Patater/update-tls-crypto-20191220
...
Update Mbed TLS and Mbed Crypto to latest as of 2019-12-20
2020-02-10 13:04:12 +00:00
Kimmo Vaisanen
2b19fd8661
Cellular: Delete created context if activation fails
...
If new context is created but the activation fails to any error, it will
be automatically deleted.
Fixes issue #12381
2020-02-10 13:14:21 +02:00
Michal Paszta
10481f2f7e
BlockDevice: multiple fixes to BlockDevice classes
...
Incorrect addresses only cause error return values instead of assertion.
ExhaustibleBlockDevice has working get/set_erase_cycle functions and an
array preventing programming without erase.
Fixed MBRBlockDevice partitioning function.
2020-02-10 09:53:49 +02:00
Leon Lindenfelser
77218f04e0
PDP Type needs to be IPV4V6
...
1.Testing with Verizon and AT&T SIMs, PDP type is automatically set to IPV4V6.
2. Testing with AT&T IoT SIM, PDP type automatically sets to IP. It will connect
but not communicate. Setting a subsequent APN to IPV4V6 with the same APN communicates.
2020-02-07 15:31:40 -06:00
midd
5f496a694c
Add missing error checks for emac power up.
2020-02-07 10:25:15 -08:00
Martin Kojtal
d847f9f164
Merge pull request #12305 from kivaisan/remove_multi_athandler_support_v2
...
Cellular: Remove support for multiple ATHandlers
2020-02-07 11:00:41 +00:00
jeromecoutant
5f1ea7d57b
Cellular : add modem version in mbed trace
2020-02-06 14:40:23 +01:00
Michal Paszta
f21b8c7fc1
Remove remaining string-based API functions
...
This removes any compiler warnings.
2020-02-06 11:27:50 +02:00
Michal Paszta
458957d399
IPCore deprecated string-based API removal
...
String-based functions should be replaced with an explicit DNS hostname resolution and a SocketAddress-based API.
2020-02-06 11:27:49 +02:00
Martin Kojtal
8dc15ee6e1
Merge pull request #12293 from mirelachirica/remove_empty_api
...
Cellular: Remove API's empty default implemetations
2020-02-06 09:05:40 +00:00
Martin Kojtal
96861107f5
Merge pull request #12251 from kivaisan/remove_friends_from_statemachine
...
Cellular: Remove friend definitions from cellular state machine
2020-02-05 14:51:29 +00:00
Arto Kinnunen
5836b7e580
Update Wi-SUN configuration
...
-Improve help texts of Wi-SUN configuration values
-Add min/max value checks to Wi-SUN configuration values
-Define default values for some parameters, instead of referring to
Nanostack internal default values.
2020-02-05 15:01:04 +02:00
Martin Kojtal
e3ad1cae55
Merge pull request #12334 from AriParkkila/cell-c030-r412m
...
Update cellular drivers/tests for UBLOX_C030_R412M
2020-02-05 12:50:11 +00:00
Martin Kojtal
c63daa5fb8
Merge pull request #12355 from panmasuo/hani_iot_new_target
...
HANI_IOT: add new target board support
2020-02-04 08:37:12 +00:00
Martin Kojtal
586341541c
Merge pull request #12329 from jeromecoutant/PR_ATCELL
...
AT_CellularStack: crash during TCP test
2020-02-03 17:00:00 +00:00
Martin Kojtal
62cc4ece8d
Merge pull request #12345 from VeijoPesonen/fix_compiler_warnings
...
USBMSD; NFCEEPROM; mbed_compat: Fix compiler warnings
2020-02-03 16:59:35 +00:00
Martin Kojtal
8b829e5c41
Merge pull request #12312 from cy-arsm/cy-arsm/pr/ipv6-fix-SoftAPmode
...
Fix to sending IPV6 UPD packet fails IPv6 enabled in SoftAP intf
2020-02-03 16:55:09 +00:00
Pawel Zarembski
620442305f
hani_iot: add spif storage config
2020-02-03 14:03:09 +01:00
Kevin Bracey
d99f128679
Merge pull request #12316 from rajkan01/bug_fix_general_filesystem_test
...
Fix general filesystem greentea test
2020-01-31 15:01:09 +02:00
Veijo Pesonen
dad7d851db
NFCEEPROM: fixes a compiler warning
2020-01-31 10:18:02 +02:00
Ari Parkkila
1234b3fc28
Cellular: Fix UDP/IP on UBLOX_AT driver
2020-01-29 03:04:46 -08:00
Ari Parkkila
d6f8fece69
Cellular: Enable IP over PPP on UBLOX_C030_R41XM
2020-01-29 03:03:35 -08:00
Vincent Coubard
cb340f8f55
BLE: Fix documentation of set_random_static_address
...
Co-Authored-By: Lingkai Dong <lingkai.dong@arm.com>
2020-01-29 09:53:12 +00:00
Arun S
18285e1fc1
Pairing fails when IPv6 enabled in SoftAP intf
...
Issue: udp_sendto() Fails for multicast IPV6 packet when interface is switched from SoftAP to STA mode.
When SoftAP start is called, add_ethernet_interface() will be called internally to add interface details into netif_list.
When switching from SoftAP to STA mode, add_ethernet_interface() will be called again to append the interace details into netif_list.
When udp_sendto() is called, ip6_route() will return interface as NULL since it consider device as single interface.
Fix: SoftAP mode Stop, call remove_ethernet_interface() to remove the interface from the netif_list.
2020-01-29 15:07:52 +05:30
Vincent Coubard
1970761880
BLE : Replace calls to Gap::setAddress with HCIDriver::set_random_static_address
2020-01-28 13:35:19 +00:00
Vincent Coubard
c66dd7fd1f
BLE: Add an HCI driver API to set the random static address.
2020-01-28 13:29:11 +00:00
jeromecoutant
a1fb286c06
AT_CellularStack: crash during TCP test
...
function tries to access _socket[1] whch is not opened
2020-01-28 13:10:41 +01:00
Rajkumar Kanagaraj
b2890822d9
Incorporated the review comment
2020-01-27 09:21:12 -08:00
Rajkumar Kanagaraj
46a1f01b6d
Fix general filesystem greentea test
...
ARM microlib is not supported below features
- fflush(NULL) return `-1` instead `0`
- fread with size parameter "Zero".
- if file opened in append mode, file postion starts from the beginning.
2020-01-27 06:51:52 -08:00
Anna Bridge
ceaf562a11
Merge pull request #12283 from jeromecoutant/PR_STM32WB
...
STM32WB - Update CubeDriver from v1.0.0 to v1.4.0
2020-01-25 11:54:29 +00:00
Kimmo Vaisanen
bd0f939277
Cellular: Remove support for multiple ATHandlers
...
Major changes:
- Dependency to FileHandle removed from base classes
- AT_CellularDevice owns the default FileHandle and shares it with AT -classes
- Hang-up -detection moved as CellularContext::configure_hup(). Cannot be configured via CellularDevice any more.
Result on NRF52840_DK + BG96:
GCC:
Total Static RAM memory (data + bss): 29360(+296) bytes
Total Flash memory (text + data): 130660(-832) bytes
ARM:
Total Static RAM memory (data + bss): 261554(+8) bytes
Total Flash memory (text + data): 127573(-1193) bytes
IAR:
Total Static RAM memory (data + bss): 25479(+296) bytes
Total Flash memory (text + data): 102418(-527) bytes
RAM increase is because now ATHandler is no longer created with new -operator but is now member of AT_CellularDevice,
so image tool is able to count it. Actually total RAM consumption has decreased due to removed variables.
2020-01-23 09:27:44 +02:00
PARKJIHOON
4460d26eab
Default use BEDTLS_SHA512_SMALLER for SW fallback
...
Signed-off-by: PARKJIHOON <jh6186.park@samsung.com>
2020-01-22 14:40:51 +09:00
Andrew Chong
dc64bd8a05
Changed 2018 or 2019 copyright to 2020 via sed auto change.
2020-01-22 14:40:51 +09:00
Andrew Chong
3677b1b04e
Applied the latest astyle.
2020-01-22 14:40:51 +09:00
Andrew Chong
65e9cac918
Updated the code fix of timer and Mbed TLS.
2020-01-22 14:40:51 +09:00
Andrew Chong
d242850de4
Ran astyle on features/mbedtls/targets/TARGET_Samsung.
2020-01-22 14:40:50 +09:00
PARKJIHOON
26f7e26568
tidy up PR comments #3
...
Signed-off-by: PARKJIHOON <jh6186.park@samsung.com>
2020-01-22 14:40:50 +09:00
PARKJIHOON
2e0ff5d145
tidy up PR comments #1
...
Signed-off-by: PARKJIHOON <jh6186.park@samsung.com>
2020-01-22 14:40:50 +09:00
PARKJIHOON
8ab00df7b4
Adding Samsung Exynos i S111 target code.
...
Adding a new target of HW development kit using [Samsung Exynos i S111](https://www.samsung.com/semiconductor/minisite/exynos/products/iot/exynos-i-s111/ ) module to Mbed-OS.
This will widen the HW choices of Mbed-OS enabled NB-IoT, GNSS and Security (eFuse, AES, SHA-2, PKA, Secure Storage, Security Sub-System, [PUF](https://en.wikipedia.org/wiki/Physical_unclonable_function )) modules.
Target Name: S5JS100
Co-authored-by: Ivan Galkin <ivan.galkin@samsung.com>
Co-authored-by: Seokwon Lee <swon.lee@samsung.com>
Co-authored-by: Zhizhe Zhu <zhizhe.zhu@samsung.com>
Co-authored-by: Xinyi Zhao <xinyi.zhao@samsung.com>
2020-01-22 14:40:50 +09:00
Anna Bridge
80fe861f1d
Merge pull request #12035 from kjbracey-arm/callback_prep
...
Preparation for Callback changes
2020-01-21 11:50:43 +00:00
Anna Bridge
7e2f5a330b
Merge pull request #12281 from AriParkkila/cell-stack-deinit
...
Cellular: Refactor socket_stack_init() from generic to modem specific
2020-01-21 11:47:25 +00:00
Mirela Chirica
e2048b06b2
Cellular: Remove API's empty default implemetations
2020-01-21 10:45:09 +02:00
jeromecoutant
b74756dceb
STM32WB Enable BLE HCIDriver for all targets
...
+ astyle
2020-01-20 17:24:42 +01:00
jeromecoutant
8f6171f8b0
STM32WB - BLE restructure
2020-01-20 16:10:55 +01:00
Martin Kojtal
9c6cdbfed4
Merge pull request #12060 from kyle-cypress/pr/kvstore-general-test-fix
...
Improve reliability of KVStore general tests
2020-01-20 14:56:41 +00:00
Ari Parkkila
2871721e08
Cellular: Refactor socket_stack_init() from generic to modem specific
2020-01-20 00:56:09 -08:00
Martin Kojtal
ecf4d62dc5
Merge pull request #12265 from AriParkkila/cell-fea-refactor
...
Refactor unnecessary functions from cellular driver
2020-01-17 13:57:06 +00:00
Martin Kojtal
4924264769
Merge pull request #12211 from hugueskamba/hk-replace-uartserial-cellular
...
Cellular: Replace UARTSerial references with BufferedSerial
2020-01-17 13:30:12 +00:00
Ari Parkkila
031d90a3ce
Fix UDP socket test cases
...
Fix UDP socket test cases to check more strictly on failure,
and lower trace levels to not print errors on successful cases.
2020-01-17 01:24:51 -08:00
Ari Parkkila
f9eef97ead
Cellular Refactor get_send_delay() into CellularProperty
2020-01-17 00:28:41 -08:00
Hugues Kamba
9e11e5b43d
Cellular: Replace UARTSerial references with BufferedSerial
...
`BufferedSerial` is `UARTSerial` renamed to convey the original purpose
of the class. It is the recommended buffered I/O serial class.
2020-01-16 16:22:07 +00:00
Ari Parkkila
ceea992b40
Cellular: Refactor is_protocol_supported() into CellularProperty
2020-01-15 23:04:00 -08:00
Ari Parkkila
e2cb18061e
Cellular: Refactor get_max_socket_count() into CellularProperty
2020-01-15 23:04:00 -08:00
Kimmo Vaisanen
2c4194bbe3
Cellular: Fix compilation fail with APN lookup enabled
...
Compilation failed if cellular APN lookup was enabled as stop command has been
removed.
2020-01-15 14:42:04 +02:00
Martin Kojtal
606f3a35a7
Merge pull request #12260 from Szalacinski/master
...
Add KSZ8041 as a supported PHY for the LPC17xx series
2020-01-15 13:07:11 +01:00
Martin Kojtal
1b11d2cb02
Merge pull request #12249 from kivaisan/remove_deprecated_cellulardevice_stop
...
Cellular: Remove deprecated CellularDevice::stop()
2020-01-15 13:06:27 +01:00
Martin Kojtal
bfbed2de7b
Merge pull request #12243 from 0xc0170/fix_12242_recreate
...
Add timer shutdown after time stop on deinit
2020-01-15 13:04:04 +01:00
Martin Kojtal
c53f4d2344
Merge pull request #12227 from AnttiKauppila/BG96_fix
...
Cellular: AT + QICSGP set up APN fix
2020-01-15 12:59:09 +01:00
Martin Kojtal
cbca99d38f
Merge pull request #12160 from AGlass0fMilk/fix-prs-config
...
nRF52: Properly configure nRF SDK for nRF52-series targets
2020-01-15 12:58:32 +01:00
Caleb Szalacinski
e4e0225a0e
Add KSZ8041 as a supported PHY for the LPC17xx series
2020-01-14 19:46:39 -06:00
Kimmo Vaisanen
52b00a296e
Cellular: Remove friend definitions from cellular state machine
...
Instead of defining which classes can access state machine, CellularStateMachine
class is now "a normal" CPP class with public API.
2020-01-14 12:19:20 +02:00
Kimmo Vaisanen
0d525fff29
Cellular: Remove deprecated CellularDevice::stop()
...
CellularDevice::shutdown() should be used instead.
2020-01-14 10:47:05 +02:00
Kyle Kearney
d8f47bdaa3
Improve reliability of KVStore general tests
...
In kvstore_init, prior to initializing the kvstore, erase the
underlying block storage device. This ensures that each test run
starts from a consistent state and avoids failures that can result
if a previous test run left the storage in an inconsistent state.
2020-01-13 11:32:12 -08:00