Commit Graph

6327 Commits (6a89eeea3a23e60239c8a32d6272694e2d3cab44)

Author SHA1 Message Date
Vincent Coubard fe28524ee8 Squashed 'bluetooth/ble/' content from commit 2f55eed
git-subtree-dir: bluetooth/ble
git-subtree-split: 2f55eed1fdde06fdabfb66d41ce6cd14e280978f
2016-06-08 22:55:08 +01:00
Kevin Bracey b2aefec6ca Merge pull request #215 from ARMmbed/ns_init
Adjust Nanostack startup
2016-06-08 18:20:47 +01:00
Yogesh Pande 66b7c6e6b6 Updating mbed-trace pointer in mbed-os repo. 2016-06-08 20:07:12 +03:00
Anna Bridge 50f1c178e9 Review comments: Re-implemented utest_printf to use RawSerial.
Re-implemented utest_safe_putc() to use Rawserial.
Minor cosmetic changes.
2016-06-08 18:01:27 +01:00
Bogdan Marinescu 31cea1b827 Merge pull request #235 from ARMmbed/update_mbedmicro_ref
Move the mbedmicro reference to the latest version
2016-06-08 17:28:02 +01:00
Przemek Wirkus 056264b456 Add NIST/NTP client UDP test
Test case run:
```
[1465403072.69][CONN][RXD] {{__sync;a0c12e11-442c-4a60-aecf-448b5877cee3}}
[1465403072.69][CONN][RXD] {{__version;1.1.0}}
[1465403072.69][CONN][RXD] {{__timeout;20}}
[1465403072.69][CONN][RXD] {{__host_test_name;default_auto}}
[1465403072.69][CONN][INF] found SYNC in stream: {{__sync;a0c12e11-442c-4a60-aecf-448b5877cee3}}, queued...
[1465403072.69][CONN][INF] found KV pair in stream: {{__version;1.1.0}}, queued...
[1465403072.69][CONN][INF] found KV pair in stream: {{__timeout;20}}, queued...
[1465403072.69][CONN][INF] found KV pair in stream: {{__host_test_name;default_auto}}, queued...
[1465403072.69][HTST][INF] sync KV found, uuid=a0c12e11-442c-4a60-aecf-448b5877cee3, timestamp=1465403072.693000
[1465403072.69][HTST][INF] DUT greentea-client version: 1.1.0
[1465403072.69][HTST][INF] setting timeout to: 20 sec
[1465403072.69][HTST][INF] host test class: '<class 'mbed_host_tests.host_tests.default_auto.DefaultAuto'>'
[1465403072.69][HTST][INF] host test setup() call...
[1465403072.69][HTST][INF] CALLBACKs updated
[1465403072.69][HTST][INF] host test detected: default_auto
[1465403075.73][CONN][RXD] UDP client IP Address is 10.254.2.206
[1465403075.73][CONN][RXD] UDP: NIST server pool.ntp.org address: 143.210.16.201 on port 123
[1465403075.73][CONN][RXD] UDP: Sent 48 Bytes to NTP server
[1465403075.73][CONN][RXD] UDP: Recved from NTP server 48 Bytes
[1465403076.74][CONN][RXD] UDP: Values returned by NTP server:
[1465403076.74][CONN][RXD]      [00] 0x1C0203EA
[1465403076.74][CONN][RXD]      [01] 0x140
[1465403076.74][CONN][RXD]      [02] 0xB34
[1465403076.74][CONN][RXD]      [03] 0x9E2BC042
[1465403076.74][CONN][RXD]      [04] 0xDB02BE9F
[1465403076.74][CONN][RXD]      [05] 0xBB720306
[1465403076.74][CONN][RXD]      [06] 0x0
[1465403076.74][CONN][RXD]      [07] 0x0
[1465403076.74][CONN][RXD]      [08] 0xDB02C543
[1465403076.74][CONN][RXD]      [09] 0x98E6A7C1
[1465403076.74][CONN][RXD]      [10] 0xDB02C543 NTP timestamp is Wed Jun  8 16:24:35 2016
[1465403076.74][CONN][RXD]      [11] 0x98E8E8EF
[1465403076.74][CONN][RXD] {{end;success}}
```
2016-06-08 17:25:45 +01:00
Martin Kojtal e39199afa2 Merge pull request #248 from ARMmbed/mbed-client
Updating mbed-client and mbed-client-c lib pointers.
2016-06-08 17:17:26 +01:00
Yogesh Pande 385464eff1 Updating mbed-client-classic pointer
This commit includes
 - Using config parameter to set heap size.
