Commit Graph

7623 Commits (mbed-os-5.1)

Author SHA1 Message Date
Jimmy Brisson d4bfca7934 Fix renaming issues in non-CI ides
Affects these ides:
 - Atmel Studio
 - Code Red (I don't think we support this)
 - Coide
 - DS-5
 - E2Studio
 - EMblocks
 - KDS
 - Simplicity v3
 - SW 4 STM32

also corrects flags usage in EMBlocks
2016-09-15 17:56:39 +01:00
Jimmy Brisson 47b76a1009 Reinstated the zip exporter 2016-09-15 17:56:38 +01:00
Jimmy Brisson e88346bc67 Made exporting safer
it will no longer barf when:
 - a linker scirpt is None
 - an attribute that is a set
it will also export the correct library include paths
2016-09-15 17:56:36 +01:00
Jimmy Brisson 5acec67224 Allow exporting to in-memory zip file 2016-09-15 17:56:35 +01:00
Sarah Marsh 924a0b72ea Requirements update 2016-09-15 17:56:34 +01:00
Sarah Marsh 2affd94a73 progen exporter template 2016-09-15 17:56:32 +01:00
Sarah Marsh 37a0edd084 Accessing progen exporters directly 2016-09-15 17:56:31 +01:00
Jimmy Brisson 727ac9fb6d Update copyright 2016-09-15 17:56:30 +01:00
Sarah Marsh 50c8750a4a Refactor export subsystem
Makes several broad changes:
 - removes dead code that dealt with the online build system
 - replaces export function with a much simpler one that:
   - does not copy any sources
   - the zip file hits the disk
   - the mbed_config.h hits the disk
   - the project files hit the disk
   - nothing else hits the disk
 - exporters use Resource object scanned with a toolchain
 - progen exporters don't optionally build a project instead they have a
   build function that may be called afterwards
 - much of the code passes pylint (have a score of 9 or above):
   - project.py
   - project_api.py
   - export/__init__.py
   - export/exporters.py
   - test/export/build_test.py
2016-09-15 17:56:28 +01:00
Brian Daniels 80918a5d89 Fixing issue in timing host test and wait_us case
The timing host tests reported success even if the total drift was
negative. This adds a check for this now.

The wait_us test now does not use a timer and just waits for 100000 us
between prints. This adds inherent drift, but it should still be well
under the limit.
2016-09-15 17:56:27 +01:00
Brian Daniels c7c09dfec3 Consolidating timer reads to reduce drift 2016-09-15 17:56:26 +01:00
Brian Daniels 61bd50bf83 Reducing number of timeouts to decrease drift 2016-09-15 17:56:24 +01:00
Brian Daniels 60bf70fcb1 Modifying timing tests to use timing drift host test 2016-09-15 17:56:23 +01:00
Brian Daniels 88785a5e13 Adding timing drift host test 2016-09-15 17:56:22 +01:00
Brian Daniels 7027d4eadf Removing threaded_blink test (duplicate of basic rtos test) 2016-09-15 17:56:20 +01:00
Jimmy Brisson 665c48a7b1 Prevent traceback 2016-09-15 17:56:19 +01:00
Jimmy Brisson e9032d8003 Unify look of argument errors 2016-09-15 17:56:18 +01:00
Martin Kojtal 1f155569dc alloc wrappers - fix calloc wrapping for uvisor
Done already in 7c0cc50, same applied to alloc wrappers that was moved
from retarget.
2016-09-15 17:56:17 +01:00
Martin Kojtal b3546c9c4f retarget - fix uvisor header inclusion 2016-09-15 17:56:15 +01:00
Bogdan Marinescu 794ab26496 Added thread safety to the tracing mechanism
Without this in place, traces might be lost if a another thread
interrupts a memory function at the right time.
2016-09-15 17:56:14 +01:00
Bogdan Marinescu 4c5a90226c Added tests for the memory tracer 2016-09-15 17:56:13 +01:00
Bogdan Marinescu 40438227ee Runtime dynamic memory tracing
This commit adds a dynamic memory tracer that calls a callback whenever
one of the basic memory allocation functions (malloc, realloc, calloc,
free) is called. The operation of the tracer is guarded by the
'MBED_MEM_TRACING_ENABLED` macro.

Infinite recursion during tracing is guarded by using atomic
increment/decrement primitives on the `trace_level` variable.

Thanks to @c1728p9 and @heky for their help and  suggestions.
2016-09-15 17:56:11 +01:00
Russ Butler d3d974b672 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-09-15 17:27:12 +01:00
Russ Butler c3e30a9bd8 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-09-15 17:27:11 +01:00
Russ Butler 269778c29e 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-09-15 17:27:10 +01:00
Sam Grove bdab10dc0f Merge pull request #2590 from ARMmbed/release
Release mbed-os-5.1.3 and mbed lib v125
2016-09-01 15:00:27 +03:00
0xc0170 5e38a9c058 mbed lib rev - 125 2016-08-31 08:37:40 +03:00
0xc0170 cae74fb3bf Targets - KL27Z enable IAR 2016-08-31 08:37:36 +03:00
Yogesh Pande 8757ffec10 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-31 08:37:33 +03:00
Sarah Marsh b72f967956 Check executable 2016-08-31 08:37:29 +03:00
Christopher Haster f2df3ee809 Restructured nsapi_dns.h to have clear separation between C/C++
- Separated overloads based on language
- Removed NSAPI_C_LINKAGE definition
2016-08-31 08:37:26 +03:00
Christopher Haster 83286c3e78 Adopted netconn_gethostbyname in the lwip interface
Provides proper integration with DHCP through lwip
2016-08-31 08:37:22 +03:00
Christopher Haster 6c2a82b96a Add support for implementation-provided DNS servers
Support intended for DNS servers provided by DHCP requests.
2016-08-31 08:37:19 +03:00
Christopher Haster 2f279dcf39 Removed unnecessary dns_query functions 2016-08-31 08:37:16 +03:00
Christopher Haster 3b1e1368f3 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-31 08:37:13 +03:00
Christopher Haster ab9ea1fad0 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-31 08:37:09 +03:00
Christopher Haster cc99870f27 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-31 08:37:06 +03:00
Alessandro Angelino 776e81b81a K64F: Revert to hardcoded stack pointer in RTX 2016-08-31 08:37:02 +03:00
Milosch Meriac bd770b569d Update uVisor page allocator 2016-08-31 08:36:58 +03:00
Niklas Hauser b363c14fe3 Move page heap after uVisor private data. 2016-08-31 08:36:55 +03:00
svastm c11c817dc1 Add tests for asynchronous serial 2016-08-31 08:36:51 +03:00
svastm 1f80a127e3 Enable asynchronous serial 2016-08-31 08:36:48 +03:00
svastm 214cbaa0f9 Add asynchronous serial 2016-08-31 08:36:44 +03:00
Radhika 8310d415af Formatting code according to ARM guidelines. Ran pylint and astyle. Rebased latest ARMmbed-os code. 2016-08-31 08:36:41 +03:00
Radhika 5e81f0fd73 rebasing with mbed-os latest 2016-08-31 08:36:37 +03:00
Yoshihiro TSUBOI 2339beb4d2 a patch for TY51822r3 to use a change of PR #2535 2016-08-31 08:36:34 +03:00
jeromecoutant bf66d1b2e3 Rebase to replace "default_build" into "default_lib" 2016-08-31 08:36:31 +03:00
jeromecoutant 57eda101d1 Use GCC small build for 64K flash STM32 2016-08-31 08:36:27 +03:00
Radhika e417e20436 heap and stack test 2016-08-31 08:36:24 +03:00
Radhika 10704ccf46 Adding NCS36510 support in mbed-os5.1 2016-08-31 08:36:20 +03:00