Commit Graph

2154 Commits (1dfe716b56850053583cc8c88b3d1eb7dccf0d31)

Author SHA1 Message Date
andreas.larsson 0e5a0d68b3 Enabled feature IPV4 for C029 2016-09-16 11:31:33 +02:00
Martin Kojtal 5d1d8b4033 Merge pull request #2685 from andreaslarssonublox/stm32f4_phy_fix
lwip - replace vendor specific register usage in stm32f4_emac.c with basic register
2016-09-16 08:23:37 +01:00
Christopher Haster b7d9b28bc4 lwip - Fixed error code on disconnect TCP socket
Fixed to return 0 on successful shutdown
2016-09-15 15:19:40 -05:00
Sam Grove da14bce7a2 Merge pull request #2518 from fvincenzo/master
Enable uvisor on Beetle
2016-09-15 14:01:07 -05:00
Yogesh Pande 86e0841f04 Removing mbed-client and other fix commits.
**FEATURE_CLIENT**
Removing FEATURE_CLIENT from mbed-os source tree.

This commit removes FEATURE_CLIENT from mbed-os source tree
Applications using mbed-client now have to explicitly add
mbed-client.lib in addition to mbed-os.lib.

**mbed-client-c**
 -  [v3.0.1](https://github.com/ARMmbed/mbed-client-c/releases/tag/v3.0.1) (15-Sep-2016)
[Full Changelog](ARMmbed/mbed-client-c@mbed-os-5.0-rc1...v3.0.1)

**New features**

- Creates a new sn_nsdl_put_resource function, which takes ownership of sn_nsdl_resource_info_s resource object (not members) instead of creationg copy of it
- Rearranged struct member variable to pack better into memory
- Refactored coap_options_list to treat number members as numbers instead of strings
- Add option to pass incoming blocks to application instead storing them internally
- Added API for deleting one message from resending

**Closed issues:**

- IOTCLT-1001 - mDS does not sent RST anymore for Client after DELETE /subscriptions

**coap-service**
 -  [v4.0.3](https://github.com/ARMmbed/coap-service/releases/tag/v4.0.3) (15-Sep-2016)
[Full Changelog](ARMmbed/coap-service@mbed-os-5.0-rc1...v4.0.3)

**New features**

- Updated coap-service to use new structure from mbed-client-c
- Set link layer security when opening socket.
2016-09-15 20:42:06 +03:00
Martin Kojtal 4fde794572 Merge pull request #2627 from bulislaw/feature_wifi
Extend and rework WiFi interface
2016-09-15 11:53:03 +02:00
Mohammad Azim Khan 7cc3f40b38 Changes in greentea-client for uvisor-tests-standalone integration 2016-09-14 13:36:08 +01:00
Bartek Szatkowski f9f1f44a35 Extend and rework WiFi interface
General refactoring of the API and new methods added:
  * get_rssi() - measures radio signal strenght
  * get_state() - returns current state (not connected,
   		 connecting, connected, error)
  * scan() - scans for available networks sync and async versions
  * connect_async() - connect to a network without blocking
2016-09-14 12:57:22 +01:00
Russ Butler 9e4a479794 Add prefix to mark cmsis_os functions as private
Add a leading underscore to give an indication that the new cmsis_os
API functions are not official.
2016-09-13 15:53:17 -05:00
Russ Butler 1921b1aa96 Add stack metrics to greentea
Update greentea to report thread information when a thread exits or
is terminated and when testing completes. Also move metrics into
a dedicated greentea file.
2016-09-13 15:52:18 -05:00
Simon Hughes 5e22db842f This commit includes the following CFSTORE/Flash-Journal/Storage updates and fixes:
- flash-journal basicAPI fix for ARM toolchain
- Updated storage-abstraction with version 0.4.7
  (commit c7c4a8c52298bbc006a6f53a059fb2599cad73cc).
- https://github.com/ARMmbed/storage-volume-manager at version v0.2.10.
- https://github.com/ARMmbed/mtd-k64f v0.4.2 version of flash.c (imported as storage_driver.c).
- update to CFSTORE to use the storage-volume-manager API to initialize volume manager and
  add a volume for CFSTORE to use.
- https://github.com/ARMmbed/flash-journal at version v0.5.3
  (commit 4c58165e2fa02c6ed2b9d166a9c96967e81f458f) including readFrom() support.
- Taking flash-journal-strategy-sequential v0.6.7 strategy.c
  (commit b11a718761aa9f33679956968a21aaef9179bde1).
- GCC_ARM, ARM and IAR compiler warning fixes for new versions of flash-journal code.
- Fix storage-volume-manager test cases for concurrent access from 2 volumes to use
  addresses within the 512-1024kB address range, which is within the cfstore added volume.
- Fix cfstore/storage-volume-manager IAR warnings when building with verbose flag.
2016-09-13 18:16:56 +01:00
Andrzej Puzdrowski e67117b8ea introduce the SDK nRF5 Peer manager into BLE security features
PM will be used for SoftDevices s13x, otherwise DM will be used.

Fix - security key distribution settings - Signing is not supported.

declare usage of encryption LTK and IRK if boonding enabled

deleted unused local reference to nRF5xGap class in bleGattcEventHandler.
fix PM internal bug (For gcc with -0s optimization an application fail to save a boonding data)
fuse redeclaration of PACKED macro in nRF5 SDK sources
2016-09-13 14:16:55 +02:00
Arto Kinnunen 1b46d2bbf9 Avoid type collision by renaming callback variable
Build jobs are failing due build error "arm_hal_timer.cpp:50:5:
error: reference to 'callback' is ambiguous".

Fix the build error by renaming callback to arm_hal_callback to
avoid collision with callback defined in ./mbed-os/hal/api/Callback.h
2016-09-13 15:02:43 +03:00
andreas.larsson 189d932169 Replaced usage of vendor specific register with basic registers when checking link status 2016-09-13 12:04:04 +02:00
Vincenzo Frascino 08e6f4121c [BEETLE] Add platform to uvisor importer
This patch adds Beetle platform to uvisor importer.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
2016-09-12 10:54:33 +01:00
Christopher Haster e3037ef7b0 nsapi - Added equality operators to SocketAddress class 2016-09-11 20:48:01 -05:00
Sam Grove 5c30c0f166 Merge pull request #2594 from svastm/fix_tcp_server_constructor
Fix TCPServer constructor
2016-09-10 13:04:55 -05:00
Sam Grove 5b90bf7b1d Merge pull request #2624 from simonqhughes/master
CFSTORE Bugfix for realloc() moving KV area and cfstore_file_t data structures not being updated correctly
2016-09-10 07:26:41 -05:00
Sam Grove 3806c8713b Merge pull request #2559 from pan-/utest_globals_optimizations
[utest]: Allow the linker to remove any part of utest if not used
2016-09-10 07:16:34 -05:00
Sam Grove c1ee7fb494 Merge pull request #2504 from ohagendorf/disco_f769_ii
[Disco_F769NI] adding new target
2016-09-10 07:16:21 -05:00
Sam Grove a35cd7f81f Merge pull request #2579 from geky/nsapi-max-socket-accept
lwip - Fix handling of max sockets in socket_accept
2016-09-10 07:11:20 -05:00
Sam Grove fb7ffcb5a3 Merge pull request #2580 from geky/nsapi-bind-again
lwip - Add check for previously-bound socket
2016-09-10 07:10:45 -05:00
Sam Grove b10e3a9163 Merge pull request #2578 from c1728p9/fix_double_free
Fix double free in NanostackInterface
2016-09-09 18:00:09 -05:00
Vincent Coubard aab107020b Use SingletonPtr for the internal variables defaults and handlers in utest_harness. 2016-09-09 17:22:41 +01:00
Olaf Hagendorf 765aeb0dc6 disco_f769ni adding ethernet init
the IPV4 feature was already enabled in an earlier commit but the mbed 5 ethernet initialisation was missing
2016-09-09 14:21:55 +02:00
Sam Grove 72b0d46e01 Merge pull request #2545 from marcuschangarm/flash_blob
Added define guards for SEQUENTIAL_FLASH_JOURNAL_MAX_LOGGED_BLOBS so …
2016-09-09 01:49:39 +02:00
Sam Grove a6b27319ec Merge pull request #2496 from geky/callback-cv
Add cv-qualifiers to Callback and deprecate combinatorial explody functions
2016-09-09 01:45:25 +02:00
Vincent Coubard caa4c4f2a3 Use a SingletonPtr for the Timeout object in utest_shim.
Makes sure to initialize it, otherwize, it might be initialized in
interrupt context.
2016-09-06 10:14:26 +01:00
Simon Hughes b2f561a917 Restoring swap code to cfstore_test_delete_all() after being previously removed to work around CFSTORE issue 17/23 (realloc()). 2016-09-05 14:16:40 +01:00
Simon Hughes d9ad7bbb99 This commit contains CFSTORE fixes for the following related issues:
- issue 17: Heap corruption.
- issue 23: Handles invalidated when realloc called.
- issue 24: cfstore_find returns error when "previous" parameter is NULL.
- issue 25: Memory leak when out of memory.

With respect to issues 17 and 23:
- A code defect existed for correctly updating cfstore_file_t data structures
  under the following conditions:
  -- the KV memory area contained some KV's.
  -- cfstore calls realloc() to increase the size of the KV area in
     memory because:
	  * A new KV was being added to the KV area, or
	  * the size of a pre-existing KV was being increased.
  -- The returned address from realloc() has changed from before the
     call (i.e. the location in memory of the KV area has changed)
	 e.g. the presence of heap memory objects directly above the KV memory
	 area in the memory address space causes realloc() to move the KV area
	 so the newly increased area can be accommodated at contiguous addresses.
  -- In this scenario, the cfstore_file_t (structures for open files) head pointers
     do not get correctly updated.
  -- The defect was fixed by correctly updating the cfstore_file_t:: head pointer.
  -- A new add_del test case was added to the scenario where a new KV is being added
     to the KV area.
  -- A new create test case was added to the scenario where the size of a
     pre-existing KV is being increased in size.

- A code defect for suppling a NULL handle as the previous argument to the Find() method
  (issue 24).
	-- Supply a null handle is valid, but it was being used to check for a valid hkey,
	   which was incorrect.
	-- A new test case was added to check the case of supplying a NULL previous argument
	   works correctly.

- A code defect for a memory leak under the following conditions (issue 25):
  -- When realloc() fails to perform a requested change to the size of the KV area, the
     error handling sometimes incorrectly sets cfstore_context_t::area_0_head to NULL.
	 Cfstore returns a suitable error to the client. If memory had previously been held
	 at area_0_head, realloc(area_0_head, size) returning NULL means the memory
	 at area_0_head is still retained.
  -- On receiving the error code, the client cleans up including a call to Uninitialize().
     This should free the retained but as area_0_head == NULL this is not possible. Hence
	 a memory leak occurred.
  -- This was fixed by not setting area_0_head = NULL on the realloc() failure.
  -- A create test case was modified to detect the leaking of memory in this way.
2016-09-05 12:45:43 +01:00
Russ Butler 126c8be053 Remove IPv6 link time dependency on an RF phy
Create a Nanostack rf phy class to wrap various rf physical interfaces.
Allow this phy to be set at runtime rather than compile time.
2016-08-31 15:24:51 -05:00
svastm b56201c8c4 Fix TCPServer constructor
- Avoid a call to the protected method `get_stack()` which cause a build fail.
 - Remove the constructor definition `TCPServer(NetworkStack *stack)`
   because it has no implementation.
2016-08-31 17:35:10 +02:00
Vincent Coubard cb4a7fa85e Use greentea_serial SingletonPtr. 2016-08-31 16:24:12 +01:00
Vincent Coubard 85bce1467f Improve compatibility between base_control_t and control_t.
* provide missing member functions from control_t in base_control_t
* construction of control_t from reference of base_control_t instead of
  value.
* overload operator+ for all permutations between control_t and
  base_control_t.
2016-08-30 13:29:17 +01:00
Vincent Coubard df3e3b251d Fix scope of the serial variable. 2016-08-30 13:29:16 +01:00
Vincent Coubard daa135a1b3 Move defaults and handlers variable into a static function.
This change allow a lot of code from utest to be removed from the final
binary if not used.
2016-08-30 13:29:14 +01:00
Vincent Coubard eed52a05d5 Replace default_handlers value by a reference. 2016-08-30 13:29:12 +01:00
Vincent Coubard 4bf28d474c Convert case_control to a POD. 2016-08-30 13:29:10 +01:00
Vincent Coubard 7a6edda44c Enhance compatibility between control_t and base_control_t:
* Add conversion operator in control_t to convert instances to base_control_t
2016-08-30 13:29:09 +01:00
Vincent Coubard 6d319c521f Construct control_t from a POD struct.
Replace const control_t instances by this POD.

This save memory and prevent inclusion of the constants in the binary if
they are not used.
2016-08-30 13:29:07 +01:00
Vincent Coubard 8fa239cdfd Move constant definitions of non POD object into cpp file.
It save space and fix the ODR violation.
2016-08-30 13:29:05 +01:00
Vincent Coubard 2bc5c3d069 Move global Timeout object from utest_shim in static function.
The change of scope allow the linker to remove the variable if not used.
2016-08-30 13:29:03 +01:00
Vincent Coubard acc3115e27 Move utest global serial object into a function.
That way it is not a global object anymore and is not attached to the
.init section and init array. If the function which contain the object is
not called then the serial object will not be present in the final binary.
2016-08-30 13:23:08 +01:00
Christopher Haster c3130e51e4 lwip - Added check for previously-bound socket
Avoids what turns into an infinite loop in lwip's internals
2016-08-29 18:47:30 -05:00
Christopher Haster db2738f850 nsapi - Corrected handling of errors in TCPServer accept
- Corrected handling, before errors would forcibly restart the
  accept loop without checks for timeouts
- Rearranged accept logic to match the logic of
  recv/send/recvfrom/sendto
2016-08-29 17:38:06 -05:00
Christopher Haster 506aa3d4ea lwip - Fixed handling of max sockets in socket_accept 2016-08-29 17:37:13 -05:00
Russ Butler dd07c522c9 Fix double free in NanostackInterface
When freeing all memory in the rx buffer chain set the head pointer to
NULL. This prevents the head rx buffer from getting freed twice.
2016-08-29 17:14:16 -05:00
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 98ec80c484 lwip - Added checks for invalid state of network
- Check if disconnected in socket open
- Check if connected in interface connect
- Check if disconnected in interface disconnect
2016-08-26 15:35:26 -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
Christopher Haster 45d25ed493 Added support for cv-qualifiers in Callback class
Additionally, the following changes were don to avoid combinatorial
explosion in function overloads as a result of adding cv-qualifiers:
- Added convenience function for inferred type
- Deprecated callback overloads qhere cv-qualifiers are not scalable

Supported overloads:
callback(void (*f)(A...));
callback(const Callback<R(A...)> &);
callback(T *t,                void (*f)(T*, A...));
callback(const T *t,          void (*f)(const T*, A...));
callback(volatile T *t,       void (*f)(volatile T*, A...));
callback(const volatile T *t, void (*f)(const volatile T*, A...));
callback(T *t,                void (T::*f)(A...));
callback(const T *t,          void (T::*f)(A...) const);
callback(volatile T *t,       void (T::*f)(A...) volatile);
callback(const volatile T *t, void (T::*f)(A...) const volatile);
2016-08-26 09:40:22 -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
Marcus Chang 076515c15f Added define guards for SEQUENTIAL_FLASH_JOURNAL_MAX_LOGGED_BLOBS so that the value can be passed as an argument during compile time. 2016-08-25 14:16:59 +01: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
Sam Grove 4fd188ff75 Merge pull request #2346 from pan-/shortned_nrf51_sdk_paths
Shortned nrf51 sdk paths
2016-08-02 20:50:13 -05:00
Sam Grove 8c3c98b644 Merge pull request #2332 from bridadan/add-net-test
Patch of #2318
2016-08-02 18:57:12 -05:00
Vincent Coubard 5323c29080 Remove unneded folders in NRF51 SDK.
Move content from sources/nordic_sdk/components to sources.
2016-08-02 22:32:44 +01:00
Vincent Coubard 5638d338d0 Rename nrf51-sdk into sdk. 2016-08-02 22:29:02 +01:00
Vincent Coubard b2c809ea56 Remove unneeded NRF51 hex files, can be confusing for exporter. 2016-08-02 21:30:39 +01:00
Christopher Haster 06826a935d Fixed issue with reconnecting the ethernet interface
Previously the EthernetInterface class was unable to be connected
after being brought down. The core issue is that lwip was not designed
to be completely brought down due once initialized.

To work around this, the ethernet interface only initializes once and
leaves itself up after a disconnect call. The DHCP lease is still
released/acquired on disconnect/connect.
2016-08-02 13:33:13 -05:00
Brian Daniels c355fb16d4 Restricting IPV4 echo tests to chars 0-9.
Having the echo tests generate any random character
caused issues serializing the test output into an
xml file. This change limits the characters generated
by the device to '0' - '9'.
2016-08-01 16:48:21 -05:00
Hasnain Virk 8f7e57919b Updating Nanostack Binary for ARMCC
* No code change.
* Binary built and fetched from Jenkins.
* Tested with mbed-os-example-mesh-minimal
2016-08-01 21:47:53 +03:00
Sam Grove 5f43f18ba3 adding tests for net/IPV4 2016-07-29 16:10:36 -05:00
Vincent Coubard 17254e80d6 Fix clock selection used by the softdevice on NRF5 based targets. 2016-07-28 22:47:59 +01:00
cyliangtw 5710178afb Add NUC472 eth and entropy 2016-07-28 10:00:49 +08:00
Yogesh Pande f251c0f128 Fix for https://github.com/ARMmbed/mbed-os-example-client/issues/44
This commit includes
 - Fixed mbed-client Tag mbed-os-5.0-rc2
2016-07-27 22:03:53 +03:00
Sam Grove 90fa585568 Merge pull request #2211 from pan-/nrf52_nrf51_unified_integration
NRF52 target and unification with NRF51
2016-07-27 02:35:43 -05:00
Russ Butler 1799ace8ba Fix intermittent config store tests failures
Make the journal object in cfstore_test_startup static since the call
to FlashJournal_initialize keep a copy of this for future use. This fixes
an intermittent crash start started showing up when optimizations
were set to "-os".
2016-07-26 23:07:26 -05:00
Simon Hughes c2d849133f Adding mbed-os/features/storage to mbed/features/storage/FEATURE_STORAGE (before deleting mbed-os/features/storage). 2016-07-26 23:07:24 -05:00
Sam Grove 5d7317626c Merge pull request #2249 from c1728p9/client_nanostack_and_seperated
Client nanostack and seperated
2016-07-26 14:30:33 -05:00
Russ Butler 9c01bbc199 Update client and nanostack to include mbed.h
Include mbed.h rather than mbed-drivers/mbed.h.
2016-07-26 10:33:43 -05:00
Russ Butler cef844f6bf Break apart client and nanostack dependencies
Move the library files used by both nanostack and client into a common
location.  This allows both client and nanostack to be built stand-alone.

The patch moves the following libraries into a common location:
-mbed-client-c
-mbed-client-randlib
-mbed-trace
-nanostack-hal-mbed-cmsis-rtos
-nanostack-libservice
-sal-stack-nanostack-eventloop

And moves the library 'coap-service' from client into nanostack.
2016-07-26 00:00:20 -05:00
Yogesh Pande effa193386 This commit includes
Replacing with source code replicated from respective repositories including
mbed-client - TAG mbed-os-5.0-rc1
mbed-client-c - TAG mbed-os-5.0-rc1
mbed-client-classic - TAG mbed-os-5.0-rc2
mbed-client-mbed-tls - TAG mbed-os-5.0-rc1
mbed-client-randlib - TAG mbed-os-5.0-rc1
coap-service - TAG mbed-os-5.0-rc1
Adding CONTRIBUTING.md file explaining how to submit patches for any of the components belonging to FEATURE_CLIENT
2016-07-25 21:49:16 -05:00
Seppo Takalo 359dc05f28 Move FEATURE_IPV6 under features/net 2016-07-25 21:49:07 -05:00
Seppo Takalo 475cda0639 Update nanostack-hal-cmsis-rtos. 2016-07-25 21:48:37 -05:00
Seppo Takalo 7f65b914a1 Move FEATURE_IPV6 from mbed-os to here.
Contains same version of libraries as https://github.com/ARMmbed/mbed-os/pull/453

Tagged versions
* mbed-mesh-api mbed-os-5.0-rc1
* mbed-trace mbed-os-5.0-rc1
* nanostack-hal-cmsis-rtos mbed-os-5.0-rc1
* nanostack-interface copied. no remote repository
* nanostack-libservice mbed-os-5.0-rc1
* sal-stack-nanostack mbed-os-5.0-rc1 Binaries generated from v5.0.5
    The M3 build is used for both M3 and M4 devices.
2016-07-25 21:47:54 -05:00
Christopher Haster 8f2ca2bc63 Fixed missing port assignment in DNS constructor for SocketAddress
_stack->gethostbyname looks deceptively like it completely sets the
socket address value, however port is not provided via DNS resolution.
2016-07-25 17:46:15 -05:00
Sam Grove fb7c9f8801 Merge pull request #2235 from sg-/add-mbedtls
Update mbed TLS to version 2.3.0
2016-07-25 13:08:35 -05:00
Sam Grove a4fb649789 Merge pull request #2228 from AlessandroA/update_uvisor
Update uVisor to v0.20.0-alpha
2016-07-23 00:43:08 -05:00
Sam Grove 4794bc87e3 Update mbed TLS to version 2.3.0 2016-07-23 00:13:43 -05:00
Sam Grove db99e726e0 Merge pull request #2231 from geky/nsapi-lwip
Introduce the lwip-interface into the core mbed repo
2016-07-22 23:19:37 -05:00
Russ Butler ebf42f02e9 Add includes so lwip compiles 2016-07-22 18:35:37 -05:00
Christopher Haster ec993319a9 [nsapi] Fixed iar compilation issue with value initializer
Expression needed to init to zero a simple POD struct

Before (valid in C99/C++11/G++): 	(nsapi_addr_t){}
After (valid in C++03, invalid in C):	nsapi_addr_t()
2016-07-22 15:42:57 -05:00
Alessandro Angelino bb12868ce5 uVisor: Update to v0.20.0-alpha
This release brings the support of Keil RTX with uVisor on mbed OS, plus
several other improvements.

**New features**

* Integration in Keil RTX in mbed OS.
* Secure dynamic allocation APIs.
* Box initialization routines.
* Register gateway.
* vMPU recovery generalized for both Kinetis and ARMv7-M MPUs.
* APIs for per-box interrupts disablement and re-enablement.

**Work in progress**

* Remote Procedure Call (RPC). New API signatures have been published.
* The alpha-level implementation will follow soon.

**Deprecated features**

* Secure gateway. Cross-box communication will be implemented with RPC
* gateways.

**Bugfixes**

* Several ARMv7-M-specific bug fixes.
* Fixed a bug that sent the device into lock-up after a hard fault.
* Fixed checks on revision numbers for Cortex-M devices.

**Miscellaneous improvements**

* Optimized memory protection for ARMv7-M devices with shared SRAM.
* Build artifacts are grouped into the target/build
* option/configuration-specific folder.
* Documents have been grouped into API vs. core documents.
* Improved style and consistency.
2016-07-22 15:54:47 +00:00
Alessandro Angelino 99ea8a3649 uVisor: Add RPC API header files 2016-07-22 15:54:19 +00:00
Alessandro Angelino a5d2127e0c uVisor importer: Update the path of QUICKSTART.md 2016-07-22 15:51:42 +00:00
Alessandro Angelino e6effc2540 uVisor importer: Point to the master branch 2016-07-22 15:50:48 +00:00
Christopher Haster 1fcc02318a Add 'features/net/FEATURE_IPV4/lwip-interface/' from commit '63e816f0858cf3de3678aea4deec941add516790'
git-subtree-dir: features/net/FEATURE_IPV4/lwip-interface
git-subtree-mainline: 83f24fb0bd
git-subtree-split: 63e816f085
2016-07-22 02:04:56 -05:00
Christopher Haster 03c5855496 Add 'features/net/network-socket/' from commit 'e09565474188b905cada21166118a82e66359217'
git-subtree-dir: features/net/network-socket
git-subtree-mainline: db60d6a7f7
git-subtree-split: e095654741
2016-07-21 18:30:42 -05:00
Vincent Coubard e0a5ca1d67 Bring new ble implementation from mbed-os/workshop-nordic.
Commit ID: e3c7c2dd3ea4f00e27667e79155413033cd80060
2016-07-21 15:03:23 +01:00
Vincent Coubard 2259e0d539 Move ARMmbed/feature/FEATURE_BLE into mbedmicro/mbed.
In the process, the path has been shortened and the unecessary ble
directory between FEATURE_BLE and the actual implementation has been
removed.

commit id of ARMmbed : 17728a824c7273e16b6b74fae871e2997c88ecd1
2016-07-20 22:10:36 +01:00
Brian Daniels a9eb39dee4 Adding test frameworks and test sources
This commit adds the following test frameworks:

- `greentea-client` (https://github.com/ARMmbed/greentea-client)
  - This framework provides a key-value api for communicating with the
    greentea test tool (https://github.com/ARMmbed/greentea)
- `unity` (https://github.com/ARMmbed/unity)
  - This framework provides test assert macros that can be used when
    writing test cases
- `utest` (https://github.com/ARMmbed/utest)
  - This framework allows you to execute a series of test cases with
    reporting that works with the greentea test tool
    (https://github.com/ARMmbed/greentea)

The following changes were made when bringing these frameworks into the
tree:

- References to `mbed_drivers/mbed.h` within utest's tests were migrated
  to `mbed.h`
- The yotta file `module.json` was removed from `greentea-client` and
  `unity`
  - `coverage.json` was also removed from `greentea-client`
- `.gitignore` and `.gitattributes` were removed from `greentea-client`
- Apache 2.0 license files were removed from `greentea-client`

This also brings in a number of tests that have been newly written or ported from various sources:

- `TESTS/integration` - Very basic tests, used to check if testing frameworks are working correctly
- `TESTS/mbed_drivers` (Thanks @PrzemekWirkus!) - TESTS ported from mbed OS 3.0 (https://github.com/ARMmbed/mbed-drivers)
- `TESTS/mbedmicro-mbed` (Thanks @PrzemekWirkus!) - Tests that weren't covered by `TESTS/mbed_drivers` that currently live in `libraries/tests/mbed`
- `TESTS/mbedmicro-rtos-mbed` (Thanks @PrzemekWirkus!) - Ported tests that currently live in `libraries/tests/rtos/mbed`
- `TESTS/storage_abstraction` (Thanks @rgrover!) - Tests for the storage_abstraction hal
2016-07-20 12:41:26 -05:00
Alessandro Angelino 5b488f345f uVisor: Add a quick-start guide to use uVisor in mbed OS 2016-07-06 14:54:43 +01:00
Alessandro Angelino 238fc2787a uVisor importer script: Add command to copy the docs 2016-07-06 14:54:42 +01:00
Alessandro Angelino c4b08cf830 uVisor: Update the release libraries
Changelog:

* No feature changed.
* The libraries have been built using the ARMmbed/uvisor@dev branch
2016-07-06 14:54:42 +01:00
Alessandro Angelino acb6e08e28 uVisor importer script: Point to the dev branch 2016-07-06 14:54:31 +01:00
Alessandro Angelino 0392b7dea8 uVisor: Fix K64F vMPU bug in release mode
This commit updates the uVisor libraries following the following fix:

* ARMmbed/uvisor@767e794 "K64F vMPU: Use the MPU fault address"

The bug made some release builds of the uVisor example halt because of
an imprecise bus fault not correctly handled by uVisor internally.

The change only affects targets where `FEATURE_UVISOR` and
`UVISOR_SUPPORTED` are defined.
2016-07-01 13:16:38 +01:00
Milosch Meriac 7e006c769e Update uVisor page allocator and box initialization 2016-06-28 16:49:02 +00:00
Niklas Hauser 2a7f02033d Copy page_allocator_config.h file in importer 2016-06-28 16:49:00 +00:00
Milosch Meriac 3fdb44c586 Re-import uVisor library 2016-06-16 17:46:24 +00:00
Alessandro Angelino 88382007aa Add configuration file for when FEATURE_UVISOR is set
The configuration file at the moment only contains the CMSIS NVIC
virtualization macros. When FEATURE_UVISOR is set, we turn on CMSIS NVIC
virtualization automatically.

This removes the need for users to specify the macros themselves.

If UVISOR_SUPPORTED is set as well, the NVIC macros are turned into vIRQ
ones, otherwise they stay NVIC as usual, thanks to the fallback
implementation provided by `unsupported.h`.
2016-06-16 17:46:23 +00:00
Milosch Meriac 6fcf168bd1 Import box initialization code from uvisor repository 2016-06-16 17:38:53 +00:00
Milosch Meriac 3e56d7d941 Temporarily switch to unstable branch 2016-06-16 17:38:53 +00:00
Milosch Meriac fd6944f6e1 Re-import uVisor library 2016-06-14 14:10:00 +00:00
Milosch Meriac 08ba670c7b Add initial uvisor release library 2016-06-10 17:01:29 +01:00
Alessandro Angelino 47025b81d2 uVisor: Define UVISOR_PRESENT based on target labels
Now there is no need any more to specify the UVISOR_PRESENT symbol from
the mbed command line tools. By using a target that has UVISOR_SUPPORTED
has a label, the uVisor-internal UVISOR_PRESENT symbol will be set
automatically.
2016-06-10 16:56:17 +01:00
Jaeden Amero 55f464da27 Copy memory management code over from uVisor
Add the memory management code from uVisor to a shared location that is
suitable for both supported and unsupported use. To do this, we copy all
the RTX-specific files from the RTX folders in uVisor.

Note that the page allocator code is so identical between uVisor supported
and unsupported mode that we can copy the file as-is from uVisor for use on
unsupported targets. This commit performs that copying, to a file called
page_allocator.c_inc, which is included from unsupported_page_allocator.c
only for targets where uVisor is not present.
2016-06-10 16:56:16 +01:00
Milosch Meriac 10d9c2fa97 Add updated uVisor importer script 2016-06-10 16:56:16 +01:00