2016-06-08 18:58:04 +03:00
Yogesh Pande d5b89c0887 Updating mbed-client and mbed-client-c lib pointers.
Modified config parameter usage in mbed-client.
2016-06-08 18:55:19 +03:00
Simon D Hughes 34f3c5da35 Fix warnings to remove unused variables 2016-06-08 16:28:02 +01:00
Bogdan Marinescu 44b8b05485 Merge pull request #246 from ARMmbed/config_in_export
Added support for configuration data in exporters
2016-06-08 16:23:41 +01:00
Bogdan Marinescu eb9610949e Move the mbedmicro reference to the latest version 2016-06-08 18:17:26 +03:00
Bogdan Marinescu efed396682 Added support for configuration data in exporters
This commit integrates configuration data with exporters, in a similar
way to the integration in build_project or build_library in
tools/build_api.py.

Only a very simple test was done for this PR: define a configuration
parameter in the mbed_app.json of a blinky example, export it to uvision
and check if the corresponding macro made it into the project file. If
there are better tests to be performed, please let me know.
2016-06-08 18:13:10 +03:00
Simon D Hughes 7744b715b7 Integrating configuration-store into mbed-os 2016-06-08 15:45:12 +01:00
Marcelo Salazar ebb3f785ba Adding export in CSV format for the CI 2016-06-08 13:51:05 +01:00
Bogdan Marinescu a16b40a8fa Merge pull request #233 from ARMmbed/uvisor_label
Automatically define uVisor labels
2016-06-08 10:42:43 +01:00
Bogdan Marinescu 785699e1ca Automatically define uVisor labels
If the target doesn't specify that it supports uVisor, a special label
is defined to indicate the lack of uVisor support.
2016-06-08 12:28:34 +03:00
Kevin Bracey e3ab81b375 Merge pull request #228 from ARMmbed/ns_libservice
Update Nanostack libservice
2016-06-08 09:12:41 +01:00
Christopher Haster 3a62aa8aa4 Added NSAPI_KEEPIDLE option to the socket API and LWIPInterface 2016-06-07 20:38:23 -05:00
geky 3c180b3f30 Implement the NSAPI_KEEPINTVL in the LWIPInterface 2016-06-08 20:06:52 +01:00
geky 187958b1f8 Add NSAPI_KEEPINTVL parameter to the socket api 2016-06-08 20:01:51 +01:00
Marcelo Salazar f754b4325a Split Misc module into Misc/Fill 2016-06-08 01:37:25 +01:00
Marcelo Salazar 36f446b673 Simplified interface to memap 2016-06-08 01:34:31 +01:00
Marcelo Salazar aafd19992b Fixed pylint issues 2016-06-08 00:02:26 +01:00
Christopher Haster 1e12b83e56 Fixed uninitialized port in lwip dragged in by KSDK2 2016-06-07 17:06:22 -05:00
Kevin Bracey 3f6b6ced17 Update Nanostack libservice
Pulls in heap optimisations, and ns_trace/mbed_trace unification.
2016-06-07 18:49:56 +01:00
Christopher Haster 973c323b59 Added support for NSAPI_KEEPALIVE in LWIPInterface 2016-06-07 10:52:39 -05:00
Martin Kojtal 9c7ca98ccf Merge pull request #227 from ARMmbed/mbed-client-classic
Updating mbed-client-classic git pointer.
2016-06-07 16:50:51 +01:00
Martin Kojtal 7f95241313 Merge pull request #224 from ARMmbed/ns_sem
Move Nanostack connect semaphore into object
2016-06-07 16:46:48 +01:00
Przemek Wirkus 40a090bc2b Add simple TCP client with simple TCP echo server host test 2016-06-07 16:26:16 +01:00
Yogesh Pande f1aa30faa4 Updating mbed-client-classic git pointer.
This commit includes
 - Updated mbed-client-classic using new event loop initialization API.
2016-06-07 18:19:07 +03:00
Martin Kojtal 2b46b5aedb Merge pull request #225 from ARMmbed/mbed-mesh-api
Updating mbed-mesh-api pointer.
2016-06-07 16:17:45 +01:00
Yogesh Pande ad09990bcf Updating mbed-mesh-api pointer.
This commit includes
 - Changes for managing single event loop instantiation.
