Commit Graph

2287 Commits (bdc63c81a00f403d62d1533e705687a8eb6d8813)

Author SHA1 Message Date
Jimmy Brisson 8fb705d803 mbed dm: Check for missing payload and give a better error message
### Description

The error message when you invoke `mbed dm update prepare` without a payload
is particularly obtuse, and provides a user with no indication that the
payload is missing. This change makes that error message not stink.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Breaking change
2018-10-19 11:46:55 +01:00
Brian Daniels 652147d65b Remove references to GCC_CR from the rest of the tools 2018-10-19 11:46:55 +01:00
Brian Daniels 648f6d8bca Removing GCC_CR mention from settings.py 2018-10-19 11:46:55 +01:00
Jimmy Brisson 32031fc008 Export, nb: Use same path for cpp as the rest of the tools
### Description

The netbeans exporter was being inconsistant with it's invocation of
the C pre-processor on the linker script: the C pre-processor was always
invoked from `$PATH` where as the rest of the tools were invoked as
configured by the tools. This changes the invocation of CPP to match the
rest of the tools: heed the conifguration.

Fixes https://github.com/ARMmbed/mbed-cli/issues/663

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Breaking change
2018-10-19 11:46:55 +01:00
Jimmy Brisson 66edc69d64 Convert to a set in win2unix 2018-10-19 11:46:55 +01:00
adbridge 564eb9f8e0 Remove mbed-os-example-client
This example is now deprecated and as such needs to be removed from
ci test compilation.
2018-10-19 11:46:55 +01:00
Jimmy Brisson 6772e097ac 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-10-19 11:46:55 +01:00
Cruz Monrreal II cdfefd9d0c Enabled the removal of a trailing slash when sourcing examples from examples.json 2018-10-19 11:46:55 +01:00
Jimmy Brisson fffbab143c Avoid assigning self.libraries 2018-10-19 11:46:55 +01:00
Jimmy Brisson 0a362ef33c Update remaining default_lib usage in arm compiler 2018-10-19 11:46:55 +01:00
Jimmy Brisson 6d7494732b Tools: Fix Microbit releases
### Description

I noticed that there was quite a bit missing from the mbed2 release of
the microbit today. That's because the microbit uses ARM by default and
the GCC_ARM small library. The release script was trying to release for
ARM using scan rules for uARM. Turns out we're stuck with 2 configuration
parameters for the same thing: `default_lib` for GCC and `default_toolchain`
for ARM. Dang

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Breaking change
2018-10-19 11:46:55 +01:00
Andrew Leech 0271b33d0f tools/utils: Fix issue with loading json files as ascii on python3 linux 2018-10-19 11:46:55 +01:00
Yossi Levy 8f95eb5d8c Adding back blockdevice example after removing it for PR #7774. Target should be K64F 2018-10-19 11:46:55 +01:00
Jimmy Brisson a191140852 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-19 11:46:55 +01:00
Jimmy Brisson b44bf98b77 tools: Make "file" key in notifications consistant
### Description

2 calls to `notify.cc_verbose` used the a FileRef object in place of
the file's name. Other calls to `notify.cc_info` would use just the
file name. This PR changes these 2 calls to be consistant with the rest.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Breaking change
2018-10-19 11:46:55 +01:00
Jimmy Brisson 00f93471f3 tools, NRF51-post-build: Use paths to hex files
### Description

The NRF51 post build hook finds it's hex files using the Resources
object. This PR fixes the corner case where the hex files within a
project have a name!=path (This really only happens online).

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Breaking change
2018-10-19 11:46:55 +01:00
bcostm 9adc6635a0 STM32: add missing IAR exporters 2018-10-19 11:46:55 +01:00
Jammu Kekkonen c70943b544 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-10-19 11:46:55 +01:00
Andrew Leech 47c14328cd 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-10-19 11:46:55 +01:00
Jenny Plunkett 384257d49c Remove reference to "mBed"
Removed another reference to "mBed"

Another "mBed"
2018-10-19 11:46:55 +01:00
Juhani Puurula 95365844db Enabled trace, added KW24D default driver 2018-10-08 15:29:18 +01:00
Juhani Puurula 7e2bc492ee Renamed MAC tester config 2018-10-08 15:29:18 +01:00
Juhani Puurula 360ba9e392 Added nanostack mac tester and testcases 2018-10-08 15:29:18 +01:00
Russ Butler 964b77ce1e Rename device option STCLK_OFF_DURING_SLEEP
Rename STCLK_OFF_DURING_SLEEP to SYSTICK_CLK_OFF_DURING_SLEEP to avoid
confusion with the STmicroelectronics.
2018-10-08 15:29:18 +01:00
Jenny Plunkett 1c5b343fd8 Fix typos 2018-10-08 15:29:18 +01:00
Jenny Plunkett 55b5d6cb7e Added LPC1769 template file for MCUXpresso 2018-10-08 15:29:18 +01:00
bcostm c61595f8be NUCLEO_L4R5ZI: remove IAR exporter
The STM32L4R5ZI device has been added in IAR V8.20.1

