Commit Graph

873 Commits (9e1444f88d7be73c6d8275881dfc014ee9e9f135)

Author SHA1 Message Date
Laurent Meunier 7afad64886 STM32WB55RG: Add board declaration in tools
In travis build and in SW4STM32 exporter
2019-03-29 16:21:42 +01:00
Cruz Monrreal 0a088a6f4d
Merge pull request #10200 from studavekar/vscode-gcc-ver
update vscode default gcc arm version to 6-2017-q1-update
2019-03-29 10:15:53 -05:00
Jimmy Brisson 12e5596627 Allow both path seperator types in flash algo names 2019-03-27 08:56:46 -05:00
Brian Daniels f56bf8f689 Fix the removal of Mbed-added core flags in uvision exporter 2019-03-23 15:39:06 -05:00
studavekar 31d4ea8722 update gcc arm version to 6-2017-q1-update 2019-03-22 13:48:46 -05:00
Martin Kojtal e665df9c47
Merge pull request #10045 from bridadan/uvision_exporter_fixes
Uvision exporter fixes for Python 3, CPM updates, and Windows path issues
2019-03-18 08:12:47 +01:00
Cruz Monrreal 2b7fee3fbe
Merge pull request #10118 from arskanov/master
Selectively append changes to exported config files
2019-03-16 23:01:29 -05:00
Cruz Monrreal 97204b6914
Merge pull request #9964 from bridadan/fix_references_to_basestring
Add imports of basestring for python 3
2019-03-16 22:55:37 -05:00
Artturi Ramanen 19562fff30 Selectively append changes to exported config files
In case of a non-overwriting change to an exported config file
the previous logic appended a new block of text to the previous file
every time the to-be-written block of text was not exactly matched.

This parses the old config file and the to-be-written changes into
sets, which can then be compared. If all of the incoming lines are
found in the old config file set, no changes are made. If some
incoming lines are not found in the old config file, only these are
appended.
2019-03-15 12:07:02 +02:00
Mahesh Mahadevan 3da7c6f3c0 Update to provide the right device name in the Asymmetric case
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-03-14 07:24:19 -05:00
Mahesh Mahadevan 83eed9eb78 LPC55S69: Add IAR and uvision exporter support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-03-14 07:19:15 -05:00
Martin Kojtal 4c7fc650db
Merge pull request #9994 from theotherjimmy/fix-iar-dfpu
Correct FPU settings traceback found by IAR
2019-03-14 09:10:13 +01:00
Brian Daniels 5ea3b32851 Fixing uvision exporter with CPM updates 2019-03-11 19:09:09 -05:00
Brian Daniels 00f204fce5 Ensure all exported paths use Posix style separators.
mbed_config.h is a file that is placed in your project root when you
export. This allows the configuration to be used by your IDE. When this
file already exists (due to a previous export), it changed the compiler
include option on Windows from "-include mbed_config.h" to "-include
.\mbed_config.h". The "\" character was interpreted as an escape
character "\m" and broke the build. This converts all resource paths to
use the Posix path separator "/" before writing project files to avoid
this issue.
2019-03-11 19:09:08 -05:00
Brian Daniels 1920212314 Fix include paths for uvision when exported with Python 3.
The call to encode() was causing the include paths to be placed in the
uvision product file with the prefix "b'" and the postfix "'". This
broke the parsing of this file and broke the build.
2019-03-11 19:09:07 -05:00
Jimmy Brisson 35479e8111 Correct FPU settings traceback found by IAR
Fixes #9974

The error was that the Asymmetric CPUs were assumed to have the same
structure as the Symmetric CPUs. This is clearly false.

