Commit Graph

21634 Commits (c66456a1d6c95344648a89fae004a326078564a4)

Author SHA1 Message Date
Seppo Takalo c66456a1d6 Fix TCPSOCKET_ENDPOINT_CLOSE: Cannot accept WOULD_BLOCK
This testcase uses Socket in blocking mode, and therefore
WOULD_BLOCK should not be accepted.
The logic was wrong anyway, because return value was tested
to be negative before testing with WOULD_BLOCK which is negative
as well.

Also replaced TEST_FAIL() macro with TEST_ASSERT_EQUAL() to
make the return code visible in test log.
2019-02-08 16:50:27 +00:00
Amir Cohen dd43030751 Add sd-driver example 2019-02-08 16:50:27 +00:00
jeromecoutant 8d4b54db12 STM32_gen_PeripheralPins.py v1.5
Use dedicated PinMap for each QSPI data line #9438
2019-02-08 16:50:27 +00:00
jeromecoutant 4ba8e0e754 STM32: PeripheralPins files minor update
Script version 1.4
CubeMX DB version DB.5.0.1
2019-02-08 16:50:27 +00:00
jeromecoutant 9563254658 STM32_gen_PeripheralPins.py v1.4
Minor updates:
- remove QSPI BK2
- beautifier edition
- use STM_MODE_ANALOG_ADC_CONTROL for L4 family
2019-02-08 16:50:27 +00:00
Jarno Lamsa be2eb9b6ed Set tasklet parameters before connecting
Set tasklet parameters before connecting to prevent the parameters to be set to 0.
The tasklet parameters are reset to 0 when wisun_tasklet_connect gets called,
thus those need to be set in the wisun_tasklet_configure_and_connect_to_network
before they are used. This is also done this way in other tasklets.
2019-02-08 16:50:27 +00:00
Jarno Lamsa fdd0360f3e Remove yotta-specific lines from .gitignore 2019-02-08 16:50:27 +00:00
paul-szczepanek-arm 03fda0c842 review fixes 2019-02-08 16:50:27 +00:00
paul-szczepanek-arm 77113a9f2c check scanning status first 2019-02-08 16:50:27 +00:00
paul-szczepanek-arm a0b5b60e6b scan timeout for 4.2 controllers using new API 2019-02-08 16:50:27 +00:00
Brian Daniels 3180422483 Update utest README 2019-02-08 16:50:27 +00:00
Brian Daniels cadbd3a950 Correct example given in greentea-client readme 2019-02-08 16:50:27 +00:00
Brian Daniels fa92ed4137 Remove reference to yotta and mbed-drivers in greentea-client 2019-02-08 16:50:27 +00:00
Brian Daniels 3ad5e13070 Removing references to yotta and minar within utest 2019-02-08 16:50:27 +00:00
Michal Paszta cd438a321a Prevent double attempt to connect mesh api
Socket network interface tests were failing due to DICONNECTED event
being advertised, where GLOBAL_UP was expected. It turned out that
nanostack receives two events: APPL_EVENT_CONNECT and
APPL_BACKHAUL_INTERFACE_PHY_UP. The second attempt to connect obviously
returns errors, but it also causes events to be sent out to the
application. The second attempt should not take place in case the
bootstrap is already started.

