Jaakko Heikkilä
b94ad5aa35
export: Remove build directories from excluded paths
...
Directories Debug and Release must not be excluded. Otherwise, Eclipse is
not able to find binaries, which are stored to build directories.
2017-09-13 12:05:27 +03:00
Jaakko Heikkilä
847276455b
export: Add debug configuration to Sw4STM32
2017-09-13 12:05:27 +03:00
Jaakko Heikkilä
9d386b23e4
export: Fix Windows problems with Sw4STM32
...
Quoting linker preprocessor command, if path contains parentheses. Using
relative path to shorten list of included directories. Using Eclipse
variables to get path to preprocessor.
2017-09-13 12:05:27 +03:00
Jaakko Heikkilä
e1d163ba0a
export: Remove preprocessed ld files after build
...
Sometimes Sw4STM32 exporter receives wrong linker script file. Because build
directories cannot be excluded from scanned resources, ld files are removed.
2017-09-13 12:05:27 +03:00
Jaakko Heikkilä
98e578f707
export: Fix after testing Sw4STM32
...
Quotation marks in defines had to be replaced with html codes.
2017-09-13 12:05:27 +03:00
Jaakko Heikkilä
e0cdda6e72
export: Invalid linker script path in Sw4STM32
...
Fixed invalid linker script path in project file.
Using 'defines' instead of 'symbols' in compiler options.
2017-09-13 12:05:27 +03:00
Jaakko Heikkilä
d8d2b404cd
export: Remove dublicate methods in Sw4STM32
...
Removed unused methods and methods with dublicate functionality.
Removed unused imports. Generating list of defines for assembler.
2017-09-13 12:05:27 +03:00
Jaakko Heikkilä
83127db09e
export: Sw4STM32 inherits GNUARMEclipse
...
Sw4STM32 is using methods from GNUARMEclipse class to handle flags.
Flags are also passed to cproject file.
2017-09-13 12:05:27 +03:00
Jaakko Heikkilä
dbf20fca39
export: Change linker script name
...
SW4STM32 linker script name now contains target name.
Print formatting is using new Python style.
2017-09-13 12:05:27 +03:00
Jaakko Heikkilä
b2876c47d1
export: Fix sw4stm32 linker script problem
...
Added makefile.target, and rule for linker script pre-compilation.
2017-09-13 12:05:27 +03:00
Jarno Komula
fbc4a89607
Review changes + including config header from toolchain.get_config_header() instead of hardcoding it to project file.
2017-09-13 12:05:27 +03:00
Jarno Komula
0b90c827bd
Better readability.
2017-09-13 12:05:27 +03:00
Jarno Komula
2d27e2730f
Review corrections.
2017-09-13 12:05:27 +03:00
Jarno Komula
6289596f04
Fixed sw4stm32 exporter
2017-09-13 12:05:27 +03:00
Shrikant Tudavekar
fec2346627
add ARMC6 in supported compiler
2017-09-12 15:31:50 -05:00
adbridge
32bd25e8df
Fix include file for ARMCC 6, should use cmsis_armclang.h
2017-09-12 16:41:11 +01:00
Maciej Bocianski
c1c0f1ea57
Extends test set for Ticker class
2017-09-12 16:04:52 +02:00
Andres Amaya Garcia
f928e7a707
mbedtls: Disable MD5, SHA1, SHA256 HW ACC for STM32F439xI
...
STM32F439xI-family MD5, SHA1 and SHA256 hardware acceleration
occasionally produces incorrect output (#5079 ).
Don't enable MD5, SHA1 and SHA256 HW acceleration on STM32F439xI-family
targets by default until issue #5079 is fixed.
2017-09-12 13:39:04 +01:00
Anna Bridge
5e437fe5ea
Merge pull request #5073 from studavekar/fix-buuld-error-armc6
...
use gcc assembly for arm 6
2017-09-12 11:01:16 +01:00
Viller Hsiao
6c5af87c73
Enable access to kernel tick information in ISR
...
The osKernelGetTickCount() is the only function to get kernel tick information,
however it's not allowed to access in ISR.
It's already enabled in API v2.1.1.
2017-09-12 17:54:35 +08:00
David Walters
7ff57c4671
Changed DAPLink version to interface version.
2017-09-12 10:46:07 +01:00
Kevin Bracey
3b9f9bb564
UARTSerial: Avoid readable() ambiguity
...
UARTSerial inherits both FileHandle::readable() [public] and
SerialBase::readable() [private], so calling readable() on a UARTSerial
object produces an ambiguous member error.
Add using declarations to direct towards the FileHandle versions of
readable and writable.
There's currently no ambiguity for writable, as SerialBase uses the
spelling 'writeable', but add a using directive for that anyway, in case
SerialBase gains 'writable' later.
2017-09-12 11:36:57 +03:00
Shrikant Tudavekar
1cb41e9715
use default macro for armcc
2017-09-12 01:00:45 -05:00
Martin Kojtal
de6d2918b8
Merge pull request #4987 from andresag01/release-mbedtls-2.6.0
...
Update mbed TLS to version 2.6.0
2017-09-12 06:18:46 +01:00
Shrikant Tudavekar
45202df55e
gaurd thumb instruction for amrc6
2017-09-11 20:09:43 -05:00
Jimmy Brisson
4b9856604d
Merge pull request #4875 from deepikabhavnani/cm_23_support
...
Initial support for Cortex M-23/M-33 devices.
2017-09-11 18:37:55 -05:00
Anna Bridge
2955a0adc6
Merge pull request #5063 from 0xc0170/fix_lpticker_test
...
Fixing lp ticker and sleep manager tests
2017-09-11 22:28:52 +01:00
Jimmy Brisson
23aafbfe6c
Optimize space usage on builds
...
by not creating gigantic exception nonsense
2017-09-11 14:45:21 -05:00
Jimmy Brisson
33113ae207
Correct unity math for ARMC6
...
The assumed that isnan and isinf would be macros, but they are functions
in ARMC6.
2017-09-11 13:20:33 -05:00
Jimmy Brisson
8a9d79bcbd
Add ARMC6 to supported matrix
2017-09-11 13:20:33 -05:00
Jimmy Brisson
d56c19f253
Detect test skips with armc6
2017-09-11 13:20:33 -05:00
Jimmy Brisson
41a6197208
Update mbed 2 discriminator
2017-09-11 13:20:33 -05:00
Jimmy Brisson
887d29372b
Check for support in ARMC6
2017-09-11 13:20:33 -05:00
Jimmy Brisson
d72f6dbfe4
Disable MULADDC assembly
...
It's not supported in ARMC6
2017-09-11 13:20:33 -05:00
Jimmy Brisson
d3b33d75a4
Correct NRF SDK11 assembly
2017-09-11 13:20:33 -05:00
Jimmy Brisson
4f3f0cc9cc
Make Realtek link
...
There was some interesting stuff here.
* ARMC6 treats assembly the same as GNU, but has a different startup
function, so we branch the asm there
* Incorrect discriminant, probably copied from other ports
2017-09-11 13:20:33 -05:00
Jimmy Brisson
91afbce18a
Correct Nuvoton compiler detection logic
2017-09-11 13:20:33 -05:00
Jimmy Brisson
75549754bc
Compile source code for Maxim targets
...
They don't link because of differences in the precompiled libraries
2017-09-11 13:20:32 -05:00
Jimmy Brisson
fb53eb65d4
Correct Silabs NVIC selection
...
Again, the culprit was that the discriminant did not include armc6
2017-09-11 13:20:32 -05:00
Jimmy Brisson
0b7a9033b5
Enable many STM devices with ARMC6
...
Yet another incorrect arm vs gcc discriminant
2017-09-11 13:20:32 -05:00
Jimmy Brisson
b22a174c39
Correct semihosting check for ARMC6
2017-09-11 13:20:32 -05:00
Jimmy Brisson
4da4c1f5ce
Correct compiler switching in Nordic code
2017-09-11 13:20:32 -05:00
Jimmy Brisson
cd4fd86f1f
Correct Freescale + NXP compiler detection macros
...
Also removes duplication of common files
2017-09-11 13:20:32 -05:00
Jimmy Brisson
f4b7d8ba77
Avoid forcing preprocessing
...
We avoid forcing preprocessing by not replacing the first line when it's
not a shebang (#!). Should work pretty darn well.
2017-09-11 13:20:32 -05:00
Jimmy Brisson
06b00683c3
Genericify arm compiler exporter to versions 5 + 6
2017-09-11 13:20:32 -05:00
Jimmy Brisson
e9d3166a5e
Expose present get_compile_options API in Toolcahins
2017-09-11 13:20:32 -05:00
Jimmy Brisson
15a9a0382b
Enable Compiling with ARMC6 across all targets
...
remove duplicate sys.cpp
2017-09-11 13:20:32 -05:00
Jimmy Brisson
922bf1b619
Update mbed OS to handle ARMC6 requirements
2017-09-11 13:20:32 -05:00
Jimmy Brisson
1fef5553b4
Parse deps the same for GCC_ARM and ARMC6
2017-09-11 13:17:54 -05:00
Jimmy Brisson
98b4768434
Initial toolchain class for ARMC6
...
While ARMC6 does use the same linker (armlink) as ARM Compiler 5, it
is not compatible.
The reason for this incompatibility are twofold:
* armlink may invoke the C preprocessor by adding a shebang
(`#!`) to the top of their input files.
* ARMC6 and ARMC5 differ in how you invoke the preprocessor:
* ARMC5: `#! armcc -E`
* ARMC6: `#! armclang -E`
This forces the tools to rewrite the shebang if it's wrong.
This does not yet handle dependencies properly
2017-09-11 13:17:54 -05:00