Commit Graph

210 Commits (654f4d93a4ce7b3fd0c76cc9737f391a6d47ab34)

Author SHA1 Message Date
Senthil Ramakrishnan 4e7d34bbb6 Review fixes for uvision exporter,build_api and arm.py 2019-02-28 12:00:11 -06:00
Senthil Ramakrishnan 200829537f Remove unwanted spaces 2019-02-28 11:58:26 -06:00
Senthil Ramakrishnan 8624fdf0a7 Build metadata check added 2019-02-28 11:56:30 -06:00
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