ccli8
f0c4e949c5
Replace __wrap__sbrk with overriding _sbrk
...
With _sbrk being weak, we can override it directly rather than #if to support heap with
two-region model.
2018-07-30 10:47:22 -05:00
Senthil Ramakrishnan
101cade4e3
Improved logic in wait_us to avoid division operation in sub-millisec case
2018-07-30 10:47:19 -05:00
Cruz Monrreal II
627be9bdd6
Update Mbed version block
2018-07-15 22:54:26 -05:00
Deepika
62990b487d
Update stats to fetch Mbed OS version info
2018-07-15 22:54:26 -05:00
Deepika
9c58d99bd7
Separate version header file to get version updates in Mbed OS
2018-07-15 22:54:14 -05:00
Senthil Ramakrishnan
3eaca32964
Remove error reporting for release builds
2018-07-15 22:53:45 -05:00
Senthil Ramakrishnan
c5a2f3c993
Don't print error reports in release builds
2018-07-15 22:53:45 -05:00
Senthil Ramakrishnan
3a01d3f469
Fix wrong config binding
2018-07-15 22:53:31 -05:00
TomoYamanaka
83cd02e501
Improve the process for Cortex-A9 in mbed_application
...
I added the powerdown func by GIC in mbed_application because Cortex-A9 use GIC instead of NVIC.
This process prevent unexpected interrupt when updating software by using bootloader.
2018-07-15 22:53:30 -05:00
Martin Kojtal
e2ee137cb7
platform: astyle update
2018-07-15 22:53:30 -05:00
Senthil Ramakrishnan
6b5c796ce2
Fix error history related comments
2018-06-29 17:11:50 +01:00
Senthil Ramakrishnan
06b1ae5129
Limit error filename capture to 64 chars, wrapping tests with right configs and astyle fixes.
2018-06-29 17:10:17 +01:00
Senthil Ramakrishnan
f3406d24fc
Updates to configuration flags used in error handling implementation. The new configuration make Error history tracking switched off by default and enabled by using the config flag MBED_CONF_PLATFORM_ERROR_HIST_ENABLED. Config flag MBED_CONF_PLATFORM_ERROR_ALL_THREADS_INFO enables printing info of all threads. This will be turned off by default.
2018-06-29 17:10:17 +01:00
TomoYamanaka
10e9819c33
Add the process for Cortex-A in mbed_applicaion
...
I added the process for Cortex-A in mbed_application.c because this process was for only Cortex-M.
Also I enabled the macro of MBED_APPLICATION_SUPPORT for Cortex-A.
2018-06-29 17:10:17 +01:00
ccli8
62604bb35c
Fix compile error with MBED_MEM_TRACING_ENABLED and ARMC6
2018-06-15 13:30:56 +01:00
ccli8
156e8a012a
Remove superfluous MOVT in mbed_start_application/start_new_application
2018-06-15 13:30:56 +01:00
ccli8
a77e4072b2
Fix mbed_start_application on Cortex-M23
...
1. M23 doesn't support ICTR and supports up to 240 external interrupts.
2. Fix reset of SHPR
3. Fix inline assembly compile error with ARMC6
2018-06-15 13:30:56 +01:00
ccli8
4f9de80311
Fix start_new_application compile error on Cortex-M23
...
With "mov r2, #0", compile OK with GCC_ARM, but failed with ARMC6.
With "ldr r2, =0", compile OK with ARMC6, but failed with GCC_ARM.
Finally, with "movw r2, #0"/"movt r2, #0", compile OK with both ARMC6 and GCC_ARM.
2018-06-15 13:30:56 +01:00
ccli8
88259ac42f
Support mbed_start_application for Cortex-M23
2018-06-15 13:30:56 +01:00
Martin Kojtal
9ed564ef07
error: fix undeclared memcpy
...
Some targets do not get string header file in, results in the warning:
implicit declaration of function 'memcpy'
2018-06-15 13:30:56 +01:00
Senthil Ramakrishnan
01f7a3377e
Do not capture filename for release builds
2018-06-05 15:05:18 +01:00
Senthil Ramakrishnan
19f2a73172
Fix for error report not printing when calling error API
2018-06-05 15:05:18 +01:00
Senthil Ramakrishnan
e2fe4fa586
Fix for filename capture not working
2018-06-05 15:05:18 +01:00
deepikabhavnani
39a08f7e20
OS version is not available in code, need a fix for this in next patch release
2018-06-05 15:05:18 +01:00
Bartek Szatkowski
efd307fa79
Rename new occurrences of LOWPOWERTIMER to LPTICKER
2018-05-25 12:33:43 -05:00
Senthil Ramakrishnan
92e0cbfaef
Doxygen fixes
2018-05-23 13:27:57 -05:00
Senthil Ramakrishnan
5ef6728c08
Splitting MBED_ERROR macros to support ones with/without error value argument
2018-05-23 12:21:28 -05:00
Senthil Ramakrishnan
693a6c40bb
Refactor error reporting
2018-05-23 12:21:11 -05:00
Senthil Ramakrishnan
d4fe75731d
Adding mbed prefixes to all macros and functions to avoid namespace conflicts
2018-05-23 12:21:10 -05:00
Senthil Ramakrishnan
147d9cac4e
Test application/cases optimization for some low memory targets, macro changes and test fixes
2018-05-23 12:21:10 -05:00
Senthil Ramakrishnan
f9c25612ae
Fix test failures when trap errors are enabled and other fixes
2018-05-23 12:21:10 -05:00
Senthil Ramakrishnan
cbfc06577b
Fixes to align with naming conventions
2018-05-23 12:21:09 -05:00
Senthil Ramakrishnan
92df68b1ea
Changed variable names for registers to avoid namespace conflicts, build fixes, macros and other fixes
2018-05-23 12:21:09 -05:00
Senthil Ramakrishnan
530e9d323f
Changed variable names for registers to avoid namespace conflicts and rtos disabled build fixes
2018-05-23 12:21:09 -05:00
Senthil Ramakrishnan
2e28dd95e1
Change set_error/set_error_fatal to warning/error, add itm support and other changes
2018-05-23 12:21:08 -05:00
Senthil Ramakrishnan
7c6c718f75
Fixed entity reporting and comments
2018-05-23 12:21:08 -05:00
Senthil Ramakrishnan
839fef0ad1
Added more tests for error log and error reporting, updated doxygen comments
2018-05-23 12:21:07 -05:00
Senthil Ramakrishnan
9041b475c6
Error handling/logging implementation and tests
2018-05-23 12:21:07 -05:00
Martin Kojtal
23d8085174
Merge pull request #6878 from bulislaw/rtc_lp_ticker
...
Add low power timer fallback for platforms without RTC
2018-05-22 14:35:18 +02:00
Martin Kojtal
5d027f4e27
Merge pull request #6857 from deepikabhavnani/cpu_stats
...
CPU Statistics
2018-05-22 14:30:21 +02:00
Martin Kojtal
02af950f62
Merge pull request #6336 from geky/fat-errors
...
fatfs: Update error code mapping
2018-05-22 14:27:01 +02:00
Cruz Monrreal
a301db5d43
Merge pull request #6791 from kjbracey-arm/fcntl
...
Add POSIX fcntl flag support
2018-05-21 17:17:02 -05:00
Christopher Haster
effdc6571b
retarget: Added workaround for conflicting definitions of error_t
...
The errno.h header file defines the type error_t, unfortunately this
is a common type name that may be defined in user code. For at least GCC
we can work around this by telling errno that the error_t is already
defined.
2018-05-17 10:26:33 -05:00
Christopher Haster
78992a4c26
retarget: Added include errno.h
...
Unfortunately, some toolchains don't define the same errno codes that
are used fairly consistently on Linux based platforms, which means they
also don't match the errno codes used in the retarget layer.
If a user includes errno.h after mbed.h, the errno codes can be
redefined incorrectly.
Adding an include of errno.h in mbed.h forces the order to be fixed.
2018-05-17 10:26:33 -05:00
Deepika
029237b683
Addressed review comments
...
1. LP ticker limiation note
2. Use read_us in mbed_uptime function
3. Doxygen recommendations
4. Use us_timestamp_t instead uint64_t
5. Astyle changes
2018-05-15 11:36:08 -05:00
deepikabhavnani
3420ff7f9c
CPU statistics addition
...
API to get CPU stats like sleep/deepsleep time, uptime and idle time.
These can be used by application to know the CPU Usage runtime.
2018-05-15 11:20:52 -05:00
Deepika
1961428c1b
OS version added + CPUID for cortex-M only
...
CPUID base register is available for Cortex-M processors only.
Cortex-A devices have Main ID Register, which can be used in future to
get processor info.
2018-05-15 10:22:13 -05:00
deepikabhavnani
c08b3e3d3d
System Info API addition
...
API added to get the system information like CPU ID, compiler ID and
compiler version.
2018-05-15 10:17:40 -05:00
Bartek Szatkowski
ac9276499f
Add low power timer fallback for platforms without RTC
...
Low power timer will be used as RTC for platforms that don't have HW RTC
capabilities.
2018-05-14 12:07:59 +01:00
deepikabhavnani
97c88188d0
Cleanup
...
1. Enable watermark to get stack space information
2. Restructured code
3. Throw error if MBED_THREAD_STATS_ENABLED is not set
4. Astyle changes
2018-05-11 10:06:44 -05:00