Kevin Bracey
99344963d2
LWIP: don't pbuf_free(NULL) on socket close
...
`pbuf_free(NULL)` causes an `LWIP_ASSERT`. Make the call conditional.
Fixes #12184
2020-04-27 13:32:23 +03:00
Teemu Takaluoma
e1af7be4e0
Update mbed-coap to version 5.1.5
...
BLOCK2 code-branch was missing handling for duplicate packets. As part of the fix, added also
a call to update the duplicate package data via a new function
sn_coap_protocol_update_duplicate_package_data_all.
The new implementation handles all CoAP messages, not just those with COAP_MSG_TYPE_ACKNOWLEDGEMENT.
2020-04-27 11:26:09 +03:00
Antti Yli-Tokola
7edaf6dc7c
Update mbed-coap to version 5.1.4
...
Add also 4.13 (Request Entity Too Large) responses to duplicate info list.
Add client library configurations for DEFAULT_RESPONSE_TIMEOUT and SN_COAP_DUPLICATION_MAX_TIME_MSGS_STORED.
Increased the default timeouts of DEFAULT_RESPONSE_TIMEOUT and SN_COAP_DUPLICATION_MAX_TIME_MSGS_STORED to 300 seconds.
These two are critical parameters for low-bandwidth high-latency networks. The defaults should be more geared towards such networks that are likely to have issues with transmissions.
The increased defaults can increase the runtime HEAP usage when there is a lot of duplicates or retransmissions.
2020-04-24 08:18:21 +01:00
Martin Kojtal
61c5c74847
Merge pull request #12845 from LDong-Arm/mbed-os-5.15
...
Backport SweynTooth fix for Cordio to 5.15
2020-04-22 18:03:41 +02:00
Martin Kojtal
27ac3d4622
Merge pull request #12813 from artokin/nanostack_relase_to_mbed_os_5_15
...
[mbed-os-5.15] Nanostack release to mbed-os-5.15 branch
2020-04-22 13:43:35 +02:00
Lingkai Dong
568c1f915f
Port Cordio LE Secure Connections check from PacketCraft
...
This change is provided by Packetcraft (which maintains the
Cordio BLE stack) to address possible Sweyntooth vulnerabilities.
(cherry picked from commit c927773115
)
2020-04-22 10:58:27 +01:00
Lingkai Dong
421becce8d
Port Cordio SMP control block improvements from Packetcraft
...
This change is provided by Packetcraft (which maintains the
Cordio BLE stack) to address possible Sweyntooth vulnerabilities.
(cherry picked from commit 0402fe4efb
)
2020-04-22 10:58:05 +01:00
Arun S
9b87551d40
Remove ethernet interface logic for SoftAP and STA
...
Issue: The problem is that there is a race condition introduced in that the LWIP thread is relying on the
interface as it is taken down by a application thread while calling disconnect.
In disconnect api called from application context, whd_emac_wifi_link_state_changed() will refer to netif interface
structure in its callback api netif_link_irq(netif). This netif will be cleared by remove_etherent_interface().
whd_emac_wifi_link_state_changed will post message to tcpip_thread. tcpip_thread will process the message and
call the callback api netif_link_irq(netif)
Calling sequence is whd_emac_wifi_link_state_changed -> remove_etherent_interface(). Hence there is a timing issue
that netif might be cleared first before tcpip thread process the message netif_link_irq(netif)
Fix: remove_etherent_interface() will post message to tcpip thread and tcpip:
thread process the message delete_interface()
which will actually remove the inferface from the netif_list.
Calling sequence is whd_emac_wifi_link_state_changed() message post -> remove_etherent_interface() message post.
message processing order netif_link_irq(netif) -> delete_interface().
Since both the processing is handled in single thread, processing of message is handled sequentially.
2020-04-21 22:15:25 +05:30
Arto Kinnunen
bbf2db37c9
Merge commit 'd104328f556c60ee09bb316ffc700ba8f1deca19' into mbed-os-5.15
...
* commit 'd104328f556c60ee09bb316ffc700ba8f1deca19':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from fb7413b846..cc03296c27
2020-04-16 11:43:53 +03:00
Arto Kinnunen
9f3c053626
Merge commit '4daaaf126d9dfbfcbe638753573139d95442da1f' into mbed-os-5.15
...
* commit '4daaaf126d9dfbfcbe638753573139d95442da1f':
Squashed 'features/nanostack/coap-service/' changes from e5e0c138e6..5aa54b8e62
2020-04-16 11:42:16 +03:00
Kyle Kearney
6554e3951e
Revert "Backport #12603 : Add CYSBSYSKIT_01"
...
This reverts commit 4e6692b529
.
There are issues with wifi connectivity on this target that mean
it is not ready to ship with 5.15.2.
2020-04-08 14:14:11 -07:00
Martin Kojtal
757f14b807
Merge pull request #12776 from JarkkoPaso/update_stm32_emac_ethernet_driver
...
Update stm32 emac ethernet driver
2020-04-08 18:35:32 +02:00
Martin Kojtal
64b10f450d
Merge pull request #12767 from Patater/update-to-tls-2.21.0
...
Upgrade to Mbed TLS 2.21.0 and Mbed Crypto 3.1.0
2020-04-08 15:19:01 +02:00
Martin Kojtal
3db7cd42da
Merge pull request #12771 from kyle-cypress/pr/cypress-backport-whd-assert
...
Cypress: Partial backport of #12769
2020-04-08 15:18:31 +02:00
Arto Kinnunen
38f9a09f12
Update STM32 EMAC driver based on review
...
-Fix len type
-Use ETH_RX_BUF_SIZE instead of hard-coded value 1500
2020-04-08 14:11:50 +03:00
Arto Kinnunen
6d2bc4f144
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-04-08 14:11:21 +03:00
Martin Kojtal
9929ddd038
Merge pull request #12723 from AnttiKauppila/mbedtls_fixes5.15
...
Mbedtls fixes for 5.15.2
2020-04-08 08:57:12 +02:00
Martin Kojtal
eaeb983a9e
Merge pull request #12650 from kivaisan/cellular_alt1250_mbedos_5_15
...
Cellular: ALT1250 PPP cellular driver for mbed-os 5.15
2020-04-08 08:56:30 +02:00
midd
d55117f2aa
WHD: Remove an assert from get_rssi()
...
This assert in WhdSTAInterface.cpp causes rssi greentea test to fail
on Cypress parts. This is because the rssi GT test expects the negative
test case to return 0 and not assert.
2020-04-07 12:25:18 -07:00
Darryl Green
65e91244fa
crypto: Use updated ECC curve macros
2020-04-07 11:30:31 +01:00
Jaeden Amero
8eef39b8f1
crypto: Upgrade to Mbed Crypto 3.1.0
2020-04-07 10:11:16 +01:00
Jaeden Amero
ec898fb1fa
tls: Upgrade to Mbed TLS 2.20.0
2020-04-07 09:57:37 +01:00
Ryan Morse
fa6bfb26eb
Backport #12701 : Custom BT Firmware for CYW9P62S1_43012EVB_01
2020-04-02 15:04:24 -07:00
Dustin Crossman
4e6692b529
Backport #12603 : Add CYSBSYSKIT_01
2020-04-02 15:02:44 -07:00
midd
8199e25f24
Backport #12394 : Fix Cypress 1M SDIO + other minor bugs
...
- Remove wounding for the hardware CRYPTO block. The PSoC 6 MPN CYW9P62S1_43012EVB_01 was revised
to add the hardware crypto block.
- Add missing error checks for emac power up.
- Add a multiplied by 2 in the SDIO clock divider calculation to account for internal UDB divider.
Note: Fixes issues with intermittent WiFi firmware load failures on CY8CKIT_062_WIFI_BT,
CYW943012P6EVB_01, CYW9P62S1_43012EVB_01, CYW9P62S1_43438EVB_01.
2020-04-02 14:49:22 -07:00
Kimmo Vaisanen
d65b82da9d
Cellular: ALT1250 PPP cellular driver for mbed-os 5.15
...
This commit introduces Altair ALT1250 PPP mode cellular driver for mbed-os 5.15 -branch.
2020-04-02 13:08:27 +03:00
Martin Kojtal
978db96468
Merge pull request #12485 from artokin/nanostack_for_mbedos_5_15_branch
...
Nanostack release for Mbed OS 5.15
2020-04-02 10:33:56 +02:00
Antti Kauppila
9c328114c5
Licence updated
2020-03-31 16:15:44 +03:00
Antti Kauppila
5bdc7314f4
more error handling added for ctr and hmac
2020-03-31 16:04:54 +03:00
Antti Kauppila
3dbe97b8cb
MBEDTLS_SSL_EXPORT_KEYS added to Nanostack's tls_sec_prot_lib
2020-03-31 08:26:46 +03:00
Antti Kauppila
af12d0642b
trace group defiined for shared_rng
...
Unittests fixed
2 mbedtls functions were updated to reflect the api
2020-03-31 08:26:35 +03:00
Teppo Järvelin
377e363059
Added missing optimizations based on mbedtls/baremetal.h config
2020-03-31 08:26:11 +03:00
Teppo Järvelin
c801caf7cf
fixed ssl hostname handling
2020-03-31 08:26:01 +03:00
Teppo Järvelin
163e5c90e3
Added new global rng, needed for MbedTLS optimisations
2020-03-31 08:25:47 +03:00
Teppo Järvelin
a325320c47
Prepare for upcoming MbedTLS changes
2020-03-31 08:25:05 +03:00
Jarno Lamsa
2f0907c140
Remove _variant_bd_erase_unit_size
...
In some cases, it is possible that every erase unit in area 0
has the same size, but they are still different than in area 1.
Remove the flag for varying erase sizes and instead check from
flash, what is the erase size of the current unit.
2020-03-19 14:47:43 +02:00
Arto Kinnunen
b1a86dc776
Merge commit '2792e61d87df13c64d8abaf30ccde13b6f75eeda' into nanostack_for_mbedos_5_15
...
* commit '2792e61d87df13c64d8abaf30ccde13b6f75eeda':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 9b3e144f5b..fb7413b846
2020-02-21 11:01:00 +02:00
Arto Kinnunen
c8d1b3b51b
Merge commit 'c9610e1a78b2b94fb659539b30d7fb4e0f1e36c8' into nanostack_for_mbedos_5_15
...
* commit 'c9610e1a78b2b94fb659539b30d7fb4e0f1e36c8':
Squashed 'features/nanostack/coap-service/' changes from b919a3366f..e5e0c138e6
2020-02-21 10:59:22 +02:00
Arto Kinnunen
e7e75accaa
Merge commit 'db389d4b4b3cf6cf080926399bef2584ab896ba1' into nanostack_for_mbedos_5_15
...
* commit 'db389d4b4b3cf6cf080926399bef2584ab896ba1':
Squashed 'features/frameworks/nanostack-libservice/' changes from 9af756886f..9a61e73787
2020-02-21 10:54:43 +02:00
Martin Kojtal
7b398c0abd
Samsung: fix incorrect conflict resolution
2020-02-07 10:25:57 +00:00
adbridge
aa298c0769
Revert "Pairing fails when IPv6 enabled in SoftAP intf"
...
This reverts commit 18285e1fc1
.
2020-02-06 11:27:33 +00:00
Pawel Zarembski
feb2952cb2
hani_iot: add spif storage config
2020-02-05 15:25:11 +00:00
Arun S
df72637b61
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-02-05 15:25:11 +00:00
PARKJIHOON
e8b27c2780
Default use BEDTLS_SHA512_SMALLER for SW fallback
...
Signed-off-by: PARKJIHOON <jh6186.park@samsung.com>
2020-02-05 15:25:11 +00:00
Andrew Chong
a98d2795fc
Changed 2018 or 2019 copyright to 2020 via sed auto change.
2020-02-05 15:20:32 +00:00
Andrew Chong
0588b5502a
Applied the latest astyle.
2020-02-05 15:09:40 +00:00
Andrew Chong
14f27720a2
Updated the code fix of timer and Mbed TLS.
2020-02-05 15:09:40 +00:00
PARKJIHOON
6c3477117b
tidy up PR comments #3
...
Signed-off-by: PARKJIHOON <jh6186.park@samsung.com>
2020-02-05 15:09:40 +00:00
PARKJIHOON
9ea2ce91fa
tidy up PR comments #1
...
Signed-off-by: PARKJIHOON <jh6186.park@samsung.com>
2020-02-05 15:03:36 +00:00
Andrew Chong
35b176b896
Ran astyle on features/mbedtls/targets/TARGET_Samsung.
2020-02-05 14:52:27 +00:00
PARKJIHOON
f7fcae90c8
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-02-05 14:40:24 +00:00
Risto Huhtala
b429a6b8ef
Update mbed-coap changelog-md with v5.1.3 information
2020-02-05 14:40:24 +00:00
Risto Huhtala
3edd93b108
mbed-coap uint16 overflow when calculating packet data size
2020-02-05 14:40:24 +00:00
Risto Huhtala
ca3a848e80
Code review fix. Removing extra spaces
2020-02-05 14:40:24 +00:00
Risto Huhtala
23a23b948b
mbed-coap Buffer overflow when paring CoAP message
2020-02-05 14:40:24 +00:00
Shuopeng Deng
440752ff39
fix code review ARs
2020-02-05 14:40:24 +00:00
Shuopeng Deng
4c4f1826bb
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.
2020-02-05 14:40:24 +00:00
Ari Parkkila
6650600268
Cellular: Fix AT command for COPS manual network selection
2020-02-05 14:40:24 +00:00
jeromecoutant
e7988b0541
STM EMAC: compilation issue with ARMC5
2020-02-05 14:40:24 +00:00
Przemyslaw Stekiel
034de2f190
storage: fix static pin-map for ARMC5
2019-12-16 16:12:38 +00:00
Przemyslaw Stekiel
66fbe32c66
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-11 10:45:56 +00:00
Hamza Rizwan
aec9ed2be5
Fixes for Network WiFi Test Crashes
2019-12-11 10:45:56 +00: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
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
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
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