Commit Graph

7440 Commits (a05e253df7953d7a35c9af625389fee47879b3ec)

Author SHA1 Message Date
Laurent MEUNIER a1ce300a75 Make device.h a common file 2016-09-15 17:57:02 +01:00
Laurent MEUNIER e8cf363442 clean-up DEVICE features
Device features definition have been moved to targets.json,
so definitions in device.h are not required anymore.
2016-09-15 17:57:01 +01:00
Jimmy Brisson fd73280b47 Allow an empty or mal-formed config to be passed to the config system 2016-09-15 17:56:59 +01:00
Marcus Chang 4b3b8c5e13 Added define guards for SEQUENTIAL_FLASH_JOURNAL_MAX_LOGGED_BLOBS so that the value can be passed as an argument during compile time. 2016-09-15 17:56:58 +01:00
Michel Jaouen 2ff4951043 fix build error 2016-09-15 17:56:57 +01:00
Michel Jaouen 05522c9285 test / export scripts update 2016-09-15 17:56:55 +01:00
Michel Jaouen f577f0b36d Add RTOS support 2016-09-15 17:56:54 +01:00
Michel Jaouen 77794207e8 Add Hal Target 2016-09-15 17:56:53 +01:00
Michel Jaouen 247fcc6969 Add CMSIS target 2016-09-15 17:56:51 +01:00
Jimmy Brisson 676d6a416d Bump Progen version
Required to prevent that pesky -1million something error code from
ruining our CI
2016-09-15 17:56:50 +01:00
Sarah Marsh e3225ab0a2 Removed projectfiles directory. debug-info default option 2016-09-15 17:56:48 +01:00
Jimmy Brisson 5677ad017a Add repo_dirs, repo_files, lib_builds, and lib_refs to zips 2016-09-15 17:56:47 +01:00
Jimmy Brisson 358643cdd6 Fix include paths for fragmented projects; remove deadcode 2016-09-15 17:56:46 +01:00
Jimmy Brisson 8d42764382 Fix some tracebacks, add zip exporter to the CLI 2016-09-15 17:56:44 +01:00
Jimmy Brisson a9b55147e2 Allow dict in addition to the other types of src_paths
The dict allows the user of the exporter api to specify the result directory
of particular groups of scanned dirs. This will be used by the online exporters
to spoof everything being in the same directory when they are not. It may also
be used by tests, if they would like to export something that looks exactly
like a normal project.
2016-09-15 17:56:43 +01:00
Jimmy Brisson c541e1c6a3 Set vpath correctly when exporting to projectfiles directory 2016-09-15 17:56:42 +01:00
Sarah Marsh 4a7984a399 Create projectfiles directory when exporting
Compatible with new c/asm/cpp flag separation.
2016-09-15 17:56:40 +01:00
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