Lasse Bang Mikkelsen
b31156a906
Fix Makefile export with Python 3
...
In Python 3, the map() function returns a map object, not a list object as in
Python 2. Ensure a list object is returned from format_flags() by wrapping
map() in list(). This is compatible with both Python 2 and 3.
2018-10-29 18:46:43 +01:00
Cruz Monrreal
c004aa857d
Merge pull request #8303 from theotherjimmy/fix-exclude-paths
...
Tools: Use logical paths in ignored_dirs
2018-10-19 14:06:38 -05:00
maclobdell
fd08cc94f2
Add support for NXP Rapid IoT prototyping kit
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-16 08:52:14 -05:00
Cruz Monrreal II
af6a21ac06
Merge branch 'nb-consistant-paths' of ssh://github.com/theotherjimmy/mbed into theotherjimmy-nb-consistant-paths
2018-10-11 13:18:47 -05:00
Cruz Monrreal
1eaa8a5032
Merge pull request #7937 from theotherjimmy/fix-mcuxpresso-lib-use
...
Export, MCUXpresso: Avoid assigning self.libraries
2018-10-10 08:45:25 -05:00
Cruz Monrreal
c9b9ee8f36
Merge pull request #8169 from bcostm/fix_IAR_exporters
...
STM32: add missing IAR exporters
2018-10-08 10:11:21 -05:00
Martin Kojtal
4820162756
Merge pull request #7916 from yennster/patch-2
...
Add LPC1769 template file for MCUXpresso IDE
2018-10-05 22:21:18 +02:00
Martin Kojtal
f7f6d4d2d8
Merge pull request #7585 from bcostm/dev_NUCLEO_L4R5ZI
...
NUCLEO_L4R5ZI: add new platform
2018-10-05 14:53:11 +02:00
Jimmy Brisson
121130ec20
Avoid assigning self.libraries
2018-10-03 09:36:40 -05:00
Jimmy Brisson
98e0faa551
Remove unused local
2018-10-02 09:56:10 -05:00
Martin Kojtal
5b1c5506a5
Merge pull request #7914 from yennster/patch-1
...
Remove references to "mBed"
2018-10-01 11:44:04 +02:00
Jimmy Brisson
4aef073327
Export, nb: Use same path for cpp as the rest of the tools
...
### Description
The netbeans exporter was being inconsistant with it's invocation of
the C pre-processor on the linker script: the C pre-processor was always
invoked from `$PATH` where as the rest of the tools were invoked as
configured by the tools. This changes the invocation of CPP to match the
rest of the tools: heed the conifguration.
Fixes https://github.com/ARMmbed/mbed-cli/issues/663
### Pull request type
[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Breaking change
2018-09-27 10:55:36 -05:00
bcostm
5c34602d6b
NUCLEO_L4R5ZI: remove IAR exporter
...
The STM32L4R5ZI device has been added in IAR V8.20.1
Remove the IAR exporter until IAR V8 is supported on mbed.
2018-09-27 12:03:08 +02:00
bcostm
236396b442
NUCLEO_L4R5ZI: update iar and sw4stm32 exporters
2018-09-27 12:03:07 +02:00
bcostm
4d55e1b449
STM32: add missing IAR exporters
2018-09-18 14:57:09 +02:00
Cruz Monrreal
27f3fd92f5
Merge pull request #7939 from theotherjimmy/fix-embitz-ld-assign
...
Export, Embitz: Avoid assigning `self.resources.linker_script`
2018-09-06 15:23:17 -05:00
Jimmy Brisson
2516737acb
SImplify linkerscirpt usage
...
Avoids assigning to things that we can't assign
2018-08-30 08:41:15 -05:00
Jenny Plunkett
7977fd8edf
Fix typos
2018-08-28 13:25:06 -05:00
Jenny Plunkett
a8b60f5a98
Added LPC1769 template file for MCUXpresso
2018-08-28 13:20:25 -05:00
Jenny Plunkett
5cb1ecd143
Remove reference to "mBed"
...
Removed another reference to "mBed"
Another "mBed"
2018-08-28 13:05:07 -05:00
Cruz Monrreal
543d6c2ecf
Merge pull request #7569 from theotherjimmy/uvision-armc6
...
Tools: Add Uvision6 exporter
2018-08-27 10:28:38 -05:00
Martin Kojtal
2dfd3beb62
Merge pull request #7758 from phyokyaw/master
...
Include user defined static lib files in the Linker object files paths
2018-08-27 10:38:40 +02:00
Jimmy Brisson
c8f1e1f854
Escape quotes in uvision project file defines
2018-08-24 14:00:52 -05:00
Phyo Kyaw
87304f8812
Updated to include user defined static lib files in the Linker object files path.
...
### Description
This is to fix linker not finding symbols declared in object files inside static library files.
For this case throwing:-
> rm-none-eabi-g++: error: unrecognized command line option '--wrap=main'; did you mean '--warn-main'?
For this case to include libmbed.a which contains
mbed_alloc_wrappers.o:
U __real__calloc_r
U __real__free_r
U __real__malloc_r
U __real__memalign_r
U __real__realloc_r
00000000 T __wrap__calloc_r
00000000 T __wrap__free_r
00000000 T __wrap__malloc_r
00000000 T __wrap__memalign_r
00000000 T __wrap__realloc_r
00000000 T free_wrapper
00000000 T malloc_wrapper
00000000 T mbed_stats_heap_get
U memset
This patch also changed the library order to system and then user.
-lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -lmbed
Resolves : #7155
### Pull request type
[ x ] Fix
[ ] Refactor
[ ] Target update
[ ] Feature
[ ] Breaking change
2018-08-13 09:19:47 +01:00
kert
17276275fc
Add combined hex target to CMake
2018-08-11 10:56:29 -07:00
Martin Kojtal
2a824a1ceb
Merge pull request #7559 from theotherjimmy/make-armc6-v8m
...
Export: Support Make + ArmC6 + v8m
2018-08-10 10:03:34 +02:00
Jimmy Brisson
a6c85ee5f4
Add asm defines to template
2018-08-08 10:43:33 -05:00
Jimmy Brisson
0924d6618e
Fix a few flag-related things
2018-08-08 09:52:49 -05:00
Jimmy Brisson
1eb47934eb
Fix "pare error in Defines" uvision error
2018-08-08 09:24:50 -05:00
Jimmy Brisson
9f00a9be70
Fix python3 compatibility of exporter base class
2018-08-08 09:07:58 -05:00
Jimmy Brisson
c51467ee91
Flake8 of uvision exporter python code
2018-08-08 09:07:45 -05:00
Jimmy Brisson
11702d16b5
Enable uvision export for NS cores
2018-08-08 09:07:45 -05:00
Jimmy Brisson
5e9ac75c4f
Remove -MMD and debug print
2018-08-08 09:07:45 -05:00
Jimmy Brisson
0a175fe0f5
Use relative path to detect config header and remove -std options
2018-08-08 09:07:45 -05:00
Jimmy Brisson
bafced4099
Correct check for in-template flags
...
It was named and used as if it were positive logic, and written with
negative logic. This changes the name and usage to negative logic.
2018-08-08 09:07:45 -05:00
Jimmy Brisson
fa1bf57a4d
Enable export to uvision5 + armc6
2018-08-08 09:07:38 -05:00
Martin Kojtal
129ef46c7f
iar: MK22F use xx12 Freescale for 7.80.x
...
This fixes the failure for IAR regarding floating point.
2018-08-07 15:30:52 +01:00
Martin Kojtal
6f6a516b66
iar: kl43 - use nxp MCU definition
2018-08-03 12:19:20 +01:00
Martin Kojtal
eb5b117d98
frdm-k22f: fix IAR definition
...
Based on the https://www.keil.com/boards2/nxp/frdm_k22f/ - it contains xxx12 MCU.
However IAR 7.80 has only xxx5 version, thus leaving NXP added version as xxx5.
2018-08-03 12:17:50 +01:00
Jimmy Brisson
58180dbafe
Use shell escaping instead of quoting
...
OSs don't agree on what the quote chars mean
2018-08-02 09:09:07 -05:00
Jimmy Brisson
6adac922db
Revert "Disable make_armc6 on v8m"
...
This reverts commit a2427998f9
.
2018-08-02 09:02:06 -05:00
Jimmy Brisson
77d2a36d2a
Quote Makefile CLI parameters
2018-08-02 09:02:06 -05:00
Jimmy Brisson
c777bd6f5c
Migrate all flags into the FLAGS variables
2018-08-02 09:02:06 -05:00
Martin Kojtal
80d58e5572
iar: remove nxp duplicate definitions
...
Fixes #7634
2018-07-30 11:49:47 +01:00
Cruz Monrreal
057138c2a0
Merge pull request #7536 from ganesh-ramachandran/master
...
Add Support for Toshiba TMPM3H6
2018-07-20 12:38:25 -05:00
Cruz Monrreal
4bcca894ae
Merge pull request #7061 from TTornblom/master
...
Tools: Include configuration in ASM
2018-07-20 08:02:44 -05:00
Jimmy Brisson
14c2eff8ee
Re-indent IAR ewp temptate
2018-07-19 10:19:31 -05:00
Jimmy Brisson
d6b0f80438
Condense exported IAR project file
2018-07-19 10:18:34 -05:00
Ganesh Ramachandran
bfcfe9cc4b
Added Support for Toshiba TMPM3H6
2018-07-19 16:31:11 +05:30
Cruz Monrreal
e9e1ff997d
Merge pull request #7302 from OpenNuvoton/nuvoton_m2351_v1.1
...
Support Nuvoton's NUMAKER_PFM_M2351 target
2018-07-18 08:49:55 -05:00
Jimmy Brisson
a2427998f9
Disable make_armc6 on v8m
2018-07-17 15:56:11 -05:00
Jimmy Brisson
5c27da7046
Correct scatter shebang rewriting in Make
2018-07-16 14:12:00 -05:00
Jimmy Brisson
3b7a5bb35e
Filter libraries by extension in exporters
2018-07-16 14:11:09 -05:00
Jimmy Brisson
001c2d3b3b
Revisit Mbed 2 building
...
It's much cleaner now
2018-07-16 14:11:08 -05:00
Jimmy Brisson
6a87510192
Correct several exporter uses of file_basepath with a dedupe
2018-07-16 14:11:08 -05:00
Jimmy Brisson
de913e1ea2
Improve resources API to include more use cases
2018-07-16 14:11:08 -05:00
Jimmy Brisson
1f6862b41f
Remove needless None-passing
...
It's now the default
2018-07-16 14:11:08 -05:00
Jimmy Brisson
519e338667
Rework export resource scanning
2018-07-16 14:10:21 -05:00
Jimmy Brisson
989986288f
Correct uvision exporter support check
2018-07-16 11:51:20 -05:00
Cruz Monrreal
d4a0e6cf7a
Merge pull request #7503 from theotherjimmy/unquote-make
...
Tools: Drop quotes from makefiles
2018-07-13 22:13:33 -05:00
ccli8
1dbdcb2c8b
[M2351] Remove M2351KIAAEES from iar_definitions.json
...
M2351 doesn't support IAR yet.
2018-07-13 13:42:42 +08:00
Jimmy Brisson
33a56b4470
Drop quotes from command line make
2018-07-12 13:11:57 -05:00
Jimmy Brisson
9a3ad69ee9
Ensure that files generated have a directory
2018-07-12 10:27:14 -05:00
ccli8
8f2c717c4c
[M2351] Fix part number in IAR export
2018-07-12 17:51:56 +08:00
Deepika
ffcc438b5a
[M2351] Use Cortex M23 specific header files and interrupts
...
1. Update use of correct header files
2. Added missing entry of M2351 device in IAR defines.
3. Removed support of ARM toolchain in targets.json
2018-07-12 17:51:00 +08:00
Jimmy Brisson
b56a7a6a5a
Move exporter alias handling into CLI
2018-07-03 13:56:23 -05:00
Jimmy Brisson
e439b85de1
prepend VPATH to preinclude and don't escape asm macros
2018-06-26 08:47:41 -05:00
Jimmy Brisson
a855281633
Use preinclude of mbed_config.h in all toolchains
2018-06-26 08:44:37 -05:00
TTornblom
dcd17935e3
IAR: Fixed #6670
2018-06-26 08:44:37 -05:00
Cruz Monrreal
8e170ccbd1
Merge pull request #6925 from TomoYamanaka/feature-flashiap_bootloader
...
Support Flash iAP and Bootloader for GR-PEACH and GR-LYCHEE
2018-06-22 14:23:57 -05:00
Cruz Monrreal
24daf18044
Merge pull request #7105 from codeauroraforum/mxrt_add_ivt
...
MIMXRT1050: Update to EVK Rev B
2018-06-22 10:15:33 -05:00
TomoYamanaka
d5f0e1727b
Fix definitions of IAR exporter for GR-PEACH and GR-LYCHEE
2018-06-22 10:47:23 +09:00
Mahesh Mahadevan
632892d355
MIMXRT1050: Update to EVK Rev B
...
1. Add the IVT header to the binary as this is required for boot up
This was earlier added by the DAPLink firmware. As it is no longer
handled in DAPLink, the header needs to be added inside mbed.
2. Update drivers
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-06-21 13:34:12 -05:00
Cruz Monrreal II
799cfdbbc2
Compiling Cortex-A cores in uVision is not supported.
...
Reference: http://www2.keil.com/mdk5/selector
2018-06-21 09:13:24 -05:00
Jimmy Brisson
0c8f66f87b
Correct supported check of uvision to include uARM
2018-06-12 09:28:43 -05:00
Cruz Monrreal II
5ed8ad8ffe
Updated makefile exporter to not rely on enumerating over map.
...
No longer supported in Py3.
2018-06-04 21:02:35 -05:00
Cruz Monrreal
1b168b6717
Merge pull request #7020 from marcemmers/iar-add-stm32l433
...
Add STM32L433RC to IAR exporter definitions
2018-05-29 10:42:43 -05:00
Marc Emmers
3b6173c10b
Added STM32L433RC to iar exporter options
2018-05-25 14:18:18 +02:00
Mike Harrington
daf4c78ad4
Fixed incorrect clean_flags method and float-abi linker option for CCES exporter.
2018-05-24 16:48:29 -04:00
Alex-EEE
c0103c328b
Export folder needs to not ignore .mbed files.
...
Fixing a bug. .mbed is ignored in the high level .gitignore file. But .mbed is actually a needed file inside of tools/export. Even though the file is still in the main repo, since it's ignored now, you can easily lose it or remove it without seeing the change. Adding this .gitignore file here will add .mbed back into the tracked files for only this directory
2018-05-14 12:25:07 -05:00
Cruz Monrreal
d3cc4e1066
Merge pull request #6833 from andrewleech/test_ignore_arg
...
mbed test: add argument `--ignore` to allow passing in mbedignore patterns
2018-05-14 10:37:26 -05:00
Cruz Monrreal
598e5118a7
Merge pull request #6838 from ajaakko-arm/sw4stm_tmppath_fix
...
export: Fix invalid config header path in Sw4STM32
2018-05-14 10:37:01 -05:00
Andrew Leech
3b79b3f65e
add `--ignore` argument to `mbed compile` & `mbed export` commands
2018-05-11 14:00:01 +10:00
Jaakko Heikkilä
5330fa8ce5
export: Remove debug print from sw4stm32
2018-05-09 09:03:17 +03:00
Cruz Monrreal
53d3c4344f
Merge pull request #6781 from theotherjimmy/refactor-notify
...
tools: Refactor notification API
2018-05-07 10:48:48 -05:00
Cruz Monrreal
ab81b61e6c
Merge pull request #6657 from tsailer/exporter-codeblocks-ncs
...
add ncs36510 fib and trim generation
2018-05-07 10:40:51 -05:00
Cruz Monrreal
2ddce27a42
Merge pull request #6769 from theotherjimmy/fix-subtract-basepath
...
Move subtract basepath into the resources class
2018-05-07 10:33:36 -05:00
Jaakko Heikkilä
03b16fc1c3
export: Fix invalid config header path in Sw4STM32
...
Removed tmp-path from config header path, when project is exported
in online compiler. Parallel build is enabled by default.
2018-05-07 15:27:25 +03:00
Jimmy Brisson
d338e672de
Apply subtract basepath to features
...
A bug, #6755 , was the result of the `subtract_basepath` function not
being applied to a resources object's children (it's features). This PR
fixes this bug by moving this functionality into the resources class.
Then, I applied the `subtract_basepath` method to the children resource
objects recursively. This has been tested on Partnerbeta and is to
upstream the fix.
2018-05-03 08:54:55 -05:00
Jimmy Brisson
d422a5aadc
Use notifier api in export
2018-04-30 14:42:33 -05:00
Jimmy Brisson
d8becaa652
Remove ASM include paths for ARM compiler
2018-04-23 15:23:00 -05:00
Ganesh Ramachandran
38c5997e4c
IAR export and page size fix for nvstore
2018-04-19 17:24:58 +05:30
Martin Kojtal
7aa293b11a
Merge pull request #6441 from theotherjimmy/disable-deprecated-exporters
...
Disable all deprecated exporters
2018-04-18 14:24:47 +02:00
Thomas Sailer
004724d4d9
add ncs36510 fib and trim generation
2018-04-17 18:28:41 +02:00
Cruz Monrreal
1df9f7d450
Merge pull request #6637 from bcostm/add_iar_stm32l496ag
...
Add IAR export for STM32L496AG
2018-04-17 10:55:39 -05:00
bcostm
213f17aaf5
STM32L496AG: Add IAR export
2018-04-13 17:15:27 +02:00
Kimmo Vaisanen
14704c9387
Add iar export support for STM32L151CC
2018-04-13 14:03:00 +03:00
Thomas Sailer
696a7f5bd5
generate .mbedignore files in bin and obj to prevent mbed compile from getting confused
2018-04-06 11:45:12 +02:00
Thomas Sailer
69d7c530f5
proper compile flags for Release target; add fib/trim files to .mbedignore so mbed compile doesn't pick them up
2018-04-06 11:44:59 +02:00
Thomas Sailer
7b7d5fcb91
exporter: properly export libraries
2018-04-06 11:42:23 +02:00