Skip to content

Update IAR Armv8M changes - Work in progress #9279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
e1cf516
fix max payload and hci length values
paul-szczepanek-arm Dec 11, 2018
7dd90e1
Docuement active set length and add informative call for querying the…
paul-szczepanek-arm Dec 11, 2018
c5bad80
add asserts for illegal compinations of adv params
paul-szczepanek-arm Dec 12, 2018
ff0a2a9
check connectible sizes
paul-szczepanek-arm Dec 13, 2018
67db321
check illegal adv params combimnation
paul-szczepanek-arm Dec 13, 2018
8b39071
make function name longer
paul-szczepanek-arm Jan 2, 2019
a66ffa3
add constructor suggested by Vincent
paul-szczepanek-arm Jan 2, 2019
dd1d473
future proof return size
paul-szczepanek-arm Jan 2, 2019
bf08cf7
Initial version for Quectel M26 GSM/GPRS Module.
tz-arm Jan 3, 2019
3be792a
simplify for statement
paul-szczepanek-arm Jan 3, 2019
b712e71
FLASHIAP test: skip test if test region overlaps code
jeromecoutant Jan 4, 2019
585a4b6
Add nanostack support for KW41Z
mmahadevan108 Feb 8, 2018
40864d4
Update TEST_APPS to add KW41Z for nanostack tests
mmahadevan108 Dec 14, 2018
9f340ed
uARM targets now build in correct ARM_MICRO directory
bridadan Jan 8, 2019
cc447e9
STM32 : typo error in QSPI
jeromecoutant Jan 10, 2019
b1a284a
STM32: astyle check
jeromecoutant Jan 9, 2019
877a3a1
STM32: replace missing #ifdef DEVICE_xxx
jeromecoutant Jan 10, 2019
a4a99d6
SDBlockDevice docs update
juhaylinen Jan 10, 2019
66f5358
some minor streamlining and editorial changes
Jan 10, 2019
9a3c9a3
[ESP8266] Drop signalling SIGIO artificially if UDP send fails
Jan 10, 2019
e9ceff2
[ESP8266] fixes a debug print
Jan 10, 2019
6192609
Minor Doxygen fixes for BufferedBlockDevice and iBeacon
Jan 10, 2019
3c7924a
Minor Doxygen fixes for all file system classes
Jan 9, 2019
7dde677
Some Doxygen fixes in MBRBlockDevice and BlockDevice
Jan 10, 2019
b21576c
Review updates
Jan 10, 2019
ef85898
thread_mle_message_handler: fix build warning
Jan 10, 2019
73ac904
Doxygen changes to ProfilingBlockDevice and SlicingBlockDevice.
Jan 10, 2019
1066258
minor editorial tweaks
Jan 10, 2019
51168ee
Merge branch 'yossi_write-a-thon2' of github.com:yossi2le/mbed-os int…
Jan 10, 2019
d9e24b2
Update and cleanup BLE.h doxygen
Jan 10, 2019
6954c39
Update BlockDevice.h
GuyWi Jan 10, 2019
9b3adc2
Update iBeacon.h
GuyWi Jan 10, 2019
7981fdf
Supply test config for KW41Z
mmahadevan108 Jan 10, 2019
d3f7abd
CMSIS/CORTEX-M: Don't build mbed_tz_context.c in TF-M targets
Jan 3, 2019
1e8169d
Update cmsis_importer.json SHAs
Jan 10, 2019
7db2292
Flush ESP8266 serial input buffers after HW reset
Jan 10, 2019
b228cd9
CMSIS/RTX: Update Armv8M IAR 8.x assembly files - add END
Jan 8, 2019
09db656
Added IAR assembly file update commit to cmsis importer
Jan 8, 2019
b6aba2f
Fix bug in templated attach function
Pharap Jan 10, 2019
c9ec363
Add GD32_E10X as new target
ChazJin Dec 27, 2018
7a29b20
resolve conflicting file targets.json and add support for GD32_E103VB
ChazJin Jan 3, 2019
75d4705
adjust directory structure for device
ChazJin Jan 8, 2019
84469e1
Corrected simplified astyle job behavior when base branch is not master
Jan 11, 2019
14f6cdd
[GigaDevice] Support boot stack size configuration option(GD32_F450ZI)
mprse Jan 11, 2019
8ed521e
Doxygen update for LoRaRadio class
Jan 10, 2019
701bb05
Writer review
Jan 10, 2019
fd04d25
Fixed single space that astyle caught
Jan 10, 2019
4d9c434
Support boot stack size configuration option
ChazJin Jan 11, 2019
bfcdb7d
mbed_boot_arm_std.c: remove redundant compiler check
mprse Jan 11, 2019
8cc4234
mbed_boot_gcc_arm.c: remove redundant compiler check
mprse Jan 11, 2019
c3077d2
Merge pull request #9346 from cmonr/astyle_in_branch-fix
0xc0170 Jan 11, 2019
7bf33f0
Parameterise repo used in Mbed TLS importer script
simonbutcher Jan 11, 2019
6c7bd19
Merge pull request #9350 from mprse/adapt_linker_scripts_new_gb_targets
0xc0170 Jan 11, 2019
919dba5
Merge pull request #9321 from jeromecoutant/PR_QSPI
0xc0170 Jan 11, 2019
fd6ceda
Merge pull request #9323 from jeromecoutant/PR_AST
0xc0170 Jan 11, 2019
adeb5be
Merge pull request #9334 from yossi2le/yossi_write-a-thon2
0xc0170 Jan 11, 2019
d92febe
Merge pull request #9327 from jeromecoutant/PR_IFDEF
0xc0170 Jan 11, 2019
307bdd7
Merge pull request #9305 from davidsaada/david_littlefs_fatfs_doxy_fix
0xc0170 Jan 11, 2019
e83b883
[ESP8266] fixes disconnect to check the state from modem
Jan 11, 2019
889d5dc
NUCLEO_H743ZI : enable TICKLESS
jeromecoutant Jan 11, 2019
55507ea
Fix race condition when generating OOB data
costanic Jan 8, 2019
24d793c
Fix parameters provided to oob generator function
costanic Jan 8, 2019
7795e30
Remove own_oob and peer_oob flags from Nordic PAL
costanic Jan 8, 2019
70b9b75
Add doxygen spellcheck jobs to Travis
kegilbert Nov 30, 2018
dafb01c
Add get/settimeofday retargets
kegilbert Oct 22, 2018
90e4286
Remove unnecessary error prints in FileSystemStore
Jan 13, 2019
d6382bb
Fix the general block device to support better low memory boards
Jan 13, 2019
7d25dcc
Enable PSA APIs on Pelion boards
Dec 25, 2018
eac620d
Add FLASHAIP component
Dec 26, 2018
7ad0262
Enable entropy injection on PSA targets
Dec 26, 2018
454ae25
Set "TDB_INTERNAL" default storage for Pelion
Jan 1, 2019
435d944
fix its_reset test
Jan 1, 2019
763cb4c
Revert "Enable entropy injection on PSA targets"
Jan 13, 2019
f4aaebd
Merge pull request #9203 from ChazJin/gd32e10x
0xc0170 Jan 14, 2019
9e94070
Merge pull request #9362 from davidsaada/david_bd_test_low_mem
0xc0170 Jan 14, 2019
58a6c24
Merge pull request #9195 from alzix/patch-1
0xc0170 Jan 14, 2019
7a5192f
Merge pull request #9330 from hasnainvirk/doxy_loraradio
0xc0170 Jan 14, 2019
601e2c3
Merge pull request #9355 from sbutcher-arm/mbedtls-importer-repo-param
0xc0170 Jan 14, 2019
116e42f
Merge pull request #9295 from deepikabhavnani/iar_asm
0xc0170 Jan 14, 2019
c5014f4
Merge pull request #9324 from kfnta/avoid_mbed_tz_context
0xc0170 Jan 14, 2019
23d7565
Merge pull request #9341 from SeppoTakalo/flush_esp
0xc0170 Jan 14, 2019
9d4db2b
Merge pull request #9332 from jarlamsa/ble_doxygen_cleanup
0xc0170 Jan 14, 2019
6f757a5
LoRAWAN: volatile bool -> atomic_flag
kjbracey Jan 3, 2019
f294447
Moved nextTimeout variable out of critical section in BLE::callDispat…
lrusinowicz Jan 14, 2019
02cd9f1
[ESP8266] adds an error check for data overflow from modem side
Jan 14, 2019
ebf3a19
Merge pull request #9329 from juhaylinen/sdblockdevice-doc
0xc0170 Jan 14, 2019
18967a8
Removed cellular driver L3IP stub
tymoteuszblochmobica Jan 14, 2019
5caeaed
Set target C030-R412M in mbed
fahimalavi Jan 14, 2019
5212cc6
Merge pull request #6622 from NXPmicro/Add_KW41Z_Thread
0xc0170 Jan 14, 2019
be9f9f7
travis: set hypothesis to 3.88 version
0xc0170 Jan 14, 2019
41ecde9
Merge pull request #9371 from 0xc0170/test_travis_master
Jan 14, 2019
ec3d713
add qspif as default storage for LPCXpresso546XX
Jan 14, 2019
5a9db72
general_block_device test fixed to always erase prior to first program
Jan 15, 2019
eb7cbc1
Removing the dependency of TDBStore in SystemStorage.h and NVStore co…
Jan 13, 2019
a05180a
Moving KVStore to include sub folder For TFM support
Jan 13, 2019
849db51
Moving DirectAccessDevicekey.h and DirectAccessDevicekey.cpp to direc…
Jan 13, 2019
971e29b
Remove TARGET prefix from the TARGET_BYPASS_NVSTORE_CHECK and leave i…
Jan 14, 2019
59e8ded
TCP/UDP greentea tests refactoring and cleanup
michalpasztamobica Jan 14, 2019
82abf97
Merge pull request #9363 from davidsaada/david_fsst_tr_error_remove
0xc0170 Jan 15, 2019
2896c12
Merge pull request #9357 from jeromecoutant/PR_H7TICKLESS
0xc0170 Jan 15, 2019
a180d69
Merge pull request #9356 from VeijoPesonen/bugfix-esp8266_disconnect_…
0xc0170 Jan 15, 2019
aff2bee
Merge pull request #9352 from mprse/armc6_fix
0xc0170 Jan 15, 2019
4d45306
open hal lib source
Jan 15, 2019
6e629e1
Gemalto Crinterion UDP test adjustments
michalpasztamobica Jan 8, 2019
709c121
Fixes typos in SMSC9220 Ethernet driver
kapi90 Jan 15, 2019
af23e3f
MBRBlockDevice: When partitioning, clear the rest of first erase unit
Jan 15, 2019
b070fb4
COMPONENT_SD default configuration for ST boards is already defined i…
jeromecoutant Jan 15, 2019
95a050b
Add FLASH support to TARGET_MAX32620C MCU and derivative platform tar…
Dec 12, 2018
e2a7b89
Sleep manager implements all the API's in platform/mbed_sleep_manager…
Jan 7, 2019
a1a9051
Update the header files
Jan 8, 2019
255661e
Adding debugger awarness with Keil MDK
Nov 27, 2018
ba92372
CMSIS/RTX: Move Idle and Timer thread stack to bss section.
Dec 13, 2018
347acd1
Add SHA for "Move Idle and Timer thread stack to bss section" commit
Jan 3, 2019
e0df167
Added pyocd depencency to resolve Travis CI issue
Jan 15, 2019
134905b
Merge pull request #9384 from davidsaada/david_mbr_erase_start
Jan 16, 2019
32c9c3a
Merge pull request #8970 from kegilbert/spell-checker-travisjob
0xc0170 Jan 16, 2019
51a8c39
Merge pull request #9245 from kjbracey-arm/lorawan_atomic_flag
0xc0170 Jan 16, 2019
0b9587f
Merge pull request #9391 from cmonr/bind-pyocd-version
0xc0170 Jan 16, 2019
29b3ed9
Clarify addition to CONFIGURATION.md
Jan 16, 2019
97486a6
Merge pull request #9374 from maclobdell/LPCXpresso546xx_add_qspif
Jan 17, 2019
d0665c8
Merge pull request #9365 from lrusinowicz/cordio_ble_fix
Jan 17, 2019
4f95298
Merge pull request #9361 from yossi2le/yossi_fix_for_tfm
Jan 17, 2019
92a5f2f
Merge pull request #9337 from tymoteuszblochmobica/removecellular
Jan 17, 2019
bfc4646
Merge pull request #9288 from michalpasztamobica/gemalto_crinterion_t…
Jan 17, 2019
84f01d3
Merge pull request #9261 from tz-arm/merge_quectel_m26
Jan 17, 2019
5dbb4b9
Merge pull request #8497 from kegilbert/gettimeofday_patch
Jan 17, 2019
26696c2
Fixed rtc doxygen spelling errors
Jan 17, 2019
9ed5d04
Added 'retarget' to aspell ignore list
Jan 17, 2019
714fc83
Merge pull request #9369 from u-blox/target_C030-R412M
0xc0170 Jan 17, 2019
a1daecb
Merge pull request #9280 from deepikabhavnani/refactor_a
0xc0170 Jan 17, 2019
694e45f
Merge pull request #9297 from bridadan/fix_os2_tests_uarm
0xc0170 Jan 17, 2019
b59b93e
Merge pull request #9331 from VeijoPesonen/bugfix-esp8266_udp_prevent…
0xc0170 Jan 17, 2019
284781a
Merge pull request #9096 from pan-/fix-enforce-size-limits
0xc0170 Jan 17, 2019
53bb986
Merge pull request #9405 from cmonr/fix-doxy
0xc0170 Jan 17, 2019
1a8844e
Merge pull request #8887 from deepikabhavnani/uVision_fix
0xc0170 Jan 17, 2019
e996b7f
DirectAccess DeviceKey added support for default storage type
Jan 17, 2019
9d6e309
Extended mount to check all metadata-pairs
geky Jan 17, 2019
06dbd82
tools: build_api: remove redundant initialization and fix spelling
Jan 17, 2019
436d3d0
Merge pull request #9257 from jeromecoutant/PR_FLASHIAP_TIMING
Jan 18, 2019
1afcbbf
Merge pull request #9316 from bentcooke/add_flash_MAX32620FTHR
Jan 18, 2019
3b43a2d
Merge pull request #9333 from offirko/offir_doxygen
Jan 18, 2019
74f5723
Merge pull request #9335 from naveenkaje/fix_thred_mle_warning
Jan 18, 2019
fd2a96e
Merge pull request #9339 from costanic/fix_oob
Jan 18, 2019
30e0d8f
Merge pull request #9366 from VeijoPesonen/bugfix-esp8266_verify_rcvd…
Jan 18, 2019
68deb05
Merge pull request #9376 from michalpasztamobica/tcpsocket_greentea
Jan 18, 2019
c0bbc5c
Merge pull request #9380 from kyliuxing/master
Jan 18, 2019
ce1bb59
Merge pull request #9403 from ARMmbed/AnotherButler-patch-1
Jan 18, 2019
309d9be
Merge pull request #9386 from jeromecoutant/PR_SDJSON
Jan 18, 2019
46bb754
Merge pull request #9385 from kapi90/smsc9220_fix
Jan 18, 2019
40f40ac
Merge pull request #9407 from offirko/offir_direct_access_handle_defa…
0xc0170 Jan 18, 2019
6c6ebc6
Merge pull request #9406 from geky/littlefs-validate-all-dirs
0xc0170 Jan 18, 2019
f48c1a9
Merge pull request #9344 from Pharap/fix-attach-function
0xc0170 Jan 18, 2019
cee814d
Merge pull request #9377 from offirko/offir_general_block_device_test
0xc0170 Jan 18, 2019
8f48104
Merge pull request #9418 from naveenkaje/build_api_spell_fix
0xc0170 Jan 18, 2019
0bd2e1b
Update IAR flags for Armv8M devices.
Jan 7, 2019
9a78756
M2351: Update code to support IAR 8.x builds
Jan 8, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 26 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ matrix:
# Install dependencies
- sudo apt-get install gcc-arm-embedded
- pip install -r requirements.txt
- pip install pytest pylint hypothesis mock coverage coveralls
- pip install pytest pylint hypothesis==3.88.3 mock coverage coveralls
# Print versions we use

