Commit Graph

21415 Commits (442cbba14147a72c0707d597d61fae6efccb1266)

Author SHA1 Message Date
Cruz Monrreal 442cbba141
Merge pull request #7799 from bridadan/remove_allowed_features
Removing feature names from the "allowed feature" config list.
2018-12-19 13:37:59 -06:00
Cruz Monrreal e17b14adaf
Merge pull request #9157 from lrusinowicz/sequana_m0_firmware_update
PSOC6: Updated default M0 image to not modify UDB configuration when…
2018-12-19 13:35:56 -06:00
Cruz Monrreal 07947f4647
Merge pull request #9155 from lrusinowicz/srm_fixes
PSOC6: Fixing merge issue for pull request #9009
2018-12-19 13:16:20 -06:00
Cruz Monrreal II ac499ba617 Merge pull request #9122 from RonEld/update_cc310_iar_libs
Update the CC310 IAR libraries
2018-12-19 13:14:20 -06:00
Cruz Monrreal 9edbcd77df
Merge pull request #9081 from OpenNuvoton/nuvoton_refine_crypto_ac
Nuvoton: Fix crypto AC management
2018-12-19 13:09:47 -06:00
Cruz Monrreal 6f576009c7
Merge pull request #9061 from kjbracey-arm/more_mpu_work
More MPU work
2018-12-19 12:32:54 -06:00
Leszek Rusinowicz e448b2b1c2 [PSOC6] Updated default M0 image to not modify UDB configuration when comming out of a deep sleep state.
On Mbed this is performed only on M4 core.
2018-12-19 14:07:11 +01:00
Leszek Rusinowicz 0f6a35ba73 Fixing merge issue for merge into master. 2018-12-19 13:35:07 +01:00
ccli8 ca44675086 [Nuvoton] Fix crypto AC management
1. For SHA AC, use atomic flag to manage its ownership.
   (1) Nuvoton SHA AC doesn't support SHA context save & restore, so S/W
       SHA fallback has been supported before. To make non-blocking 'acquire'
       semantics clearer, introduce 'try_acquire' to substitute for 'acquire'.
   (2) No biting CPU due to mechanism above.
   (3) No deadlock due to mechanism above.
2. For AES/DES/ECC AC, change to mutex to manage their ownership.
   (1) Change crypto-misc.c to crypto-misc.cpp to utilize C++ SingletonPtr
       which guarantees thread-safe mutex construct-on-first-use.
   (2) With change to crypto-misc.cpp, add 'extern "C"' modifier to CRYPTO_IRQHandler()
       to avoid name mangling in C++.
   (3) No priority inversion because mutex has osMutexPrioInherit attribute
       bit set.
   (4) No deadlock because these AC are all locked for a short sequence
       of operations rather than the whole lifetime of mbedtls context.
   (5) For double mbedtls_internal_ecp_init() issue, it has been fixed in upper
       mbedtls layer. So no need to change ecc init/free flow.
