Commit Graph

115 Commits (0e37fc206c339e5590ee1d5d47e7ca52bd84ccd2)

Author SHA1 Message Date
Brian Daniels dbbf336949 Avoid KeyError Exceptions.
Co-Authored-By: theotherjimmy <theotherjimmy@gmail.com>
2019-03-04 11:24:47 -06:00
Jimmy Brisson 4af70dcaa1 Use updated CPM info in config system 2019-03-04 11:24:47 -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
Cruz Monrreal b820ec8922
Merge pull request #9561 from theotherjimmy/test-resources
Tools changes for bare metal
2019-02-13 12:31:54 -06:00
Jimmy Brisson 5b96cbfa34 Fix typo in config schema definitons 2019-02-11 08:45:35 -06:00
Michael Schwarcz 9013dc8e5d
Update tools/config/__init__.py
Co-Authored-By: orenc17 <oren.cohen@arm.com>
2019-02-09 13:55:32 +02:00
Oren Cohen e162d69f56 Make delivery_dir relative to the json it was declared in 2019-02-07 19:13:01 +02:00
Oren Cohen 44c1a2cea3 Make delivery_dir relative to mbed_os root 2019-02-07 14:56:57 +02:00
Oren Cohen 04a22a2e69 Improvement to artifact delivery method
A target can define a delivery directory instead of the default option
2019-02-06 15:26:59 +02:00
Jimmy Brisson 5335faf6c2 Pass only libraries to include_libaries 2019-01-31 11:04:47 -06:00
Cruz Monrreal II de4b7607a0 Simplified max/min condition 2019-01-28 14:01:48 -06:00
Cruz Monrreal II d9add3447d Added None check for min in config tools 2019-01-28 12:59:43 -06:00
Jimmy Brisson 5cf07df264 Filter libs with absolute paths
as the config system uses only abspaths
2019-01-16 13:32:52 -06:00
Jimmy Brisson 4fbbac9acd Use name definition in requires definition 2019-01-16 13:30:10 -06:00
Jimmy Brisson 0b64c9cbbf Filter resources by included libraries 2019-01-16 11:15:13 -06:00
Jimmy Brisson 7a360efe8a Raise config error when missing dependencies 2019-01-15 17:48:08 -06:00
Jimmy Brisson 79eccd1733 Resolve library dependencies 2019-01-15 17:28:12 -06:00
Jimmy Brisson 243b079d2b Pass requires in mbed_app.json test 2019-01-15 17:05:43 -06:00
Cruz Monrreal 442cbba141
Merge pull request #7799 from bridadan/remove_allowed_features
Removing feature names from the "allowed feature" config list.
2018-12-19 13:37:59 -06:00
Brian Daniels 0af1a4bcd2 Removing feature names from the "allowed feature" config list.
These features have all been removed from Mbed OS in the past. This
prevents their use in the future.
2018-12-07 10:02:42 -06:00
Brian Daniels fa4ead048d Config parameters override macros 2018-12-06 11:19:24 -06:00
Brian Daniels 5957ffd306 Ensure macros and parameters with the same name are not repeated.
This covers the case when a macro is set with the same name as a
parameter. Previously, the macro would be repeated on the command line,
which causes certain toolchains to break (ex. IAR assembler). Now the
config system will override the parameter's value with the macro's
value.
2018-12-06 10:31:38 -06: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
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
Martin Kojtal 5b42e2886f
Merge pull request #8607 from aashishc1988/ram_rom_fetch
Fetch ram/rom start/size
2018-11-22 10:49:50 +01:00
Martin Kojtal 13b60c2991
Merge pull request #8673 from kegilbert/config-range-limits-dev
Add Mbed Configuration Option Range Limits
2018-11-19 13:14:02 +00:00
Brian Daniels 6cab1e0018 Fixing traceback when running mbed test 2018-11-16 15:28:50 -06:00
Aashish chaddha 0c594a42dc The check for managed bootloader support should be in regions and we need a try/catch when we call it.
Moved "bootloader_not_supported" check to where it was and handle that exception at only one place.

Removed ram/rom size info for realtek from targets.json. THe info we have is not correct.

was Not handling config exceptions from regions and ram_regions property

adding rom-ram info for REALTEK_RTL8195AM
2018-11-15 15:28:14 -06:00
kegilbert 9116b9921b Remove redundent line 2018-11-15 11:44:53 -06:00
Brian Daniels 5ec1d7c221
Update tools/config/__init__.py
Co-Authored-By: kegilbert <K.Gilbert.CH@gmail.com>
2018-11-15 11:43:41 -06:00
kegilbert 9d9cd84942 Refactor logic to improve readability
Move JSON accepted value ranges back to JSON array
2018-11-14 18:31:59 -06:00
kegilbert 7a436660e9 Handle None and hex values in string format 2018-11-13 16:12:35 -06:00
Aashish chaddha 1627968bcb Missed one change to convert into right data type 2018-11-12 13:37:27 -06:00
Aashish chaddha 3956451c07 Fixing some corner cases
1. Adding SRAM in available ram
2. If the target doesn't exist in cmsis but targets.json, handle accordingly and raise apt exceptions where needed.
3. If no sram is provided, raise exception
2018-11-12 13:28:01 -06:00
kegilbert b53738750f Add guard against accepted and range definitions.
Minor reformat of error text on accepted value messages
2018-11-08 19:00:39 -06:00
kegilbert a834794b53 Add range specifers for config values 2018-11-08 10:18:30 -06:00
Aashish chaddha 27f20c7478 Fetch RAM/ROM information from CMSIS pack and add as defines
RAM/ROM memory data of target is required for statistics and linker
files, goal here is to fetch maximum 4 RAM/ROM regions from CMSIS pack
and make them available for C/C++/Linker flags as defines
2018-11-07 10:20:28 -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
Cruz Monrreal 6e8d9f0099
Merge pull request #8270 from theotherjimmy/fix-7392
Tools: Ensure vtor reserved bits are all 0
2018-10-11 10:12:25 -05:00
Simo Sillankorva fac5ff45ed Remove max_app_addr checking from .hex
* Remove max_app_addr logic from tools/config/__init__.py as it was not working properly with some of the .hex files.
2018-10-05 03:15:24 -07:00
Jimmy Brisson 7a97f480f8 Tools: Ensure vtor reserved bits are all 0
### Description

The VTOR reserves the lowest 7 bits. This PR changes the round up
behavoir of the application offset to make sure that the address used
for the in-flash vector table always ends in 7 0's.

Fixes #7392

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Breaking change
2018-09-27 10:04:19 -05:00
Andrew Leech 340f0a6a57 Ensure target bootloader settings can be overridden in mbed_app.json
Values like `target.mbed_rom_start` were being replaced by None and then ignored.
2018-09-19 15:35:13 +10:00
Jammu Kekkonen c069cefbc8 Review fixes 2 for bootloader region generation 2018-09-17 15:56:34 +03:00
Jammu Kekkonen ae4b67e6b2 Review fixes for bootloader region generation 2018-09-13 12:17:00 +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
Brian Esquilona 4db8a106bf Added BOOTLOADER feature, copy bootloader binaries and LICENSE into mbed OS repository for supported targets 2018-08-21 10:09:28 -05:00
Jimmy Brisson fb42bb0439 Stabilize macro ordering in mbed_config.h 2018-07-30 11:05:32 -05:00
Jimmy Brisson de913e1ea2 Improve resources API to include more use cases 2018-07-16 14:11:08 -05:00
Jimmy Brisson 2d8cf737e4 Move resource scanning into it's own module 2018-07-16 14:10:21 -05:00