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
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
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
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
Jimmy Brisson
5795f5326e
Allow missing "bootloader_supported" key
2018-06-28 10:36:18 -05:00
Jimmy Brisson
2a9923f86e
Skip invalid undefined errors
2018-06-28 10:26:00 -05:00
Jimmy Brisson
12f490fa02
Make sure that there is always a config_errors member
2018-06-28 10:26:00 -05:00
Jimmy Brisson
c380304b93
Persist config errors until validation occurs
2018-06-28 10:26:00 -05:00
Cruz Monrreal
95d2b3d55c
Merge pull request #7133 from OpenNuvoton/nuvoton_support_tz_partition
...
Override ROM/RAM start/size for TrustZone targets
2018-06-21 17:49:47 -05:00
Jimmy Brisson
52e640fc1d
Add Rom config info getter and rom defines
...
* MBED_ROM_START = start of current rom (independent of BL modes)
* MBED_ROM_SIZE = size of current rom (independent of BL modes)
2018-06-20 10:47:04 -05:00
Jimmy Brisson
92abbb7599
Use memories passed in when getting memory specs
2018-06-13 09:33:39 -05:00
Jimmy Brisson
8e26e2c198
Skip second header when every bl config paramater used
2018-06-12 09:02:14 -05:00
Jimmy Brisson
09cdc0631d
Move from tc constructor to config vars
2018-06-08 09:59:19 -05:00
ccli8
0cee003bd9
Fix flash start/size in bootloader related build
...
This fix relies on target configuration options (mbed_rom_start/mbed_rom_size) defined
to override CMSIS pack or no CMSIS pack.
This is useful for a target which:
1. Doesn't support CMSIS pack, or
2. Supports TrustZone and user needs to change its flash partition
2018-06-06 09:45:44 +08:00
Ron Eldor
23ba8bc1f5
Change Cryptocell target to a feature
...
Change the Cryptocell310 target to `FEATURE_CRYPTOCELL310`
2018-05-21 13:40:43 +03:00
Martin Kojtal
42d77ecd13
Merge pull request #6658 from theotherjimmy/lib-override-target
...
Allow library configs to override target configs
2018-04-19 17:41:34 +02:00
Jimmy Brisson
7a6f2e485a
Use passed in target data everywhere when doing lib config
2018-04-18 09:12:49 -05:00
Jimmy Brisson
5b83f21cec
Return correct configuration dict
2018-04-18 09:09:29 -05:00
Cruz Monrreal
934101ecf6
Merge pull request #6592 from cmonr/py3-tools-port
...
Updates tools to be runnable in Python 3
2018-04-17 15:55:15 -05:00
Jimmy Brisson
0e5cb66ca5
Allow library configs to override target configs
2018-04-17 15:48:55 -05:00
Cruz Monrreal II
85ce95d0ff
Modified error formatting to remove unicode character.
...
jsonschema's error.message returns either u' or ' in strings depending on the python version.
2018-04-10 15:19:34 -05:00
Jimmy Brisson
f34feddaa2
Error on invalid mbed_lib JSON
2018-04-05 14:34:00 -05:00
Jimmy Brisson
24c7b1a61a
Move Mbed 5 support check so that it affects the exporters
2018-03-29 14:05:23 -05:00
Jimmy Brisson
67e76f3a5e
Allow _ and () in identifiers in macros
2018-03-06 11:12:56 -06:00
Jimmy Brisson
6633fbca68
Print array indexes correctly in schema errors
2018-03-06 11:12:22 -06: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
Jimmy Brisson
477b947b22
Improve json schema validation errors
2018-02-28 14:39:28 -06:00
Jimmy Brisson
9f99330be6
Allow overriding offsets with "app_offset" and "header_offset"
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
Jimmy Brisson
4c47f21cac
Fill header in application
2018-02-20 11:45:32 -06:00
Jimmy Brisson
b2c71c0fce
Accept header configuration and reserve space
2018-02-20 11:45:32 -06:00
Cruz Monrreal
e9fddb6eee
Merge pull request #6017 from theotherjimmy/bl-nonzero-rom
...
Correct auto-sizing last region of bl
2018-02-07 15:56:43 -06:00
Jimmy Brisson
9c3b489bf6
Correct auto-sizing last region in bl
2018-02-05 14:00:12 -06:00
Jimmy Brisson
c93a2bfa4c
Python2+3: Use absolute import where possible
2018-02-05 11:07:37 -06:00