2018-12-19 10:17:39 +08:00
Russ Butler adf253e1fd Update MPU ram/rom split for Nuvoton M2351
Move the start of RAM from 0x10000000 to 0x20000000 on the
NUMAKER_PFM_M2351. This allows the target to work correctly.
2018-12-18 17:35:10 -06:00
Cruz Monrreal 995725b50a
Merge pull request #9129 from jeromecoutant/PR_DNSDEBUG
DNS tests: improve debug messages
2018-12-18 14:26:35 -06:00
Cruz Monrreal II 9b9b81e9a4 Merge branch 'esp8266_link_type_fix' of ssh://github.com/c1728p9/mbed-os 2018-12-18 13:23:44 -06:00
Cruz Monrreal f949ee5388
Merge pull request #9127 from jeromecoutant/PR_WIFIDEBUG
WIFI test: improve debug messages
2018-12-18 13:23:12 -06:00
Cruz Monrreal 187d2d0104
Merge pull request #9102 from OpenNuvoton/nuvoton_support_boot_stack_option
Nuvoton: Support boot stack size configuration option
2018-12-18 13:22:46 -06:00
Cruz Monrreal 8bd9772d5d
Merge pull request #8975 from KariHaapalehto/fix_valid_mac_address
Initialize the interface at the construction
2018-12-18 13:22:30 -06:00
Cruz Monrreal ce1929b5df
Merge pull request #9045 from fredlee12001/patch-1
Fix wrong PIN config for RTL8195AM platform
2018-12-18 10:32:59 -06:00
Cruz Monrreal d969d46bbf
Merge pull request #9084 from AdamZhang0124/realtek-rtl8195am-Network_Socket_Update
Realtek-rtl8195am-Network_Socket_Updates
2018-12-18 10:31:25 -06:00
Cruz Monrreal 15765d6286
Merge pull request #9126 from fluidblue/master
Fix multiple definitions of '__aeabi_atexit'
2018-12-18 10:30:49 -06:00
Ron Eldor 244647088e Update the CC310 readme file
Update the Cryptocell 310 readme file with the binary library version
information.
2018-12-18 18:08:15 +02:00
Ron Eldor 03a2e07539 Update the CC310 GCC_ARM libraries
Update the cryptocell 310 GCC_ARM libraries with known version.
The libraries were built from the Cryptocell 310 release
version 1.1.0.1285, using arm-none-eabi-gcc 6.3.1 20170620 (release) (release).
2018-12-18 18:08:06 +02:00
Ron Eldor 297c0e43a4 Update the CC310 ARM libraries
Update the cryptocell 310 ARM libraries with known version.
The libraries were built from the Cryptocell 310 release version
1.1.0.1285, using `ARM Compiler 5.06 update 4 (build 422)`.
2018-12-18 18:04:51 +02:00
Ron Eldor 3a651a1144 Update the CC310 IAR libraries
Update the cryptocell 310 IAR libraries, since the previous ones were not
built correct. The libraries were built from the Cryptocell 310
release version 1.1.0.1285, using IAR version 7.80.1.11864.
2018-12-18 18:04:48 +02:00
jeromecoutant bd4b99c498 DNS tests: improve debug messages 2018-12-18 13:32:45 +01:00
Lu 1422379c24 Realtek-rtl8195am-Network Socket Updates
This PR addresses the issue of #8124.
It updates and enriches the wifi connection error type to adapt the Network Socket test plan requirement.
In the meantime, it increases the heap size that allows the transmission of larger packet size.

Description
1. Increase heap size in lwipstack\mbed_lib.json to fulfill bursty TCP and UDP transmission requirement.
2. Modify and enrich wifi connection error types in TARGET_AMEBA\RTWInterface.cpp to adapt the decision logic of the wifi test cases.
3. Add new static constants in TARGET_AMEBA\RTWInterface.h, including 'SSID_MAX_LENGTH', 'PASSPHRASE_MAX_LENGTH' and 'PASSPHRASE_MIN_LENGTH' to help verifying the validity of ssid and passphrase.

