Commit Graph

104 Commits (018f205a276bdd0159b3145481ecb2da1a13c103)

Author SHA1 Message Date
Yogesh Pande be70130f3e Fix failing compilation for mbed-os
This commit fixes issue
https://github.com/ARMmbed/mbed-os/issues/2569

This commit has to go in coming mbed-os release else the build is broken.
2016-08-29 14:49:29 +03:00
Sam Grove eeead562f1 Merge pull request #2558 from meriac/master
Update uVisor with new page allocator
2016-08-27 07:30:50 -05:00
Christopher Haster 4ffeec1797 [nsapi] Restructured nsapi_dns.h to have clear separation between C/C++
- Separated overloads based on language
- Removed NSAPI_C_LINKAGE definition
2016-08-26 12:39:52 -05:00
Christopher Haster a3ecdf3b71 [nsapi] Adopted netconn_gethostbyname in the lwip interface
Provides proper integration with DHCP through lwip
2016-08-26 12:16:41 -05:00
Christopher Haster f9552ddbbe [nsapi] Add support for implementation-provided DNS servers
Support intended for DNS servers provided by DHCP requests.
2016-08-26 12:16:41 -05:00
Christopher Haster dc9ddd42ef [nsapi] Removed unnecessary dns_query functions 2016-08-26 12:16:41 -05:00
Christopher Haster 08584916a5 [nsapi] Added IPv6 support to DNS query
To avoid complications with unexpected IP versions, the wanted
IP version was added as an extra argument to DNS query functions
(defaults to NSAPI_IPv4).

Internal API changes:
m nsapi_dns_query
m nsapi_dns_query_multiple

Interestingly, though multiple questions can be encoded in a single
DNS packet, few, if any, nameservers respect any but the first
question. This makes support for coelescing DNS queries useless.
2016-08-26 12:16:41 -05:00
Christopher Haster 665309986e [nsapi] Added support for multiple results in a dns-query
Internal API changes:
+ nsapi_dns_query_multiple

Note, dns_query_multiple takes a buffer of nsapi_addr_t to fill. This is
less dynamic than the linked-list method used in linux's gethostbyname,
but is easier to manage and more constrained.
2016-08-26 12:16:41 -05:00
Christopher Haster 126df2b4a9 [nsapi] Refactored dns-query to match style of the rest of the nsapi
Internal API changes:
dnsQuery -> nsapi_dns_query

