Commit Graph

702 Commits (e38d47fed76439cc80ce3a4f3c00aae9cf49db63)

Author SHA1 Message Date
Martin Kojtal ed1ecd2484 Merge branch 'rm-ds5' of https://github.com/theotherjimmy/mbed into dev_rollup 2018-11-08 09:20:28 +00:00
Cruz Monrreal 0e6eac5faa
Merge pull request #8491 from lrusinowicz/new-target-future_sequana
New target future sequana
2018-11-03 07:05:58 -05:00
Leszek Rusinowicz 53477848f5 Disabled makefile exporters for PSoC 6 based targets. 2018-11-02 17:27:56 +01:00
Leszek Rusinowicz 7d322dcd41 Simplified M0/M4 binary merging functionality. Now, M0 binary image to be used has to be explicitely named in a json file (can be ovverriden in mbed_app.json).
Exporter hooks removed completely.
Cleanup and improvements to the comments, including removal of the redundant doxygen comments.
Code run through astyle. Additionally:
 - changes to drivers/Timer.cpp reverted
 - ipcpipe_transport.* files removed as they are not used for now,
 - fixed condition in stdio_init.cpp to perform serial initialization only when STDIO is enabled,
 - added missing resurce manager call in PWM initialization,
 - us_ticker initialization changed to use pre-reserved clock divider (to avoid resource manager call).
Changed reporting level from info to debug in PSOC6.py.
Added missing includes for function declarations in startup files.
Fixed (removed) garbadge text in psoc6_utils.c
Precompiled binaries updated for recent changes in psoc6_utils.c and moved to a separate folder; README and LICENSE files added.
2018-11-01 22:14:06 +01:00
Leszek Rusinowicz 9b1db83eaa Added required changes outside of TARGET_Cypress tree:
1. In drivers/Timer.cpp make sure that hardware timer is initialized outside of critical section.
   This is because on PSoC 6 hardware resources are shared between both cores
   and we have to make sure that the other core is not already using a particular resource.
   This mechanism is based on interprocessor communication taht cannot be handled iside of
   critical section.
2. Added support for post-binary hook function for PSoC 6 targets, so the hex image for M0+ CPU core
   can be merged with M4 core image for the final image.
3. Added possibility to use hook function from exportes, so the M0+ hex image could be included
   in the generated project.
4. Included hex images in the build dependency list, so the update of image is catched by the
   build process.
2018-11-01 20:19:21 +01:00
Jimmy Brisson f366c257e5 Export: Remove DS-5
### Description

The DS-5 exporter does not work. It exports projects which I'm 100% sure
don't build. I have been looking over supporting it for about 6 months
now and I have convinced myself that I don't think it's worth the
trouble. Shout now if you need this exporter.

### Pull request type

    [ ] Fix
    [ ] Refactor
    [ ] Target update
    [x] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2018-10-30 09:38:22 -05:00
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