Pull request type
[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change
2018-12-18 17:18:32 +08:00
Martin Kojtal 06748af2f8
Merge pull request #9079 from kegilbert/TCPSocket-accept-statelog
Add socket stat logging state change update
2018-12-18 08:06:05 +00:00
Martin Kojtal eda1952a74
Merge pull request #9053 from NXPmicro/Add-Support-RapidIoT-KW41Z
Rapid-IoT: Add support for the KW41Z side of the platform
2018-12-18 08:05:42 +00:00
ccli8 28b820fbf0 [NANO130] Change main thread stack size to default for stack size unification
NANO130 just has 16 KiB SRAM. User application may change it through "rtos.main-thread-stack-size"
configuration option.
2018-12-18 11:11:43 +08:00
Cruz Monrreal 42f01f3db2
Merge pull request #9131 from cmonr/block-intervaltree-update
Add versioning limits to `intervaltree` module
2018-12-17 15:39:05 -06:00
Cruz Monrreal 80c6f5f8ee
Merge pull request #8972 from kjbracey-arm/merge_file_truncate
Merge feature-posix branch (FileHandle::truncate)
2018-12-17 14:49:56 -06:00
Cruz Monrreal 7bf2fbdc10
Merge pull request #8655 from kjbracey-arm/debug-wb-off
Disable write buffer in debug builds (M3/M4)
2018-12-17 14:45:07 -06:00
Cruz Monrreal 2697913773
Merge pull request #8990 from davidsaada/david_fat_tests_low_mem
Adjust FAT FS tests to low memory boards
2018-12-17 14:44:38 -06:00
Cruz Monrreal 891427cb7d
Merge pull request #9097 from NXPmicro/Add_CM33FD
Update to add support for Cortex-M33FD
2018-12-17 14:44:20 -06:00
Cruz Monrreal c7c24de8ba
Merge pull request #9100 from InfernoEmbedded/fix-8695
Align prototype & implementation of enet_tasklet_disconnect & friends
2018-12-17 14:44:03 -06:00
Cruz Monrreal ff6744c85e
Merge pull request #9105 from LaurentLouf/improve-precision-duty-cycle-pwm-stm
Add some rounding to determine the pulse value for PWM for the STM target
2018-12-17 14:43:43 -06:00
Cruz Monrreal 0100cede7c
Merge pull request #9107 from bridadan/patch_os2_tests
Fixing execution of OS2 tests
2018-12-17 14:43:27 -06:00
Cruz Monrreal eed3fb12c7
Merge pull request #9109 from kjbracey-arm/fseek_test_rework
Rework fseek/ftell tests
2018-12-17 14:43:06 -06:00
Russ Butler 6210805696 Fix ESP8266 "Link Type" errors after reset
As part of the ESP8266 connect sequence, ESP8266Interface::connect,
a software reset is performed. If the ESP8266 had been connected
previously then the ESP8266 will sometimes send a "WIFI DISCONNECT" OOB
message before performing the software reset. This causes the
ESP8266::_oob_connection_status to change its state (_conn_status) from
NSAPI_STATUS_DISCONNECTED to NSAPI_STATUS_CONNECTING. This causes
ESP8266Interface::_startup, called later in the boot seqeunce, to skip
ESP8266::startup. Without this call socket mux mode (CIPMUX=1) is never
enabled and all send commands using this format fail with a "Link Type"
error.

This patch fixes that problem by unconditionally calling
ESP8266::startup as part of the ESP8266 connect sequence.
2018-12-17 10:11:52 -06:00
fluidblue 96b345444b Removed GCC_CR toolchain for LPC11U68 2018-12-17 15:54:13 +01:00
jeromecoutant da6ad75666 WIFI test: improve debug messages 2018-12-17 15:20:02 +01:00
Fluidblue c9eb60c6e2
Prevent multiple __aeabi_atexit definition linker error (GCC_CR) 2018-12-17 15:01:00 +01:00
Fluidblue 69ef8043a6
Prevent multiple __aeabi_atexit definition linker error (GCC_ARM) 2018-12-17 15:00:27 +01:00
Cruz Monrreal II a639014949 Intervaltree version update (3.0.0) caused builds to break.
Capping version to latest 2.x
2018-12-16 22:00:36 -06:00
Brian Daniels 00a3d0f915 Remove deprecated features from socket test app 2018-12-14 14:03:38 -06:00
Christopher Haster 8db2c0d00b Added filesystem implementations of truncate
- File::truncate
- FileSystem::file_truncate
- FATFileSystem::file_truncate
- LittleFileSystem::file_truncate
2018-12-14 19:29:29 +02:00
Kevin Bracey 7b5939c05b Add ftruncate / fstat(st_size) unit test 2018-12-14 19:29:29 +02:00
Kevin Bracey ae17f6ebba Add FileHandle::truncate and ftruncate
Add support for file truncation (or extension) to the abstract API.

No hooks to actual implementations in this commit.
2018-12-14 19:29:28 +02:00
Kevin Bracey ff7a316a32 Rework fseek/ftell tests
ARM C library is really good at optimising out calls to underlying
seek. The only ones we were actually detecting in the empty file case
were the ones that the default FileHandle::size() made itself during
the SEEK_END case.

When we implement TestFile::size() directly, we will no longer see
a single seek call from the ARM C library in the empty file case, so
remove those tests.

Beef up the non-empty file case, adding checks that we are making
underlying read+write calls in the correct position, as a proxy for
direct checks for underlying seek being called.
2018-12-14 19:29:27 +02:00
Cruz Monrreal 463a4536e2
Merge pull request #8961 from marcemmers/this-thread
ThisThread get_name()
2018-12-14 11:13:31 -06:00
Cruz Monrreal 64e7e468b2
Merge pull request #9089 from jeromecoutant/DEV_QSPI_TEST
STM32 QSPI update
2018-12-14 10:14:13 -06:00
Cruz Monrreal 6380d8826e
Merge pull request #9101 from jarvte/fix_pppmode_wrong_stack
Cellular: Fix to use PPP stack in PPP mode
2018-12-14 10:13:52 -06:00