Additionally restructured query code to emit/parse network structures
in stream form to hopefully document the underlying structure more
explicitly.
2016-08-26 12:16:41 -05:00
Milosch Meriac 9cb6d6099e Update uVisor page allocator 2016-08-26 17:18:45 +01:00
Sam Grove a7c7ceda0e Merge pull request #2455 from bridadan/share-greentea-serial-in-frameworks
Sharing greentea-client's RawSerial with utest and UNITY.
2016-08-26 09:56:23 -05:00
Sam Grove 9d3557fbcc Merge pull request #2541 from cyliangtw/master
Fix NUC472 Ethernet wrong INT status in RX_Action
2016-08-26 09:26:51 -05:00
Sam Grove c20d7d210f Merge pull request #2527 from yogpan01/IOTCLT-961
Fix for IOTCLT-961 for next mbed-os release candidate
2016-08-26 09:25:01 -05:00
Sam Grove 2fe3e5214e Merge pull request #2509 from adbridge/copy_constructor
Utest: default copy constructor for failure_t doesn't behave as expected
2016-08-26 09:23:21 -05:00
Sam Grove 390cfc402d Merge pull request #2539 from yogpan01/irq-context
Fix for https://github.com/ARMmbed/mbed-os-example-client/issues/75
2016-08-26 07:00:07 -05:00
Sam Grove a4b57302dd Merge pull request #2532 from AlessandroA/uvisor_supported
Update uVisor to v0.20.1-alpha
2016-08-25 09:27:11 -05:00
Sam Grove 2ecb560eb7 Merge pull request #2502 from c1728p9/fix_lwip_blocking_recv
LWIP - fix recv blocking send on accepted sockets
2016-08-25 09:25:01 -05:00
cyliangtw 0441707d4e Fix NUC472 Ethernet wrong INT status in RX_Action 2016-08-25 15:06:52 +08:00
Yogesh Pande 773da3f126 Fix for https://github.com/ARMmbed/mbed-os-example-client/issues/75
The original fix was done in https://github.com/ARMmbed/mbed-os-example-client/issues/75
This PR is to merge the fix into mbed-os release candidate.
2016-08-24 19:00:14 +03:00
Alessandro Angelino 1cca020ec6 uVisor: Minor fix in the README 2016-08-24 09:51:21 +01:00
Alessandro Angelino 2cbccba2e7 uVisor: Update to v0.20.1-alpha 2016-08-24 09:51:00 +01:00
Christopher Haster 47018fe1ac Added check for packet address in ipv4 nist test 2016-08-23 18:45:57 -05:00
Christopher Haster 1826978e8c Fixed recvfrom address in ipv4 nist tests
Previous behaviours overwrote server address on failures
2016-08-23 14:47:43 -05:00
Yogesh Pande 5a19797c8d Fix for IOTCLT-961 for next mbed-os release candidate
This PR is for fixing error found in integration testing for Bootstrap and Connector functionality.
The corresponding fixes done here
6925e89487
fbfb300d62
2016-08-23 19:42:35 +03:00
Sam Grove eb3b99ac0b Merge pull request #2404 from bridadan/retry-nist-udp-test
Adding retries to the NIST test.
2016-08-22 22:42:10 -05:00
Russ Butler f21adc4ad1 Move utest handlers out of critical section
In the function raise_failure move the test_failure and case_failure
calls out of the critical section. This allows these handlers to run
without interrupts disabled and enables them to use rtos features
such as a mutex. This is required for heap metrics to work.
2016-08-22 18:33:00 -05:00
Russ Butler 81859050c3 Fix cfstore_test_delete_all by removing swap
Remove the handle swap in cfstore_test_delete_all. This prevents a
deleted handle from being used.
2016-08-22 18:32:59 -05:00
Russ Butler 6a31ffbf3e Heap statistics
Keep track of the current size allocated, maximum size allocated,
number of allocations, failed allocations and total size allocated for
both GCC and ARM. Report the maximum size allocated at the end of
testing.

Also, add a test to verify heap metrics are working as expected.
2016-08-22 18:32:51 -05:00
Anna Bridge 4f3dba41a1 Fixes issue #2508.
The default compiler(ARMCC) copy constructor for failure_t doesn't behave as
expected and has unexpected side effects. This fix adds a custom copy constructor
to fix this.
2016-08-22 13:29:01 +01:00
Russ Butler 2c02e58853 LWIP - fix recv blocking send on accepted sockets
When a socket is created via accept set the mode to nonblocking -
a timeout of 1ms. This allows send and recv to occur at the same time.
2016-08-19 16:23:12 -05:00
Martin Kojtal 133f16aa5d Merge pull request #2473 from svastm/ethernet_mbed_5
[STM32] Add ethernet and feature IPV4
2016-08-19 11:40:33 +01:00
Martin Kojtal da69629cd8 Merge pull request #2434 from infinnovation/socket-accept-address
network-socket: Optionally return peer address from accept().
2016-08-19 11:31:17 +01:00
svastm 43be3b403e [STM32] Add ethernet and feature IPV4
This commit refactor the `lwip-eth/arch/TARGET_STM` folder and add the IPV4 feature for the
following targets:

 - NUCLEO_F207ZG
 - NUCLEO_F429ZI
 - NUCLEO_F767ZI
 - DISCO_F746NG
