Commit Graph

693 Commits (mbed-os-5.10)

Author SHA1 Message Date
Leszek Rusinowicz b7c0fbddf2 Disabled makefile exporters for PSoC 6 based targets. 2018-11-02 19:50:03 -05:00
Leszek Rusinowicz 4a07001873 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-02 19:50:02 -05:00
Leszek Rusinowicz 9c93f3a850 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-02 19:50:02 -05:00
Lasse Bang Mikkelsen 808ceab546 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-11-02 19:50:00 -05:00
Jimmy Brisson 6a5c5c98f2 Remove unused local 2018-11-02 19:49:52 -05:00
maclobdell 33d3e0e87f Add support for NXP Rapid IoT prototyping kit
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-10-19 11:46:55 +01:00
Ganesh Ramachandran aff0b2d434 Removed IAR definition for TMPM4G9
TMPM4G9 device was added in IAR 8.30. Based on this, exporters should be disabled for now (not supported in 7.x version).
2018-10-19 11:46:55 +01:00
Ganesh Ramachandran 29e0e65b1f Added Support for TOSHIBA TMPM4G9 2018-10-19 11:46:55 +01:00
Jimmy Brisson 32031fc008 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-10-19 11:46:55 +01:00
Jimmy Brisson fffbab143c Avoid assigning self.libraries 2018-10-19 11:46:55 +01:00
bcostm 9adc6635a0 STM32: add missing IAR exporters 2018-10-19 11:46:55 +01:00
Jenny Plunkett 384257d49c Remove reference to "mBed"
Removed another reference to "mBed"

Another "mBed"
2018-10-19 11:46:55 +01:00
Jenny Plunkett 1c5b343fd8 Fix typos 2018-10-08 15:29:18 +01:00
Jenny Plunkett 55b5d6cb7e Added LPC1769 template file for MCUXpresso 2018-10-08 15:29:18 +01:00
bcostm c61595f8be 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-10-08 15:18:50 +01:00
bcostm a60399cd05 NUCLEO_L4R5ZI: update iar and sw4stm32 exporters 2018-10-08 15:18:50 +01:00
Jimmy Brisson 8c677fc9a1 SImplify linkerscirpt usage
Avoids assigning to things that we can't assign
2018-10-08 15:18:50 +01: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