This PR changes the FPU detection of Asymmetric CPUs to find the correct
core and use it's cpu settings.

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2019-03-07 14:06:50 -06:00
Oleg Kapshii aedec74b9a Added support for PSA target to WIFI_BT board
Added WiFi_Bt CM4 PSA target in mbedos json
Added SPE-NSPE mailbox initialization for CM4 SystemInit
Made similar to FUTURE_SEQUANA configurations
Copied FUTURE_SEQUANA CM0 SPM part for WiFi_Bt smoke test
Added CY8CKIT_062_WIFI_BT_M0 and CY8CKIT_062_WIFI_BT_M0_PSA targets
Sorted files for new CY8CKIT_062_WIFI_BT_M0 and CY8CKIT_062_WIFI_BT_M0_PSA targets
Copied files for CY8CKIT_062_WIFI_BT_M0_PSA from FUTURE_SEQUANA
Copied and updated cm0p start files
Corrected according to FUTURE_SEQUANA
Changes to M0 startup files to have SPM started
Fixed implicit declaration warning
Commented interrupts enabling according to FUTURE_SEQUANA flow
Updated prebuild spm_smore CM0 hex for CM4 target
Turned on greentea environment
Used special memory region for common CM0/CM4 data
Updated prebuild CM0 SPM hex
Placed shared memory region for flash operations into SPM shared memory region
Updated cyprotection code and configuration
Start address of protected regions is set by a defined number from target.json
Added masters pcMask configuration
Added support for PSA target to WIFI_BT board
Enabled resources protection for SPM
Aligned RAM usage according to Cypress FlashBoot and CyBootloader
alligned protection config
Added CYW943012P6EVB_01_M0 target
Enlarged heap size, remobed nv_seed
Added heap reservation in linker script from mbed-os
Removed heap size definition
turned on nv_seed config
Removed nv_seed macros
Enabled protection for PSoC6 CM0
Added PSoC6 CM0 PSA readme
Enabled mbed_hal-spm test
Enabled nv_seed and removed unneeded ipc config define
Added SPDX string to feature_ble cypress target files
Removed unneeded supported_toolchains lines for Cypress targets
Disabled protection settings
Corrected flash initialization for PSoC6 CM0 PSA
Changed PSoC6 IPC6 protection for flash
Enabled special flash initialization and enabled protection settings
Updated and added new prebuild PSoC6 CM0 PSA hex files
Disabled HW TRNG and CRC for PSoC6 CM4 PSA target
Added missing const to allow types to match
Updated PSoC6 WIFI_BT_PSA prebuilt directory
Moved PSoC6 shared section usage area definition to begin of ld
Added initial ARM_STD linker and startup files for PSoC6 CM0
Added initial IAR linker and startup files for PSoC6 CM0
Added defines to disable some SPM protection settings for PSoC64
Moved Flash function variables into separate memory region
Added defines for new Public area definition
Updated PSoC6 CM0_PSA hex-files
2019-03-07 08:40:20 -08:00
Brian Daniels 0105395be2 Add imports of basestring for python 3 2019-03-06 09:33:02 -06:00
Martin Kojtal c37ac83e8e
Merge pull request #8757 from theotherjimmy/use-cpm
Update Cmsis-pack-manager to 0.2.3
2019-03-06 15:58:42 +01:00
Brian Daniels c129336453 Fix include paths for the assembler for makefiles.
The Makefile is run from the build directory. The source files were
properly prefixed with "../", however the paths provided to the
assmebler were not. This ensures the assembler include paths are
prefixed properly.
2019-03-05 15:13:37 -06:00
Jimmy Brisson 859949fc74 Update index to include vendor information 2019-03-04 11:24:47 -06:00
Jimmy Brisson 8d7c15ee35 Use device variant in uvision export 2019-03-04 11:24:47 -06:00
Jimmy Brisson 9de37ec39c Correct uvisionn export 2019-03-04 11:24:47 -06:00
Martin Kojtal e75794ec6e
Merge pull request #9888 from ARMmbed/feature-armc6
ARM Toolchain update to ARM Compiler 6.11(ARMC6)
2019-03-04 12:23:38 +01:00
Senthil Ramakrishnan e1e4456c47 Fixes for exporters failing with wrong compiler settings 2019-03-01 13:21:33 -06:00
Cruz Monrreal 13945c6db3
Merge pull request #9891 from deepikabhavnani/nuc472_iar8
Correct the device name for NUC472 / M453 - IAR 8
2019-02-28 19:11:54 -06:00
Cruz Monrreal 460e4e7836
Merge pull request #9817 from kegilbert/artifact_name_export
Apply artifact_name configuration parameter to exported projects
2019-02-28 18:22:28 -06:00
Deepika a3c7caf3de Correct the device name for M453 2019-02-28 14:41:35 -06:00
Senthil Ramakrishnan 4e7d34bbb6 Review fixes for uvision exporter,build_api and arm.py 2019-02-28 12:00:11 -06:00
Senthil Ramakrishnan 22da2be37f Update uvision exporter to capture ARMC6 as default toolchain 2019-02-28 12:00:11 -06:00
Deepika 01d6f38268 Correct the device name for NUC472 2019-02-28 10:03:00 -06:00
Cruz Monrreal 22674a694d
Update tools/export/__init__.py
Co-Authored-By: kegilbert <K.Gilbert.CH@gmail.com>
2019-02-25 17:50:51 -06:00
Jimmy Brisson da3eb5df47
Update tools/export/__init__.py
Co-Authored-By: kegilbert <K.Gilbert.CH@gmail.com>
2019-02-25 13:57:26 -06:00
Jimmy Brisson c0fbe95d54
Update tools/export/__init__.py
Co-Authored-By: kegilbert <K.Gilbert.CH@gmail.com>
2019-02-25 13:57:20 -06:00
kegilbert 056b88ad0e Pull in artifact-name for exported projects 2019-02-22 17:47:13 -06:00
Deepika 5501947197 Update IAR project template as per IAR 8.32
Reference template file is used from IAR8.32 installation available at path
"Embedded Workbench 8.2\arm\config\template\ConvertToIAR\template_project.ewp"