I also fixed two reports being sent with DISCONNECT status, while they
are actually something else.
2019-02-08 16:50:27 +00:00
jeromecoutant 2eec7c8562 STM32H7: 0S2 compilation 2019-02-08 16:50:27 +00:00
Fahim Alavi fad7ff9655 Fixed modem reset functionality to avoid low time to trigger module switch off 2019-02-08 16:50:27 +00:00
Veijo Pesonen 7dbce3e15a Test UDPSOCKET_SENDTO_INVALID allows NSAPI_ERROR_UNSUPPORTED 2019-02-08 16:50:27 +00:00
Veijo Pesonen dd82b6be74 ESP8266: with empty packet send returns zero if TCP, unsupported otherwise 2019-02-08 16:50:27 +00:00
Mirela Chirica 138a2774a0 Cellular: Remove makefile and mbedignore refering to obsolete cellular unit tests 2019-02-08 16:50:27 +00:00
Jimmy Brisson 675b7bd4f6 Updated spm test runner wish short import variant
Co-Authored-By: cmonr <Cruz.Monrreal@arm.com>
2019-02-08 16:50:27 +00:00
Cruz Monrreal II 59262edf82 Simplified max/min condition 2019-02-08 16:50:27 +00:00
Cruz Monrreal II 1d20646947 Enable xenail dist for only Py37 job Other jobs will follow with other PR 2019-02-08 16:50:27 +00:00
Cruz Monrreal II 300cb4ba19 Enabled Py3.{5,6,7} in Travis CI 2019-02-08 16:50:27 +00:00
Cruz Monrreal II 792d13d395 Added flag to run_cmd Popen invocation to do default decoding 2019-02-08 16:50:27 +00:00
Cruz Monrreal II 755931de72 Added None check for min in config tools 2019-02-08 16:50:27 +00:00
Cruz Monrreal II 246f6fc305 In Py3.7, a reinit of a mock variable was needed. It seems that initializing mock variables in an object isn't enough 2019-02-08 16:50:27 +00:00
Cruz Monrreal II 5469c00e81 Added encoding to version check for Py3 compat 2019-02-08 16:50:27 +00:00
Cruz Monrreal II 8e169f2a06 Increased path for spm include. Py3 tests were not running as a result 2019-02-08 16:50:27 +00:00
Cruz Monrreal II 13ad6f6694 Added universal_newlines flag to Popen in pylint.py 2019-02-08 16:50:27 +00:00
Amir Cohen b6dcf89e61 Remove COMPONENT_FLASHIAP tests
FlashIAPBlockDevice LittleFS ‘fopen’ falls on nightly tests
LittleFS test on FlashIAP is not relevant and thus removed
2019-02-08 16:50:27 +00:00
Brian Daniels 708a52116a Update all mbed test packages.
This change allows the latest releases of mbed-ls, mbed-host-tests, and
mbed-greentea. This brings new target support, features, and bug fixes.
2019-02-08 16:50:27 +00:00
Mahesh Mahadevan d1a610a33c MIMXRT1050_EVK: Add IAR support in the exporter
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-02-08 16:50:27 +00:00
Michal Paszta a7ee4afcf1 Publish TLSSocket test documentation
The whole README.md had to be updated to match the internal Confluence documentation, which can now be locked. In the process I also updated any spotted mistakes in tests documentation, removed the obsolete TCPServer tests documentation and added a test which was missing from UDPSocket's main.
2019-02-08 16:50:27 +00:00
Michal Paszta 2117c7f932 Add TLSSocket greentea tests.
TLSSocket tests based on existing TCPSocket greentea tests and TLSSocket icetea tests.
2019-02-08 16:50:27 +00:00
jeromecoutant 5949fd37d1 DIRS and SEEK SD tests update for small RAM targets
Test buffer size can now be specified for each target
2019-02-08 16:50:27 +00:00
Przemyslaw Stekiel ba15236fff Fix for Issue #7308 (Deep_sleep_lock Ticker.h Issue) 2019-02-08 16:48:59 +00:00
Mahesh Mahadevan fd6b59cf29 LPC546XX, MIMXRT1050: Update to fix ARMC6 build failures
Fix for issue 9402

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-02-08 16:48:59 +00:00
Volodymyr Medvid ced094f153 PSOC6.py: generate hex files with 16 bytes per row
DAPLink implementation on Cypress kits cannot handle hex files
with 64 bytes per row: refer to https://github.com/ARMmbed/DAPLink,
source/daplink/drag-n-drop/intelhex.c, hex_line_t struct, data field.
2019-02-08 16:48:59 +00:00
Brian Daniels 75d438e271 Remove unused yotta module metadata 2019-02-08 16:48:59 +00:00
Amanda Butler 0b2cedc873 Remove outdated content from README.md
Remove requested outdated content, and update TOC to reflect changes.
2019-02-08 16:48:59 +00:00
Amanda Butler 0d09429983 Remove .json blob from README.md
Make change suggested in comments.
2019-02-08 16:48:59 +00:00
Brian Daniels a236d20e26 Update features/frameworks/greentea-client/README.md
Co-Authored-By: AnotherButler <Amanda.Butler@arm.com>
2019-02-08 16:48:59 +00:00
Amanda Butler 5099d4136d Remove yotta from README.md
Remove all references to yotta.md
2019-02-08 16:48:59 +00:00
Maciej Bocianski 56c0ece600 ARCH_PRO: add SPI pin definitions 2019-02-08 16:48:59 +00:00
Volodymyr Medvid 5d819621e9 PSOC6: refactor M0 image merging, enable export to makefile
Rename the existing PSoC-specific m0_core_img key in targets.json
as a more generic hex_filename key. Update makefile exporter to select
the subset of resources.hex_files matching the hex_filename value.
Without this fix, multiple prebuilt CM0+ hex files are found in the
target resources and erroneously passed to the srec_cat tool.

The fix is generic so other targets that need post-build hex merging
can use this key to pass the correct image to srecord tool.

The fix also removes sub_target key: instead, rely hex_filename json
key to detect if the hex image merging needs to be done.
The sub_target is not used in mbed-os codebase for anything else.

It is possible to override the hex file name in mbed_app.json:
{
  "target_overrides": {
    "*": {
      "target.hex_filename": "my_custom_m0_image.hex"
    }
}
2019-02-08 16:48:59 +00:00
Volodymyr Medvid ecc9aa7bf2 PSOC6.py: do not require metadata during HEX merging
Replace hard-coded numeric offsets of PSoC 6 hex file sections
with sensible constants.
Do not attempt to update the checksum and metadata contents
if the sections are not found in the original HEX file.
2019-02-08 16:48:59 +00:00
Volodymyr Medvid 3fa2fb21cc PSOC6.py: remove silicon ID check
PSoC 6 hex files contain 4-byte chip ID at virtual offset 0x90500002
added by PSoC Creator or cymcuelftool from .cymeta ELF section.
merge_images compares chip ID in CM0+ and CM4 hex files and raises
an exception in case of mismatch. Chip ID is different for each MPN
(for example, 0xE2072100 for CY8C6347BZI-BLD53 and 0xE2062100 for
CY8C6247BZI-D54). CM0+ prebuilt images target CY8C6347BZI-BLD53
but should be compatible with other PSoC6 MPNs.
Remove the check to enable merging CM0+ images with CM4 applications
built for different MPNs, with empty or absent cymetadata.
2019-02-08 16:48:59 +00:00
Vincent Coubard 05dcde839e BLE: Fix relationnal operator of SafeEnum
The relationnal operators were targeting the base class which defines an implicit constructor to an integral value. This is wrong as it allows SafeEnum instances to be compared against integers.

The fix is simple: define relationnal operators for the derived class. The derived class is known as it is passed as a template parameter of the base class.

For extra safety the SafeEnum constructor is now explicit and protected.
2019-02-08 16:48:59 +00:00
Vincent Coubard 20cdd6e0de BLE: Fix comparison expression between an integer and a SafeEnum 2019-02-08 16:48:59 +00:00