Martin Kojtal
2977d0c387
tools: remove usb host from mbed 2 scripts
...
usb host has dependency on rtos1 that is no longer in the
code base.
2017-05-12 14:51:49 -05:00
Martin Kojtal
8c4258ceb5
tools: remove all rtos1 references
...
These references are removed from mbed 2 scripts, including travis script.
2017-05-12 14:51:47 -05:00
Jimmy Brisson
2821fd548f
Mock config in toolchain tests
2017-05-12 14:04:08 -05:00
Bartek Szatkowski
2ddf4b33cb
CMSIS5: Remove ARM7 support and targets
2017-05-12 13:48:43 -05:00
Martin Kojtal
d4cd403039
tools: remove net libraries
...
Remove any reference to net libraries that are unsupported. As we removed net libraries, these are no longer in the codebase.
2017-05-11 17:51:01 -05:00
Jimmy Brisson
58167a2071
All C files depend on mbed_app.json
2017-05-11 14:20:09 -05:00
Jimmy Brisson
59e32b2fc6
Merge pull request #4289 from netzimme/master
...
LPC4088: add "LPC4088Code.binary_hook" to the white list of the embit…
2017-05-10 15:56:24 -05:00
Jimmy Brisson
6b8dd7b880
Revome duplicate optimization flags in IAR export
2017-05-09 14:20:48 -05:00
Daniel Zimmermann
8e02855101
LPC4088: add LPC4088Code.binary_hook to the white list of the embitz, gnuarmeclipse and makefile exporter.
2017-05-09 11:59:03 -05:00
Jimmy Brisson
d04d588106
Merge pull request #4276 from nvlsianpu/patch-1
...
avoid 03/05 intel-hex records for nordic devices
2017-05-08 16:05:24 -05:00
Jimmy Brisson
c782054eb5
Remove unsupported Coide exports
...
They simply would error with "template not found". Instead, lets just
disable them.
2017-05-08 14:03:27 -05:00
Jimmy Brisson
bbde3797cb
Make binary depend on config directly
2017-05-08 13:33:37 -05:00
Jimmy Brisson
fd26d5b5a7
Allow app config to override start and size
2017-05-08 13:25:28 -05:00
Jimmy Brisson
c1cbd26f1d
Merge pull request #4256 from arostm/dev_disco_lora
...
DISCO_L072CZ_LRWAN1: add a new platform
2017-05-08 11:15:00 -05:00
Andrzej Puzdrowski
c64d2f4411
avoid 03/05 intel-hex records for nordics devices
...
use Intelhex::write_hex_file instead of IntelHex::tofile
2017-05-05 13:27:29 +02:00
arostm
1cea7ee7fb
DISCO_L072CZ_LRWAN1: delete tests mbed os2 result
2017-05-03 09:14:04 +02:00
Jimmy Brisson
7e03d8f1b4
Merge pull request #4110 from theotherjimmy/build-metadata
...
Add --build-data switch to mbed compile and test
2017-05-02 11:35:47 -05:00
Jimmy Brisson
7f0ed3b40b
Merge pull request #4136 from theotherjimmy/bootlader-exists
...
Error when bootloader is specified but does not exist
2017-05-02 11:34:30 -05:00
Jimmy Brisson
03806a8045
Merge pull request #4224 from theotherjimmy/mbed-new-export
...
Add `mbed new .` output to export
2017-05-02 11:28:09 -05:00
Alexis ROCHE
71492e5473
DISCO_L072CZ_LRWAN1: add IAR export
2017-05-02 12:53:25 +02:00
Alexis ROCHE
a59c4ff8a7
DISCO_L072CZ_LRWAN1: add LRWAN1 to the name
2017-05-02 12:53:25 +02:00
Alexis ROCHE
19109d9404
DISCO_L072CZ: Modifications and verifications to build
2017-05-02 11:50:24 +02:00
Martin Kojtal
a8da481ce3
Config: config header file should contain new line
2017-04-28 10:41:23 +01:00
Jimmy Brisson
43bd303db3
Add `mbed new .` output to export
2017-04-26 09:52:07 -05:00
Jimmy Brisson
0b5b6cba71
Merge pull request #4093 from adbridge/update
...
Update.py: New feature - update a branch instead of a fork, plus general improvements.
2017-04-24 11:01:20 -05:00
Jimmy Brisson
7b13217226
Merge pull request #4145 from 0xc0170/dev_examples_add_nanostackrouter
...
test - add nanostack to examples.json file
2017-04-24 11:00:32 -05:00
Indrek Ardel
189083eeb0
Add USB capabilities to NUCLEO-F446RE board
2017-04-22 20:47:55 +03:00
Indrek Ardel
c2ba96b7c2
Fix formatting in tools/build_travis.py
2017-04-22 20:47:55 +03:00
Martin Kojtal
ea53150d35
test - add nanostack to examples.json file
2017-04-21 13:10:45 +01:00
adbridge
9ea605bb98
Update.py: Tidy up Fn headers, make logger work globally
...
The function headers have been updated to follow the standard format
that should be being used for tools in mbed. This is a one line summary
followed by a descriptive block with more detail.
Updated the handling of the main function so that the logger becomes
global and thus works across all the functions. This has been tested
with both the fork and branch options, and for levels INFO and DEBUG.
2017-04-21 11:08:58 +01:00
Jimmy Brisson
8048ec3b66
Add a config test to check for failing bootloader images
2017-04-20 14:32:17 -05:00
Jimmy Brisson
cf87e7d182
Merge pull request #3915 from janjongboom/feature-vscode
...
Feature vscode
2017-04-20 12:39:44 -05:00
Jimmy Brisson
2a84ddd6e4
Error when bootloader is specified but does not exist
...
The changes to build_api.py make the error happen when running things
like get_config.py
2017-04-20 11:23:42 -05:00
Jimmy Brisson
c4c6e139b6
Add UUID to all builds
2017-04-20 11:03:15 -05:00
Jimmy Brisson
05dce1206e
Change date key to UTC ISO 8601 format
2017-04-20 11:03:15 -05:00
Jimmy Brisson
6ef384b7fe
Add type to build_data.json
2017-04-20 11:03:15 -05:00
Jimmy Brisson
808279911c
Add --build-data flag to mbed test
2017-04-20 11:03:15 -05:00
Jimmy Brisson
aeb6109717
Rename switch to --build-data
2017-04-20 11:03:15 -05:00
Jimmy Brisson
035ddfb057
Add an option to make.py to dump build metadata
2017-04-20 11:03:15 -05:00
Jimmy Brisson
da9c10be48
Expand build reports in the tools
2017-04-20 11:03:15 -05:00
Anna Bridge
8344adf48a
Merge pull request #4172 from theotherjimmy/iar-no-linker-scirpt
...
Fail IAR exports without linker scirpts with NotSupportedException
2017-04-20 16:27:58 +01:00
Anna Bridge
da4fb75256
Merge pull request #4171 from theotherjimmy/lpc-template-execption
...
Fix typo in LPCExpresso exporter template
2017-04-20 16:26:28 +01:00
Anna Bridge
41ff084f0c
Merge pull request #4150 from theotherjimmy/refactor-config-header
...
Move config system into it's own folder and refactor header generation
2017-04-20 16:14:38 +01:00
Anna Bridge
29d59edd55
Merge pull request #4129 from bridadan/remove_old_fs_test
...
Removing old filesystem test
2017-04-20 15:57:12 +01:00
Anna Bridge
a1d1a6037c
Merge pull request #3888 from 0xc0170/fix_add_examples
...
tools: add new examples
2017-04-20 15:38:02 +01:00
Sam Grove
247238d993
Merge pull request #4167 from 0x6d61726b/patch-2
...
Replace deprecated import and correct typo in c_blob_mbed.tmpl
2017-04-19 02:28:34 -05:00
Sam Grove
a67eca5e72
Merge pull request #4173 from theotherjimmy/fix-cmsis-traceback
...
Fix Traceback in CMSIS export.
2017-04-19 02:20:21 -05:00
Sam Grove
0cfa96cf55
Merge pull request #4170 from theotherjimmy/fix-include-paths
...
Fix include paths for Windows builds
2017-04-19 02:19:23 -05:00
Sam Grove
de6cce77be
Merge pull request #4168 from theotherjimmy/gnuarmeclipse-more-templates
...
Generate GNU ARM Eclipse .mbedignore file with jinja2
2017-04-19 02:18:17 -05:00
Jimmy Brisson
fb8fda3cee
Merge pull request #4097 from bulislaw/build_debug_macro
...
Debug build flag + change to sleep behavior in debug mode
2017-04-18 15:05:02 -05:00
Jimmy Brisson
6a325673de
Fix Traceback in CMSIS export.
...
The traceback was caused when a file without a parent directory (which
is implicitly ".") is added to the resources object. The code assumed
that all files within the resources object would have a parent
directory.
This commit changes the check to account for files that are in the root
directory of a project and have no preceding `./`
2017-04-12 11:00:09 -05:00
Jimmy Brisson
157023342f
Add license to configuration header
2017-04-12 10:50:43 -05:00
Jimmy Brisson
212a3dfd12
Move config to own dir
...
I also broke the config header template into it's own file. Further, I
fixed a bug in the config header generation where if no macros, builds
would crash.
2017-04-12 10:50:38 -05:00
Jimmy Brisson
1e21985ff7
Fail IAR exports without linker scirpts with NotSupportedException
2017-04-12 10:39:24 -05:00
Jimmy Brisson
65adf446c5
Merge pull request #3993 from mbartling/supported-lists
...
Added list options for --supported command
2017-04-12 09:33:27 -05:00
Jimmy Brisson
e307b907d6
Fix typo in LPCExpresso exporter template
2017-04-11 15:18:19 -05:00
Jimmy Brisson
7c40343e74
Fix include paths for Windows builds
2017-04-11 14:26:14 -05:00
Jimmy Brisson
6fa1de2161
Generate GNU ARM Eclipse's .mbedignore with Jinja2
2017-04-11 14:11:44 -05:00
0x6d61726b
5be47f1e2b
Update c_blob_mbed.tmpl
...
- critical.h is deprecated, replaced with "platform/mbed_critical.h"
- typo corrected
2017-04-11 20:30:34 +02:00
Sam Grove
e3edbabbcc
Merge pull request #4107 from theotherjimmy/config-name-app
...
Allow configuration of artifact name in app config
2017-04-10 16:37:34 -05:00
Jimmy Brisson
55884de07e
Merge pull request #4115 from cvtsi2sd/master
...
Support for Qt Creator Generic project export and associated Makefile
2017-04-10 16:17:14 -05:00
Sam Grove
0b1117793f
Merge pull request #4069 from theotherjimmy/preproc-linker-gnuarmeclipse
...
Update gnuarmeclipse to preprocess linker scripts
2017-04-10 11:10:58 -05:00
Sam Grove
cef31a7fa6
Merge pull request #4106 from theotherjimmy/fix-typo-toolchain
...
Fix a scoping typo in toolchains
2017-04-10 10:51:07 -05:00
Sam Grove
09de12161a
Merge pull request #4013 from theotherjimmy/fix-subtract-basepath
...
Fix a small bug in subtract_basepath
2017-04-10 10:22:57 -05:00
Bartek Szatkowski
cc71f3f5d4
Introduce MBED_DEBUG macro for debug build profile
2017-04-10 11:40:04 +01:00
Jan Jongboom
336e036e74
Visual Studio Code exporter
2017-04-10 09:26:25 +02:00
Anna Bridge
a514216c8b
Merge pull request #4098 from theotherjimmy/fail-on-bad-config
...
Raise error when mbed_app.json is bad
2017-04-07 12:35:49 +01:00
Matteo Italia
2baa215487
Updated year in license header
2017-04-06 23:19:52 +02:00
Brian Daniels
4d4e4a3ef9
Removing old filesystem test
2017-04-06 14:18:37 -05:00
Sam Grove
9c141b6547
Merge pull request #3911 from anangl/fix_iar_exporter
...
IAR exporter: extended debugger settings template with modifiable options needed for Nordic targets
2017-04-06 10:58:38 -05:00
Sam Grove
14eadf389e
Merge pull request #4085 from wdwalker/master
...
Fix mbed-cli issue #468 . Add LPCTargetCode.lpc_patch to POST_BINARY_WHITELIST
2017-04-06 10:47:12 -05:00
Sam Grove
caded3805e
Merge pull request #4072 from seppestas/patch-3
...
Removed superfluous space
2017-04-06 10:40:58 -05:00
Sam Grove
2ab3eda361
Merge pull request #4070 from theotherjimmy/optionally-add-regions
...
Elide adding regions to profile when empty
2017-04-06 10:35:05 -05:00
Sam Grove
fdf1ed623e
Merge pull request #3994 from theotherjimmy/fix-output-ext
...
Use OUTPUT_EXT to pick binary type
2017-04-06 08:37:52 -05:00
Matteo Italia
92eae30c40
Qt Creator exporter: added derivation from GccArm Makefile
...
this allows Qt Creator to build the generated project "out of the box",
enabling integration with the "Issues" list
2017-04-06 11:22:21 +02:00
Matteo Italia
70412ec5a6
QtCreator exporter: switch to jinja-based templates
...
this also makes so that the export directory setting is honored
2017-04-06 11:22:01 +02:00
Matteo Italia
f3ccfbe267
Added minimal support for Qt Creator projects
2017-04-05 11:43:50 +02:00
Jimmy Brisson
6a646eb4b2
Allow configuration of artifact name in app config
2017-04-04 14:36:01 -05:00
Jimmy Brisson
d5ecd7adf8
Fix a scoping typo in toolchains
2017-04-03 15:43:22 -05:00
Jimmy Brisson
74998d649a
Change target hooks to use correct input format
...
The input format is now determined by the OUTPUT_EXT key in
targets.json, and defaults to "bin" when not specified. This changes the
Teensy3_1 and the NRF51x targets' post bulid hooks.
Teensy3_1 just converted to intelhex, so we do nothing instead.
NRF51x assumed that it was taking in a bin format file. I made it detect
file type by extension.
2017-04-03 14:54:38 -05:00
Jimmy Brisson
20edbe3525
Fix a small bug in subtract_basepath
...
It was causing tracebacks on the website
2017-04-03 11:44:25 -05:00
Jimmy Brisson
1faf44e82b
Raise error when mbed_app.json is bad
2017-03-31 15:09:17 -05:00
Michael Bartling
91ed457ce0
resolved import conflict
2017-03-31 09:56:58 -05:00
Michael Bartling
aebd9810f9
make.py -S toolchains now just prints the toolchains, no more mbed OS x
2017-03-31 09:55:08 -05:00
Michael Bartling
111a65b53d
Added ability to list ides
2017-03-31 09:55:08 -05:00
Michael Bartling
f142939937
Added ability to list targets and toolchains in a non matrix form.
...
This is super helpful for the tab completion generation script as we no
longer have to parse the matrix output.
2017-03-31 09:54:03 -05:00
Willie Walker
13247426f9
Fix mbed-cli issue #468 . Add LPCTargetCode.lpc_patch to POST_BINARY_WHITELIST.
2017-03-30 15:22:57 -04:00
Seppe Stas
886713d290
Removed superfluous space
...
The extra space between "--no_wrap_diagnostics" and "-e" is inconsistent with the development and release targets.
It bugs people (like me) that have little OCD tics 😉 .
2017-03-30 10:19:36 +02:00
Sam Grove
782395dfa7
Merge pull request #4049 from tung7970/fix-tools
...
tools - turn off page alignment of sections
2017-03-29 23:05:47 +01:00
Jimmy Brisson
09afe23762
Upgrade OUTPUT_EXT and use it to pick binary type
...
targets.json contained a key for some targets, `OUTPUT_EXT`, which I
moved to `Target`, the root of all targets. Following on that, the tools
now use this extension provided by `OUTPUT_EXT` to determine the file
type of the output executable.
2017-03-29 16:46:21 -05:00
Sam Grove
405ab0c005
Merge pull request #4000 from theotherjimmy/config-typechecking
...
Add some type checking of configs
2017-03-29 22:39:57 +01:00
Sam Grove
c958eb45bb
Merge pull request #3998 from theotherjimmy/remove-dead-code
...
Remove dead code in tools
2017-03-29 22:28:29 +01:00
Sam Grove
432162f9e3
Merge pull request #3997 from theotherjimmy/remove-project-api
...
Move contents of project_api to export/__init__.py
2017-03-29 22:26:59 +01:00
Sam Grove
8784913052
Merge pull request #3995 from theotherjimmy/targets-refactor
...
Move target related code into it's own directory
2017-03-29 22:25:46 +01:00
Jimmy Brisson
8b3f08ed49
Elide adding regions to profile when empty
2017-03-29 15:49:16 -05:00
Jimmy Brisson
6a3c71c002
Update gnuarmeclipse to preprocess linker scripts
2017-03-29 14:52:11 -05:00
0xc0170
137e47f5e8
tools: add new examples
...
Bootloader, bootloader blinky and fat filesystem examples added.
2017-03-29 17:27:11 +01:00
Tony Wu
72589dfef3
tools - turn off page alignment of sections
...
By default, ld sets page alignment of sections to 0x8000, which bloats
up elf file size. This behavior is unnecessary for MCU.
Example:
1. page alignment on
mbed.elf file size 144936
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
LOAD 0x008000 0x00000000 0x00000000 0x00400 0x00400 R 0x8000
LOAD 0x008400 0x00000400 0x00000400 0x00010 0x00010 R 0x8000
LOAD 0x008410 0x00000410 0x00000410 0x0ab3c 0x0ab3c RWE 0x8000
LOAD 0x018000 0x20000000 0x0000af4c 0x008d0 0x008d0 RW 0x8000
LOAD 0x01b81c 0x0000b81c 0x0000b81c 0x00000 0x00004 RW 0x8000
LOAD 0x020000 0x1fff0000 0x1fff0000 0x00000 0x00400 RW 0x8000
LOAD 0x0188d0 0x200008d0 0x200008d0 0x00000 0x08860 RW 0x8000
2. page alignment off
mbed.elf file size 91792
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
LOAD 0x000114 0x00000000 0x00000000 0x00400 0x00400 R 0x4
LOAD 0x000514 0x00000400 0x00000400 0x00010 0x00010 R 0x1
LOAD 0x000528 0x00000410 0x00000410 0x0ab3c 0x0ab3c RWE 0x8
LOAD 0x00b068 0x20000000 0x0000af4c 0x008d0 0x008d0 RW 0x8
LOAD 0x00b938 0x0000b81c 0x0000b81c 0x00000 0x00004 RW 0x1
LOAD 0x00b938 0x1fff0000 0x1fff0000 0x00000 0x00400 RW 0x1
LOAD 0x00b938 0x200008d0 0x200008d0 0x00000 0x08860 RW 0x8
Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-03-29 05:48:30 +08:00
Sam Grove
cd7abc019f
Merge pull request #3996 from c1728p9/algo_generation
...
Check in algo generation code
2017-03-27 10:32:14 +01:00
0xc0170
424fd78161
flash: fix flash algo generated - protect with DEVICE_FLASH
2017-03-26 17:59:40 +01:00