Also added trustzone configs in iar_definitions.json
2019-02-22 09:25:08 +00:00
Martin Kojtal e59166289f
Merge pull request #9756 from vmedcy/psoc6-cmake-export
PSOC6: enable export to CMake
2019-02-20 09:39:35 +01:00
Martin Kojtal 7f4475d924
Merge pull request #9736 from 0xc0170/fix_licenses_files
tools/test/cmsis: add license header
2019-02-20 09:38:55 +01:00
Volodymyr Medvid cf0ea92104 tools/export: move hex_files selection to base Exporter class
CMake and makefile exporters share a common logic for hex file
selection. Factor it as a common property in the base class
to avoid code duplication.
2019-02-19 20:03:06 +02:00
Volodymyr Medvid 7311a610e5 PSOC6: enable export to CMake
The approach for the hex_files subset selection is identical
to makefile exporter: https://github.com/ARMmbed/mbed-os/pull/9466

Single hex file should be passed to srec_cat when hex_filename
is set in targets.json or mbed_app.json.
2019-02-19 14:15:31 +02:00
Martin Kojtal 195965fd5e tools: move string description after import modules 2019-02-19 10:49:04 +00:00
Cruz Monrreal f95ec957dd
Merge pull request #9742 from naveenkaje/mcuxpresso_export_fix
tools: export: MCUXpresso: fix case inconsistencies in .templ file names
2019-02-15 21:15:42 -06:00
Cruz Monrreal 5a8970a48b
Merge pull request #9649 from ngraziano/fix-vscode-export
Fix IntelliSense in VSCode export
2019-02-15 12:28:00 -06:00
Naveen Kaje 8d284cb4b6 tools: export: MCUXpresso: fix case inconsistencies in .templ file names
The templ file names are both all upper case and lower case letters.
The Target Names map is usually all upper case. The match could fail
if the templ file, as we have case-sensitive comparison. Handle such
cases by perorming a case-insensitve check.

mbed export of a project to MCUXpresso could potentially always fail
irrespective of what is passed in -m option since the target names
map entry and the filename may not match. This commit fixes this issue.

Example of the issue that this commit fixes:

$ mbed export -i mcuxpresso -m lpc11u68 -v
<snip>
project.py: error: LPC11U68 not supported by mcuxpresso
<snip>
2019-02-15 11:56:27 -06:00
Martin Kojtal c8f698ca36 tools: add license headers 2019-02-15 13:32:45 +00:00
Nicolas Graziano e85bbdd767 Vscode export: replace obsolete ${workspaceRoot}
Replace with ${workspaceFolder}
2019-02-11 19:05:25 +01:00
Nicolas Graziano 4b1789de22 Vscode export: remove path separator conversion
VSCode handle "/" and it is easier to read.
2019-02-11 19:05:14 +01:00
Nicolas Graziano e682807bf5 Fix IntelliSense in VSCode export
Allow to use default intelliSenseEngine in visual studio code.
Add of compilerPath and forcedInclude of mbed_config header in the
created c_cpp_properties.json file.
2019-02-11 19:05:04 +01:00
Martin Kojtal 7e831a7f91
Revert "MIMXRT1050_EVK: Add IAR support in the exporter" 2019-02-11 09:36:18 +00:00
Martin Kojtal 7e18cc5b6a
Merge pull request #9596 from vmedcy/make-cmd-files
Implement Linker command/response files in make export
2019-02-07 09:36:19 +01:00
Volodymyr Medvid 6918e6a76b makefile export: create .link_options.txt with echo
$(file > $@.in, $(filter %.o, $^)) is not supported in GNU Make 3.81.
Create the linker response file with pipe redirect from echo command.
This is tested with Cygwin make and make 3.8.1 shipped with macOS.

