TomoYamanaka
5c036cb1ba
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-22 10:47:23 +09:00
Cruz Monrreal
dabb112ebd
Merge pull request #7117 from OpenNuvoton/nuvoton_fix_armc6_memtrace2
...
Fix compile error with MBED_MEM_TRACING_ENABLED and ARMC6
2018-06-14 10:14:46 -05:00
Cruz Monrreal
38f9519ccc
Merge pull request #6949 from OpenNuvoton/nuvoton_m23_bootloader
...
Support mbed_start_application for Cortex-M23
2018-06-07 10:10:46 -05:00
Martin Kojtal
4f90f4c735
error: fix undeclared memcpy
...
Some targets do not get string header file in, results in the warning:
implicit declaration of function 'memcpy'
2018-06-06 09:00:27 +01:00
ccli8
0597998d91
Fix compile error with MBED_MEM_TRACING_ENABLED and ARMC6
2018-06-05 17:34:28 +08:00
Cruz Monrreal
50cd664628
Merge pull request #7050 from SenRamakri/sen_ErrorHandlingFilenameFix
...
Fix for filename capture not working
2018-06-04 10:43:56 -05:00
Senthil Ramakrishnan
576bd61d96
Do not capture filename for release builds
2018-05-31 11:30:33 -05:00
Senthil Ramakrishnan
68e59a11b9
Fix for error report not printing when calling error API
2018-05-31 11:27:20 -05:00
Senthil Ramakrishnan
07a6ab0864
Fix for filename capture not working
2018-05-31 10:39:58 -05:00
deepikabhavnani
d764a7c627
OS version is not available in code, need a fix for this in next patch release
2018-05-30 08:57:47 -05:00
ccli8
23dcd82fab
Remove superfluous MOVT in mbed_start_application/start_new_application
2018-05-30 09:39:07 +08:00
ccli8
3c14cb6332
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-05-28 11:43:27 +08: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
ccli8
646f61400a
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-05-21 17:39:09 +08:00
ccli8
b3f17a9e01
Support mbed_start_application for Cortex-M23
2018-05-18 17:33:05 +08: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
deepikabhavnani
f43b16ffd9
Cleaup and review comments addressed
...
1. Removed prefix thread_ from all elements of mbed_stats_thread_t
2. #if conditions aligned to rest of the file
2018-05-11 10:05:35 -05:00
deepikabhavnani
1dad73949c
Thread statistics addition.
...
API to get all system threads information and states.
2018-05-11 10:05:32 -05:00
Cruz Monrreal
ab7a856657
Merge pull request #6784 from deepikabhavnani/mbed_stats_fix
...
Add common define MBED_ALL_STATS_ENABLED to enable all statistics
2018-05-10 23:25:23 -05:00
Cruz Monrreal
a2370d57fa
Merge pull request #6809 from deepikabhavnani/add_assert
...
Mbed Stats: Assert if NULL pointer passed as arg
2018-05-09 10:50:10 -05:00
Cruz Monrreal
68ad00ffb8
Merge pull request #6645 from woodsking2/master
...
mbed_wait_api: add comments to warn the func will lock deep sleep
2018-05-08 10:54:48 -05:00
Cruz Monrreal
39fd120064
Merge pull request #6797 from OpenNuvoton/nuvoton_fix_noserial
...
Fix compile error with DirectSerial in serial-less build
2018-05-07 10:27:27 -05:00
deepikabhavnani
0f0a4c0a50
Check for NULL pointer before access
2018-05-03 11:23:12 -05:00
Kevin Bracey
cf91b1c6d7
Add POSIX fcntl to control blocking
...
Add the POSIX fcntl call, but only implementing F_SETFL and F_GETFL
for O_NONBLOCK, so users can control the blocking flag of streams
with only the integer file descriptor.
Necessary to portably control the blockingness of the console:
int flags = fcntl(STDOUT_FILENO, F_GETFL);
fcntl(STDOUT_FILENO, F_SETFL, flags | O_NONBLOCK);
2018-05-03 15:40:26 +03:00
Kevin Bracey
a8ab233a1a
retarget: distinguish FileHandle and descriptor
...
Avoid using `fh` for the integer descriptor numbers, reserving
that for the `FileHandle` objects - use `fildes` or `fd`,
matching POSIX.
2018-05-03 15:40:26 +03:00
Kevin Bracey
59f49e2b96
Add `is_blocking()` method to FileHandle
...
There was no way to check current blocking state, so no way to modify
and restore status.
Also have default FileHandle::set_blocking() used by real files return a
correct error code when asked for non-blocking, and success when asked
for blocking.
These were minor omissions that are required to implement POSIX fcntl
properly.
fixup! Add `is_blocking()` method to FileHandle
2018-05-03 15:38:33 +03:00