- arm-none-eabi-gcc --version
Expand All @@ -122,7 +122,27 @@ matrix:
after_success:
# Coverage for tools
- coveralls
# Report success since we have overridden default behaviour
# Report success since we have overridden default behavior
- bash -c "$STATUS" success "Local $NAME testing has passed"

- env:
- NAME=doxy-spellcheck

install:
- sudo apt-get install aspell

script:
# Run local testing on header file doxy
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh drivers
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh platform
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh events
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh rtos
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh features/netsocket

after_success:
# Coverage for tools
- coveralls
# Report success since we have overridden default behavior
- bash -c "$STATUS" success "Local $NAME testing has passed"

# - <<: *tools-pytest
Expand All @@ -144,9 +164,12 @@ matrix:
export PATH=$PWD/bin:$PATH;
cd -
- astyle --version
# Fetch remaining information needed for branch comparison
- git fetch --all --unshallow --tags
- git fetch origin "${TRAVIS_BRANCH}"
script:
- >-
git diff --name-only --diff-filter=d HEAD..${TRAVIS_BRANCH} \
git diff --name-only --diff-filter=d FETCH_HEAD..HEAD \
| ( grep '.\(c\|cpp\|h\|hpp\)$' || true ) \
| ( fgrep -v -f .astyleignore || true ) \
| while read file; do astyle -n --options=.astylerc "${file}"; done
Expand Down
5 changes: 5 additions & 0 deletions TESTS/mbed_drivers/flashiap/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ void flashiap_cross_sector_program_test()
agg_size += sector_size;
address -= sector_size;
}
utest_printf("ROM ends at 0x%lx, test starts at 0x%lx\n", FLASHIAP_APP_ROM_END_ADDR, address);
TEST_SKIP_UNLESS_MESSAGE(address >= FLASHIAP_APP_ROM_END_ADDR, "Test skipped. Test region overlaps code.");
ret = flash_device.erase(address, agg_size);
TEST_ASSERT_EQUAL_INT32(0, ret);
Expand Down Expand Up @@ -184,6 +185,7 @@ void flashiap_program_error_test()
TEST_ASSERT_TRUE(address != 0UL);

