Senthil Ramakrishnan
7490b1c87f
Api tests modification and uLib related fixes
2019-02-28 11:55:21 -06:00
Senthil Ramakrishnan
50eb4f9da8
Build tools changes to support AC6 and AC5
2019-02-28 11:55:21 -06:00
Cruz Monrreal
e77f03cfbc
Merge pull request #9317 from naveenkaje/tools_bootloader_script
...
tools: support cases where bootloader is in chunks
2019-02-26 22:49:42 -06:00
Deepika
1ad23433f5
Remove IAR from required toolchains list
2019-02-26 10:26:13 -06:00
Naveen Kaje
4cc21820bb
tools: support cases where bootloader is in chunks
...
Support the requirement where bootloader can be in chunks and enable
placing the application at a particular offset specified by config.
With FEATURE_BOOTLOADER support, the bootloader can be placed at a
high address. Add support to the tools so that application can be
placed in the available space before the beginning of the bootloader.
2019-02-21 15:11:44 -06:00
Brian Daniels
434d86b08a
Ensure header CRC is written as unsigned int
2019-02-20 20:30:54 -06:00
Cruz Monrreal
b820ec8922
Merge pull request #9561 from theotherjimmy/test-resources
...
Tools changes for bare metal
2019-02-13 12:31:54 -06:00
Naveen Kaje
4393e4b82a
tools: check part size is not exceeding region size
...
If config is specified, check that part size is not
exceeding the region. Normally we now assume that
part.maxaddr() can be beyond end of rom.
2019-01-31 17:03:05 -06:00
Naveen Kaje
06dbd82d1f
tools: build_api: remove redundant initialization and fix spelling
2019-01-17 12:56:09 -06:00
Jimmy Brisson
c5a721c104
Test that libraries' source is excluded
2019-01-16 11:05:18 -06:00
Brian Daniels
9f340edbb2
uARM targets now build in correct ARM_MICRO directory
...
This is for OS2 testing. Previously, targets that were configured with
the option "default_toolchain": "uARM" would still build to a
TOOLCHAIN_ARM_STD directory. This fixes these targets to build into
TOOLCHAIN_ARM_MICRO.
2019-01-09 11:02:10 -06:00
Cruz Monrreal
78d6018ecc
Merge pull request #8745 from kfnta/feature-new-target-future-sequana-psa
...
Add new target future sequana PSA
2018-12-06 13:13:36 -06:00
Oren Cohen
c4c21d2d1f
Ignore PSA secure targets
2018-12-06 17:43:34 +02:00
Cruz Monrreal
a1625895c3
Merge pull request #8097 from JammuKekkonen/fix_bootloader_build_for_nrf52
...
Add support for nrf52_dk bootloader
2018-12-04 16:10:15 -06:00
Cruz Monrreal II
fca8877fea
Revert "Merge pull request #8788 from kaidokert/master"
...
This reverts commit d478d6bf80
, reversing
changes made to f9d07f373f
.
2018-11-30 00:06:05 -06:00
Cruz Monrreal
d478d6bf80
Merge pull request #8788 from kaidokert/master
...
Fix unsigned packing bug in merge_regions #8544
2018-11-29 10:22:18 -06:00
Oren Cohen
dd73fa689c
PSA SPM
...
* Intorduce PSA-SPM to mbed-os
* Add SPM tests (for PSA targets)
* Add PSA PRoT internal storage Secure implementation
* Integrate SPM into the boot proccess
* PSA manifest data generator
* Introduce PSA targets skeleton to mbed-os
* Add artifact delivery to the tools
2018-11-27 09:16:35 +02:00
kert
6815409fe7
Fix unsigned packing bug in merge_regions #8544
2018-11-17 17:57:46 -08:00
Naveen Kaje
38ce7b13e7
tools: fix up build_api padding logic and clean up unused code
...
Patch from the end of the first segment. Remove unused code.
2018-11-09 10:36:25 -06:00
Naveen Kaje
858a7a8321
tools: Update build_api
...
Rename loop varibles for better readability and
formatting changes.
2018-11-08 13:00:27 -06:00
Naveen Kaje
bd40457f27
tools: Update build_api padding method
...
Update the padding sequence so that the gaps
are padded after all the regions are merged.
This avoids overwriting active regions and
serializes the process.
2018-11-07 14:43:14 -06:00
Naveen Kaje
e28c260763
tools: update build_api and __init__ as per review comments
2018-11-04 19:47:06 -06:00
Naveen Kaje
2da8950b2a
tools: process bootloader chunks
...
NRF Softdevice hex file can be in chunks.
Make sure we account for the space where the bootloader resides
by including all the chunks within the end of rom marker. This will
clearly mark out the initial bootloader region.
2018-10-29 16:36:56 -05:00
Naveen Kaje
e877a8e0e5
build_api: remove unused import
...
Remove unused tempfile import.
2018-10-26 13:30:01 -05:00
Brian Daniels
b0264e3540
Adding file type for linker script arg in make script
2018-10-22 13:30:10 -05:00
Cruz Monrreal
46d717cf18
Merge pull request #8250 from theotherjimmy/fix-7723
...
Tools: Don't traceback on missing linker script
2018-10-22 11:30:50 -05:00
Jimmy Brisson
aa5d2afa4d
Stop shouting at users in error messages
2018-10-19 10:25:49 -05:00
Jimmy Brisson
ec72ce7787
Track supported information within toolchain clasess
2018-10-18 11:10:16 -05:00
Jimmy Brisson
4198ae620c
Tools: Restrict toolchains reported by mbed compile -S to official ones
...
### Description
The `mbed compile -S` command is suposed to indicate what targets
support what toolchains. The command was printing out things that
don't make sense, like `GCC_CR` and things that make sense, but are
not offiially supported yet, like `ARMC6`. This PR fixes all of that.
### Pull request type
[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Breaking change
2018-10-18 11:10:16 -05:00
Cruz Monrreal II
5d74b772ab
Merge branch 'remove_gcc_cr' of ssh://github.com/bridadan/mbed into bridadan-remove_gcc_cr
2018-10-11 13:18:49 -05:00
Martin Kojtal
4a0e2bdb31
Merge pull request #8330 from theotherjimmy/force-int-time
...
Tools: Fix Python3 + firmware header traeback
2018-10-09 10:31:26 -05:00
Cruz Monrreal
43cf16d0f1
Merge pull request #8167 from JammuKekkonen/change_update_format_to_binary
...
Change update file format to binary for all targets
2018-10-08 10:10:01 -05:00
Jimmy Brisson
8d63ef6060
Tools: Fix Python3 + firmware header traeback
...
### Description
Traceback:
```
Merging Regions
Filling region bootloader with mbed-cloud-client-example/mbed-os/features/FEATURE_BOOTLOADER/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/TARGET_FRDM/mbed-bootloader-k64f-block_device-sotp-v3_4_0.bin
Padding region bootloader with 0x9a4 bytes
Traceback (most recent call last):
File "mbed-cloud-client-example/mbed-os/tools/make.py", line 293, in <module>
ignore=options.ignore
File "mbed-cloud-client-example/mbed-os/tools/build_api.py", line 548, in build_project
merge_region_list(region_list, res, notify)
File "mbed-cloud-client-example/mbed-os/tools/build_api.py", line 423, in merge_region_list
_fill_header(region_list, region).tofile(header_filename, format='hex')
File "mbed-cloud-client-example/mbed-os/tools/build_api.py", line 380, in _fill_header
header.puts(start, struct.pack(fmt, time()))
struct.error: required argument is not an integer
```
reason: `time()` returns a float. So the fix is to force it to be an `int`.
### Pull request type
[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Breaking change
2018-10-04 11:56:18 -05:00
Brian Daniels
c12042a4ab
Remove references to GCC_CR from the rest of the tools
2018-10-02 10:51:54 -05:00
Jimmy Brisson
f8f5bc40f6
Tools: Don't traceback on missing linker script
...
### Description
The `mbed compile` would traceback when no linker script is found.
This PR changes that behavior to make that into a NotSupportedException,
which has decent user behavior.
Fixes #7723
### Pull request type
[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Breaking change
2018-09-25 12:52:25 -05:00
Olli-Pekka Puolitaival
55336b034d
Py3 support back. Reverted accidentially in icetea changes rebase
2018-09-19 13:59:28 +03:00
Jammu Kekkonen
49572d570a
Change update file format to binary to all targets
...
- Change the default file format to binary for all targets, even though some targets need hex as app format, updater always needs bin for now
- Unify the file name generation from generator side and usage side for the update bin
2018-09-18 12:13:29 +03:00
Jammu Kekkonen
c069cefbc8
Review fixes 2 for bootloader region generation
2018-09-17 15:56:34 +03:00
Jammu Kekkonen
4952e31b8b
Fix bootloader build region generation and add support for bootloaders with multiple segments, as required by NRF52 bootloader.
2018-09-12 09:30:48 +03:00
Cruz Monrreal
48c149b227
Merge pull request #7720 from jeromecoutant/PR_PRETTYTABLE
...
python scripts : table print with github policy
2018-09-06 22:29:30 -05:00
Olli-Pekka Puolitaival
e27a26eb9d
Icetea support
2018-08-31 11:51:57 +03:00
Cruz Monrreal
02c03204a6
Merge pull request #7714 from brianesquilona/feature_bootloader
...
Add BOOTLOADER feature
2018-08-24 19:30:21 -05:00
Jimmy Brisson
a7ddea78d7
Remove firmware header from update image
2018-08-22 09:08:12 -05:00
Olli-Pekka Puolitaival
6107769239
Fix build_data functionality with python 3
2018-08-13 12:15:21 +03:00
jeromecoutant
a42c73df1b
python scripts : table print with github policy
2018-08-07 15:14:27 +02:00
Cruz Monrreal
8755e56fd6
Merge pull request #7567 from theotherjimmy/managed-update-image
...
Tools: Generate update images with managed bl mode
2018-07-26 10:51:40 -05:00
Jimmy Brisson
76078f6a50
Include `-t ARM` support for v8m, armc6 targets
2018-07-25 11:48:14 -05:00
Jimmy Brisson
ac14e37a77
Correct result usage in reporting infra
2018-07-25 10:04:18 -05:00
Jimmy Brisson
69203d30f1
Create update images with managed bl mode
2018-07-20 10:53:00 -05:00
Jimmy Brisson
ae033da12f
Use mapping of core->arch ver. for tc picking
2018-07-19 10:55:35 -05:00
Jimmy Brisson
c030c6a52b
Use `-t ARM` for v8m targets
...
And pick the correct compiler
2018-07-19 10:48:35 -05:00
Cruz Monrreal II
a070e350ec
Removed extra ARMc6 instance in unique mapping
2018-07-18 14:10:42 -05:00
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
750a2ace64
Use paths explicitly in copy from mbed libs
2018-07-16 14:12:00 -05:00
Jimmy Brisson
91e77f16cd
Import FireRef before using it
2018-07-16 14:12:00 -05:00
Jimmy Brisson
545553b6bc
Rewrite test detection to avoid relying on "inc_dirs"
2018-07-16 14:11:08 -05:00
Jimmy Brisson
8166889885
Compute inc_dirs from headers
2018-07-16 14:11:08 -05:00
Jimmy Brisson
001c2d3b3b
Revisit Mbed 2 building
...
It's much cleaner now
2018-07-16 14:11:08 -05:00
Jimmy Brisson
7a26cd8da8
Use paths in linking
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
06f3fca6cf
Correct the _only_ detect_duplicates call
2018-07-16 14:11:08 -05:00
Jimmy Brisson
9326386daf
Switch to Resources in build_api and tests
2018-07-16 14:11:08 -05:00
Jimmy Brisson
361fc65f08
Allow missing toolchain parameter to get_config
2018-07-16 14:11:08 -05:00
Jimmy Brisson
4c7cf21feb
Require notifier in resources
2018-07-16 14:10:21 -05:00
Jimmy Brisson
7c42302854
Update test builder to use new resources
2018-07-16 14:10:21 -05:00
Jimmy Brisson
87146cd66a
Cleanup and reduced scanning
2018-07-16 14:10:21 -05:00
Jimmy Brisson
519e338667
Rework export resource scanning
2018-07-16 14:10:21 -05:00
Jimmy Brisson
2d8cf737e4
Move resource scanning into it's own module
2018-07-16 14:10:21 -05:00
Jimmy Brisson
9968b547d9
Allow ARMC6 only mbed 5 releases
2018-07-16 08:42:55 -05:00
Jimmy Brisson
51276a66b0
Update compiler check to allow only v6 for OS 5
2018-07-12 18:01:40 +08:00
Jimmy Brisson
6d42bd31c6
Tools: Correct release version "parsing" for py3
2018-07-11 09:46:03 -05:00
Cruz Monrreal
fab08498f8
Merge pull request #7277 from theotherjimmy/error-on-unknown-config
...
Tools: Persist config errors until validation occurs
2018-07-05 10:36:35 -05:00
jeromecoutant
e17b1df13d
build_api.py : add comment about separate_names
2018-06-29 09:30:07 +02:00
Jimmy Brisson
2a9923f86e
Skip invalid undefined errors
2018-06-28 10:26:00 -05:00
Cruz Monrreal
8baa8c5997
Merge pull request #7353 from jeromecoutant/PR_BUILDOS2
...
build_api script : separate PeripheralPins.o
2018-06-28 10:08:42 -05:00
jeromecoutant
eba9fb1f8f
build_api script : separate PeripheralPins.o
2018-06-27 17:15:37 +02:00
Jimmy Brisson
6f54a8fdd7
Check version of Mbed CLI compile
2018-06-18 14:03:09 -05:00
Cruz Monrreal
80dde0b953
Merge pull request #7092 from cmonr/py3-in-windows
...
Additional fixes for running Python 3 in Windows
2018-06-04 21:45:55 -05:00
Cruz Monrreal II
f689ace3e3
Removed extraneous file open
2018-06-04 12:02:49 -05:00
Cruz Monrreal
78d9c4f330
Merge pull request #6582 from theotherjimmy/memap-flamegraph
...
Implement zoomable html-flamegraph memap output
2018-06-04 10:48:08 -05:00
Cruz Monrreal II
cdbae994d1
Modified IntelHex tofile parameter to use path.
...
Py3 open(...) returns a BufferedReader instead of a file.
2018-06-04 09:21:43 -05:00
Cruz Monrreal
0fd5447ff7
Merge pull request #6885 from theotherjimmy/fix-startaddr-conflict
...
BL mode: Prevent jump address conflicts
2018-05-14 16:16:34 -05:00
Jimmy Brisson
4ad8ce073a
Prevent jump address conflicts in bootloader modes
2018-05-11 11:23:01 -05:00
Andrew Leech
3b79b3f65e
add `--ignore` argument to `mbed compile` & `mbed export` commands
2018-05-11 14:00:01 +10:00
Andrew Leech
badd753466
mbed test: add argument `--ignore` to allow passing in extra mbedignore args
...
In particular this allows ignoring a project main.cpp file when running unit tests
2018-05-09 10:02:02 +10:00
Cruz Monrreal
53d3c4344f
Merge pull request #6781 from theotherjimmy/refactor-notify
...
tools: Refactor notification API
2018-05-07 10:48:48 -05:00
Jimmy Brisson
c186c3ce86
Use mocked notifier for individual tests
...
That way we separate the collection of notifications from everything else
2018-05-03 10:06:47 -05:00
Jimmy Brisson
0f7e900417
Pass app config to get config
...
This corrects a bug which would manifest as --app-config not having
much of an affect on test builds (not the first libary bulid)
2018-05-02 09:38:44 -05:00
Jimmy Brisson
fcf7dbf4c6
Use notification API in BL modes
2018-04-26 09:54:01 -05:00
Jimmy Brisson
85e33b4143
Eliminate silent option from build_project
...
It's now all handled by the notifier
2018-04-26 09:40:30 -05:00
Jimmy Brisson
72beee7e90
Refactor notification logic into it's own class
2018-04-26 09:04:26 -05:00
Jimmy Brisson
bfceb1050d
Implement zoomable html-flamegraph memap output
2018-04-09 16:33:32 -05:00
Jimmy Brisson
6cf2efa794
Prevent compiling with unsupported compilers
2018-04-04 14:02:13 -05:00
Jimmy Brisson
24c7b1a61a
Move Mbed 5 support check so that it affects the exporters
2018-03-29 14:05:23 -05:00
Laurence de Bruxelles
ce6bd9defc
Allow build profiles to omit language entries
2018-03-05 15:21:08 +00:00
Anna Bridge
8f5b857747
Merge pull request #5950 from theotherjimmy/header-config
...
Reserve and Render header in managed BL mode
2018-03-01 16:25:18 +00:00
Christopher Haster
011e018f52
Revert "Added pretty bar printing for compile output"
...
This reverts commit 471d99c68f
.
2018-02-22 22:07:22 -06:00
Jimmy Brisson
9f99330be6
Allow overriding offsets with "app_offset" and "header_offset"
2018-02-20 11:45:32 -06:00
Jimmy Brisson
deca33ff81
Calculate digests with header up to their start address
2018-02-20 11:45:32 -06:00
Jimmy Brisson
5b2d7a27d2
Require endianness specification for ints > 8 bits
2018-02-20 11:45:32 -06:00