2016-08-17 10:27:32 +02:00
Brian Daniels f334bd7602 Sharing greentea-client's RawSerial with utest and UNITY.
This commit allows the linker to remove the reference to the RawSerial object
if it not used in the application. This way it only is brought in for
tests.
2016-08-15 12:11:34 -05:00
Christopher Haster de9e221775 [nsapi] Added support for NSAPI_REUSEADDR to the lwip interface 2016-08-12 18:43:42 -05:00
Christopher Haster 1929c5b0ca network-socket: Support for returning peer address from Nanostack accept 2016-08-12 12:57:26 -05:00
Colin Hogben 4f731e6b17 network-socket: Re-order args of NetworkStack::accept
Make the argument order more sensible, in line with nsapi.
2016-08-12 17:22:17 +01:00
Colin Hogben 36bf4827c7 network-socket: Optionally return peer address from accept().
Fixes issue #2399 by optionally returning a SocketAddress from
TCPServer::accept().

This entails changes to underlying NetworkStack and nsapi.  This
commit deals only with lwip and higher level APIs; other users of
NetworkStack and nsapi may be affected.  Currently lwip is the only
in-tree user of nsapi.
2016-08-12 10:50:52 +01:00
Sam Grove 7007c4694b Merge pull request #2381 from c1728p9/nanostack_m7_support
Add Cortex-M7 Nanostack binaries
2016-08-11 01:21:27 +01:00
Brian Daniels 114efcf753 Adding retries to the NIST test.
A UDP request to the NIST servers can fail to return data due to UDP
packet loss. Since packets are not guaranteed with UDP, this is a valid
failure and should not be treated as a test failure. The test should retry
the request in this case. This commit adds those retries.
2016-08-10 09:25:04 -05:00
Alessandro Angelino 69101b84d4 uVisor: Update the RPC header files
This follows:

ARMmbed/uvisor#02ecf05 - "Remove unused TFN_RPC_Callback"
ARMmbed/uvisor#483ddda - "rpc: Add `rpc_fncall_wait`"
ARMmbed/uvisor#fdb7dce - "rpc: Add missing UVISOR_EXTERN to
                          rpc_fncall_waitfor declaration"
2016-08-08 12:43:23 +01:00
Alessandro Angelino 2f2fbc49a5 uVisor: Update README
Note: The README is auto-generated by the importer script, which copies
the QUICKSTART.md guide from ARMmbed/uvisor.
2016-08-08 12:39:47 +01:00
Russ Butler 8b40b38e11 Add Cortex-M7 Nanostack binaries
Add binaries for the Cortex-M7 architecture. These binaries are identical
the the Cortex-M3 versions.
2016-08-05 16:08:18 -05:00
Christopher Haster a7d6aa5953 Fixed indirect-dependency of mbed-client-classic through Socket.h
Before:
m2mconnectionhandlerpimpl.cpp -> Socket.h -> mbed.h

Now:
m2mconnectionhandlerpimpl.cpp -> mbed.h
2016-08-04 17:47:30 -05:00
Christopher Haster 75a57ad797 Exposed the network-socket API through mbed.h
Currently this uses the same mechanism used by the rtos to conditionally
include the network-socket API. Perhaps this should be builtin to the
config system?

Note: this does require that the bug-compatible inclusion of mbed.h
be removed to avoid include-order issues.

per @sg-
2016-08-04 11:07:33 -05:00
Sam Grove 34caf43f5a Merge pull request #2238 from OpenNuvoton/nuc472
[NUC472] Add NUMAKER-PFM-NUC472
2016-08-04 10:37:31 -05:00
Brian Daniels fc65ce08e0 Adding README for utest
This README was pulled from the project's repo here:
https://github.com/ARMmbed/utest. I made minor modifications to the README
to reflect the changes to the default scheduler (using a Timeout object
instead of MINAR).
2016-08-03 13:20:31 -05:00
Sam Grove dd36dc4228 Merge pull request #2349 from c1728p9/nanostack_unsupported
Adding error message for unsupported platforms
2016-08-03 00:45:08 -05:00
Sam Grove 32b134e277 Merge pull request #2345 from pan-/fix_nrf51_export
Fix nrf51 export
2016-08-02 23:18:12 -05:00
Russ Butler 607ade0596 Adding error message for unsupported platforms
* Error message for unsupported platforms
2016-08-02 22:45:46 -05:00