// unaligned address
utest_printf("ROM ends at 0x%lx, test starts at 0x%lx\n", FLASHIAP_APP_ROM_END_ADDR, address);
TEST_SKIP_UNLESS_MESSAGE(address >= FLASHIAP_APP_ROM_END_ADDR, "Test skipped. Test region overlaps code.");
ret = flash_device.erase(address + 1, sector_size);
TEST_ASSERT_EQUAL_INT32(-1, ret);
Expand Down Expand Up @@ -220,6 +222,9 @@ void flashiap_timing_test()
utest_printf("\nFlash timing:\n");
uint32_t sector_size = flash_device.get_sector_size(end_address - 1UL);
uint32_t base_address = end_address - sector_size;
utest_printf("ROM ends at 0x%lx, test starts at 0x%lx\n", FLASHIAP_APP_ROM_END_ADDR, base_address);
TEST_SKIP_UNLESS_MESSAGE(base_address >= FLASHIAP_APP_ROM_END_ADDR, "Test skipped. Test region overlaps code.");

timer.start();
for (num_write_sizes = 0; num_write_sizes < max_write_sizes; num_write_sizes++) {
if (write_size > sector_size) {
Expand Down
4 changes: 4 additions & 0 deletions TESTS/netsocket/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ content at minimum:
"help" : "Port of echo server",
"value" : "7"
}
"echo-server-discard-port" : {
"help" : "Discard port of echo server",
"value" : "9"
}
}
}
```
Expand Down
46 changes: 22 additions & 24 deletions TESTS/netsocket/tcp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
using namespace utest::v1;

namespace {
NetworkInterface *net;
Timer tc_bucket; // Timer to limit a test cases run time
}

Expand All @@ -45,11 +44,6 @@ mbed_stats_socket_t tcp_stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT];
char tcp_global::rx_buffer[RX_BUFF_SIZE];
char tcp_global::tx_buffer[TX_BUFF_SIZE];

NetworkInterface *get_interface()
{
return net;
}

void drop_bad_packets(TCPSocket &sock, int orig_timeout)
{
nsapi_error_t err;
Expand All @@ -65,46 +59,50 @@ void drop_bad_packets(TCPSocket &sock, int orig_timeout)

static void _ifup()
{
net = NetworkInterface::get_default_instance();
NetworkInterface *net = NetworkInterface::get_default_instance();
nsapi_error_t err = net->connect();
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, err);
printf("MBED: TCPClient IP address is '%s'\n", net->get_ip_address());
}

static void _ifdown()
{
net->disconnect();
NetworkInterface::get_default_instance()->disconnect();
printf("MBED: ifdown\n");
}

nsapi_error_t tcpsocket_connect_to_echo_srv(TCPSocket &sock)
nsapi_error_t tcpsocket_connect_to_srv(TCPSocket &sock, uint16_t port)
{
SocketAddress tcp_addr;

get_interface()->gethostbyname(MBED_CONF_APP_ECHO_SERVER_ADDR, &tcp_addr);
tcp_addr.set_port(MBED_CONF_APP_ECHO_SERVER_PORT);
NetworkInterface::get_default_instance()->gethostbyname(MBED_CONF_APP_ECHO_SERVER_ADDR, &tcp_addr);
tcp_addr.set_port(port);

printf("MBED: Server '%s', port %d\n", tcp_addr.get_ip_address(), tcp_addr.get_port());

nsapi_error_t err = sock.open(get_interface());
nsapi_error_t err = sock.open(NetworkInterface::get_default_instance());
if (err != NSAPI_ERROR_OK) {
printf("Error from sock.open: %d\n", err);
return err;
}

return sock.connect(tcp_addr);
}

nsapi_error_t tcpsocket_connect_to_discard_srv(TCPSocket &sock)
{
SocketAddress tcp_addr;

get_interface()->gethostbyname(MBED_CONF_APP_ECHO_SERVER_ADDR, &tcp_addr);
tcp_addr.set_port(9);

nsapi_error_t err = sock.open(get_interface());
err = sock.connect(tcp_addr);
if (err != NSAPI_ERROR_OK) {
printf("Error from sock.connect: %d\n", err);
return err;
}

return sock.connect(tcp_addr);
return NSAPI_ERROR_OK;
}

nsapi_error_t tcpsocket_connect_to_echo_srv(TCPSocket &sock)
{
return tcpsocket_connect_to_srv(sock, MBED_CONF_APP_ECHO_SERVER_PORT);
}

nsapi_error_t tcpsocket_connect_to_discard_srv(TCPSocket &sock)
{
return tcpsocket_connect_to_srv(sock, MBED_CONF_APP_ECHO_SERVER_DISCARD_PORT);
}

void fill_tx_buffer_ascii(char *buff, size_t len)
Expand Down
5 changes: 3 additions & 2 deletions TESTS/netsocket/tcp/tcpsocket_bind_address.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ void TCPSOCKET_BIND_ADDRESS()
TCPSocket *sock = new TCPSocket;
if (!sock) {
TEST_FAIL();
return;
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
SocketAddress sockAddr = SocketAddress(get_interface()->get_ip_address(), 80);
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(NetworkInterface::get_default_instance()));
SocketAddress sockAddr = SocketAddress(NetworkInterface::get_default_instance()->get_ip_address(), 80);
nsapi_error_t bind_result = sock->bind(sockAddr);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
Expand Down
3 changes: 2 additions & 1 deletion TESTS/netsocket/tcp/tcpsocket_bind_address_invalid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ void TCPSOCKET_BIND_ADDRESS_INVALID()
TCPSocket *sock = new TCPSocket;
if (!sock) {
TEST_FAIL();
return;
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(NetworkInterface::get_default_instance()));
nsapi_error_t bind_result = sock->bind("190.2.3.4", 1024);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
Expand Down
3 changes: 2 additions & 1 deletion TESTS/netsocket/tcp/tcpsocket_bind_address_null.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ void TCPSOCKET_BIND_ADDRESS_NULL()
TCPSocket *sock = new TCPSocket;
if (!sock) {
TEST_FAIL();
return;
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(NetworkInterface::get_default_instance()));
nsapi_error_t bind_result = sock->bind(NULL, 1024);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
Expand Down
5 changes: 3 additions & 2 deletions TESTS/netsocket/tcp/tcpsocket_bind_address_port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ void TCPSOCKET_BIND_ADDRESS_PORT()
TCPSocket *sock = new TCPSocket;
if (!sock) {
TEST_FAIL();
return;
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
nsapi_error_t bind_result = sock->bind(get_interface()->get_ip_address(), 80);
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(NetworkInterface::get_default_instance()));
nsapi_error_t bind_result = sock->bind(NetworkInterface::get_default_instance()->get_ip_address(), 80);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
} else {
Expand Down
3 changes: 2 additions & 1 deletion TESTS/netsocket/tcp/tcpsocket_bind_port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ void TCPSOCKET_BIND_PORT()
TCPSocket *sock = new TCPSocket;
if (!sock) {
TEST_FAIL();
return;
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(NetworkInterface::get_default_instance()));
nsapi_error_t bind_result = sock->bind(1024);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
Expand Down
5 changes: 3 additions & 2 deletions TESTS/netsocket/tcp/tcpsocket_bind_port_fail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ void TCPSOCKET_BIND_PORT_FAIL()
TCPSocket *sock = new TCPSocket;
if (!sock) {
TEST_FAIL();
return;
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(NetworkInterface::get_default_instance()));
nsapi_error_t bind_result = sock->bind(1024);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
Expand All @@ -51,7 +52,7 @@ void TCPSOCKET_BIND_PORT_FAIL()
if (!sock2) {
TEST_FAIL();
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock2->open(get_interface()));
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock2->open(NetworkInterface::get_default_instance()));
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, sock2->bind(1024));

delete sock;
Expand Down
1 change: 1 addition & 0 deletions TESTS/netsocket/tcp/tcpsocket_bind_unopened.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ void TCPSOCKET_BIND_UNOPENED()
TCPSocket *sock = new TCPSocket;
if (!sock) {
TEST_FAIL();
return;
}
nsapi_error_t bind_result = sock->bind(1024);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
Expand Down
3 changes: 2 additions & 1 deletion TESTS/netsocket/tcp/tcpsocket_bind_wrong_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ void TCPSOCKET_BIND_WRONG_TYPE()
TCPSocket *sock = new TCPSocket;
if (!sock) {
TEST_FAIL();
return;
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(NetworkInterface::get_default_instance()));
char addr_bytes[16] = {0xfe, 0x80, 0xff, 0x1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
SocketAddress sockAddr = SocketAddress(addr_bytes, NSAPI_IPv4, 80);
nsapi_error_t bind_result = sock->bind(sockAddr);
Expand Down
2 changes: 1 addition & 1 deletion TESTS/netsocket/tcp/tcpsocket_connect_invalid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ using namespace utest::v1;
void TCPSOCKET_CONNECT_INVALID()
{
TCPSocket sock;
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock.open(get_interface()));
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock.open(NetworkInterface::get_default_instance()));

TEST_ASSERT(sock.connect(NULL, 9) < 0);
TEST_ASSERT(sock.connect("", 9) < 0);
Expand Down
Loading