Also, change the linker responce file name to .link_options.txt.
This is an internal file, not a build artifact.
2019-02-04 20:10:47 +02:00
Martin Kojtal 0ae6a048e4
Merge pull request #9431 from deepikabhavnani/iar_armv8m_changes
Update IAR Armv8M changes
2019-02-04 14:34:28 +01:00
Martin Kojtal 7ba83a517d
Merge pull request #9342 from Cypress-OpenOCD/master
Add support for debug and program launch configurations
2019-02-01 08:10:20 +01:00
Deepika 80f6b0e002 M2351: Update code to support IAR 8.x builds 2019-01-31 16:19:24 -06:00
Andriy.Lishchynskyi be5a625771 Resolved code review comments 2019-01-31 19:31:28 +02:00
Jimmy Brisson 020c840cf8
Apply suggestions from code review
Co-Authored-By: Cypress-OpenOCD <39907069+Cypress-OpenOCD@users.noreply.github.com>
2019-01-31 19:29:13 +02:00
Jimmy Brisson a8a21d30a1 Implement Linker command/response files in make export 2019-01-31 17:38:25 +02:00
Andriy.Lishchynskyi 6f584cd35e Added copyright notes 2019-01-31 16:31:02 +02:00
Andriy.Lishchynskyi 48dfcd98a9 Changes:
- added new erase launch configuration
- added new kits support
- code cleanup
2019-01-30 19:48:20 +02:00
Martin Kojtal 2a16bbdf98
Merge pull request #9496 from NXPmicro/Add_MXRT_IAR_Support
MIMXRT1050_EVK: Add IAR support in the exporter
2019-01-30 09:56:29 +01:00
Mahesh Mahadevan aa449b3c5f MIMXRT1050_EVK: Add IAR support in the exporter
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-01-24 13:55:20 -06:00
Andriy.Lishchynskyi 55a6ca5b1a Fix python3 compatibility issue 2019-01-23 23:25:20 +02:00
Volodymyr Medvid a48ee113ea PSOC6: refactor M0 image merging, enable export to makefile
Rename the existing PSoC-specific m0_core_img key in targets.json
as a more generic hex_filename key. Update makefile exporter to select
the subset of resources.hex_files matching the hex_filename value.
Without this fix, multiple prebuilt CM0+ hex files are found in the
target resources and erroneously passed to the srec_cat tool.

The fix is generic so other targets that need post-build hex merging
can use this key to pass the correct image to srecord tool.

The fix also removes sub_target key: instead, rely hex_filename json
key to detect if the hex image merging needs to be done.
The sub_target is not used in mbed-os codebase for anything else.

It is possible to override the hex file name in mbed_app.json:
{
  "target_overrides": {
    "*": {
      "target.hex_filename": "my_custom_m0_image.hex"
    }
}
2019-01-22 15:40:22 -08:00
Andriy.Lishchynskyi 7f2caacbdd Added GNU MCU Eclipse plug-in support 2019-01-18 18:14:35 +02:00
Martin Kojtal 796d1c2a64 STM32H743ZI: iar removal as not supported in v7.x
Fixes #9426
2019-01-18 12:09:42 +00:00
Andriy.Lishchynskyi 7a85ae75e6 Reworked launch configuration creation mechanism - switched to single template. Specific data comes from the JSON file 2019-01-15 16:08:59 +02:00
Andriy.Lishchynskyi 9fa2c75912 added support for debug and program launch configurations 2019-01-15 16:08:59 +02:00
jeromecoutant 4b67820f8a NUCLEO_H743ZI: add initial SDK 2019-01-04 10:03:36 +01:00
Jenny Plunkett 4e466b7ff8 Removed "ALL" from PrettyTable import 2018-12-06 14:42:41 -06:00
Jenny Plunkett a578768c48 Apply GitHub style to exporter matrix 2018-12-06 14:42:41 -06:00
Yoshihiro TSUBOI a1d2ac7462 [Wio 3G] Adding IAR exporting definition 2018-11-18 00:35:37 +09:00
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
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