Remove the IAR exporter until IAR V8 is supported on mbed.
2018-10-08 15:18:50 +01:00
bcostm a60399cd05 NUCLEO_L4R5ZI: update iar and sw4stm32 exporters 2018-10-08 15:18:50 +01:00
Cruz Monrreal II 8732fdb33b Modified version mismatch msg to be warning instead of error 2018-10-08 15:18:50 +01:00
Cruz Monrreal 3fd8a31327 Removed mbed-os-example-nfc-EEPROM from examples.json
Last thing blocking 5.10.1 release. Example will need to be fixed before it can be brought in.
2018-10-08 15:18:50 +01:00
Cruz Monrreal 0bdfc35fb1 Remove block device example in the short term 2018-10-08 15:18:50 +01:00
Cruz Monrreal 16b1063839 Replace storage example targets from K64F to K82F
Suggested here: https://github.com/ARMmbed/mbed-os/pull/8246#issuecomment-425199620
2018-10-08 15:18:50 +01:00
Cruz Monrreal 2bbfc4ff28 Removed trailing slashes in NFC examples URL
This apparently breaks the examples.py script.
2018-10-08 15:18:50 +01:00
Cruz Monrreal ac1f9d1e5a Restricted nfc example to two targets 2018-10-08 15:18:50 +01:00
adbridge 45e90ddc38 Add back examples updated for mbed-os-5.10
While feature changes were being added to mbed-os a number of
examples were removed from this list due to incompatibility issues.
This PR adds those examples back in:
Filesystem,
Blockdevice,
Mesh-minimal,
Bootloader.

This PR also adds in the new NFC example.
2018-10-08 15:18:50 +01:00
zzw 50d73e59ef rtl8195am lib updates
1, rtl8195am lib updates. Preparation for the low power features.
2018-10-08 15:18:50 +01:00
Kevin Bracey 62a55a6423 Remove IAR assembler macros containing quotes
IAR assembler 7.80 has some problems handling difficult macros, leading
to immediate exit with return value -11.

In particular, a URL string has been causing problems, presumably due to
the "//" resembling a comment.

A previous escaping workaround in 0d97803 seemed to work, but the crash
has still been seen with a particular target.

Previous creation of the extended command line file for the IAR
assembler was stripping quotes from macros. This rendered the resulting
definitions for string-containing macros incorrect, which means that we
can assume no assembler code is currently relying on them.

Therefore, as a precautionary measure to avoid the crash, simply remove
all macros containing strings when creating them for IAR. This
apparently clears the crashes seen during testing of
https://github.com/ARMmbed/mbed-os/pull/8023
2018-10-08 15:18:50 +01:00
Steven a518ff9e8e Supply default test config for TB_SENSE_1 as well 2018-10-08 15:18:50 +01:00
Steven 92cb4fe6b7 Hotfix for PR #7778
TB_SENSE_12 would have been left behind by the changes in #7778. This commit implements the changes in mbed to allow targets to provide a default network interface for Silicon Labs targets.
2018-10-08 15:18:50 +01:00
Olli-Pekka Puolitaival 31193dbd92 Move exception earlier 2018-10-08 15:18:50 +01:00
Olli-Pekka Puolitaival b57c9d3aff Check that TEST_APPS folder exists 2018-10-08 15:18:50 +01:00
Olli-Pekka Puolitaival 557f38e708 Move exception in two lines that traceback looks better 2018-10-08 15:18:50 +01:00
Olli-Pekka Puolitaival 1fb99b7a53 Py3 support back. Reverted accidentially in icetea changes rebase 2018-10-08 15:18:50 +01:00
deepikabhavnani 3413b3ee8d Align to CMSIS defines for Non-secure
CMSIS updated the __DOMAIN_NS define to DOMAIN_NS. Update the define
in existing code for non-secure part.
2018-10-08 15:18:50 +01:00
Jimmy Brisson a3d59a956d `mbed dm`: Remove references to internal script from help
### Description

Now that we are delegating the help text to `device_managment.py`,
it should print out help as if it's invoked with `mbed device-management`.
This PR changes the argument parser and the help text to do just that.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Breaking change
2018-10-08 15:18:50 +01:00
rklaassen d88d19e620 Added ARM Permissive Binary License to MTS bootloaders 2018-10-08 15:18:50 +01:00
Jimmy Brisson 8c677fc9a1 SImplify linkerscirpt usage
Avoids assigning to things that we can't assign
2018-10-08 15:18:50 +01:00
TTornblom fb7c802a8c IAR: Fix for #7662, only massage the error decode URL for the IAR .xcl file. 2018-09-17 21:42:55 -05:00
Olli-Pekka Puolitaival fd02bbb3dd Fix icetea run in case that user has different boards connected same time 2018-09-17 21:42:55 -05:00
Olli-Pekka Puolitaival 2ab73d2ae4 Fix tests 2018-09-17 21:42:55 -05:00