2016-06-07 18:03:54 +03:00
Anna Bridge 0ccdfe3ca2 Updates to make utest thread safe and thus run when compiled with both gcc
and armcc.

1. Remove use of printf from all code that may be directly or indirectly
invoked from an interrupt context,

2. For occasions where a printf is required and the code in question may
run both inside and outside an interrupt context, add a new interrupt safe
version of printf, utest_printf(). This function will only pass its
arguments down to printf if interrupts are not disabled.

3. In harness.cpp, is_busy() , fix a bug where the function can return
leaving interrupts disabled.

4. In unity_handler.cpp add a new function, utest_safe_putc(), This is
used to override the default putc() function used by Unity. This version
checks that the current code does not have interrupts disabled prior to
outputting the character to the serial port. This overriding is enabled by
adding unity_config.h to the unity code and redefining UNITY_OUTPUT_CHAR
to utest_safe_putc(). The new config file is included in the build by
adding the define UNITY_INCLUDE_CONFIG_H. The Unity changes are submitted
under a separate PR. This change ensures that any Unity ASSERTS executed from
within interrupt context are safe.
2016-06-07 15:56:26 +01:00
Anna Bridge d4415eeeac Remove all printfs from test cases which may directly or indirectly run
from an interrupt context. Where required add flags to functions and check
the values in the case teardowns. This allows validation that the case
callback was invoked without the need for an ASSERT or printf directly in
the callback.
In cases where a printf is still required in a test case but it is unclear
whether the code may or may not get called from interrupt context, a new
printf alternative, utest_printf() should be used instead. This just
checks whether the code is executing in interrupt context and only passes
its arguments to printf if not.
2016-06-07 15:48:13 +01:00
Kevin Bracey 4eb394e391 Move Nanostack connect semaphore into object
Connect semaphore was being constructed and consuming RAM even if
Nanostack isn't in use. Avoid this by moving it into the class, where it
should be anyway.
2016-06-07 14:30:11 +01:00
Martin Kojtal e64975c94c Merge pull request #219 from ARMmbed/nanostack-hal-cmsis-rtos
Updating nanostack-hal-mbed-cmsis-rtos pointer
2016-06-07 14:14:47 +01:00
Przemek Wirkus 88ee8caadd Add TCP Client Download 2016-06-07 14:03:14 +01:00
Brian Daniels 71fe5e8665 Printing build summary at the end of build, as well as build log for failures 2016-06-07 13:24:25 +01:00
Brian Daniels da4a169752 Fixing issue with non-verbose error message for GCC
There was an issue when compiling with GCC_ARM, the tools would
print the incorrect file where the error was present. This modifies the
regular expression and matching logic used to find the error. This was
tested with the 4.9 q2 release of GCC ARM.
2016-06-07 13:17:59 +01:00
Brian Daniels 68cb86f61f Adding entry to build report, even if no update was needed 2016-06-07 13:17:58 +01:00
Brian Daniels e0c7e5fd89 Compiling tests stops on first failure by default, with option to continue 2016-06-07 13:17:51 +01:00
Martin Kojtal 07c3a108ef Merge pull request #218 from screamerbg/use-memap
Add memory analysis to mbed-os build system
2016-06-07 12:57:59 +01:00
Martin Kojtal 9b707292a4 Merge pull request #211 from bridadan/fix-test-list
Fix test listing
2016-06-07 12:55:03 +01:00
Bogdan Marinescu 9bbc532f4f Merge pull request #186 from screamerbg/library-build-fix
Fix the differences between how projects and libraries are built
2016-06-07 12:35:52 +01:00
Marcelo Salazar f4827b7eea Minor changes to memap documentation 2016-06-07 12:32:10 +01:00
Marcelo Salazar 7d3140b844 Documentation improvements to memap.md
- Removed installation instructions
- Removed py.test instructions (not available atm)
- Pointing at mbed-os tools to raise issues
2016-06-07 12:19:06 +01:00
Bogdan Marinescu d2ac7091ab Merge pull request #220 from ARMmbed/doc_fix
Fixed typo in the doc
2016-06-07 11:49:38 +01:00
Bogdan Marinescu 820d79d84b Fixed typo in the doc 2016-06-07 13:49:11 +03:00
Yogesh Pande 235e04f31b Adding 6k Stack size increase. 2016-06-07 13:28:55 +03:00