Commit Graph

2326 Commits (mbed-os-5.10)

Author SHA1 Message Date
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
Olli-Pekka Puolitaival 653d191ed3 Include run_icetea unittests also in pytest run 2018-09-17 21:42:55 -05:00
Jimmy Brisson 6d5b70f39b `mbed dm`: Accept api key and host on the command line
### Description

`mbed dm` will now accept the Pelion Device Management API Key and
Host on the command line with the following switches:
 * `-a`, `--api-key` accepts the API Key
 * `-S` (note capitol), `--server-address` accepts the Host

 This is consistant with manifest tool parameters
 Resolves https://github.com/ARMmbed/mbed-cli/issues/745

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Breaking change
2018-09-17 21:42:55 -05:00
Brendan Moran 3e13db4f55 Remove trailing reference to user.full_name 2018-09-17 21:42:54 -05:00
Brendan Moran 2a724f8102 BUGFIX: Remove account management API calls
Developer API keys don't have the privileges required to get information about their owners. To correct for this, remove user name reporting and use the API key `owner_id` directly.

Fixes: IOTAUTH-1686
2018-09-17 21:42:54 -05:00
Jammu Kekkonen 564483eccf Fix memory reservation for Softdevice in NRF52_DK 2018-09-11 15:04:48 +01:00
jeromecoutant 1caf262855 python scripts : table print with github policy 2018-09-11 15:04:48 +01:00
Janne Kiiskila 87713d9eab IOTCORE-389 - bring back legacy alignment for Arm C6
Quite a few of the scatter files are not (yet) aligned to 8-byte
boundaries and therefore the removal of legacy alignment feature
(which is under deprecation warning, but it actually not YET
deprecated) broke quite a few builds to this error:

Error: L6244E: Exec region RW_IRAM1 address (0x200001ac) not aligned on a 8 byte boundary.

We must bring this option now back to fix the builds.

This option to ld (--legacyalign) can only be removed once all of
the scatter files have been fixed.
2018-09-11 15:04:48 +01:00
Martin Kojtal 1eab0723ba
Merge pull request #7745 from OPpuolitaival/icetea
Icetea support
2018-09-02 07:19:22 +02:00
Seppo Takalo 0456085567 Disable mesh networking on tests by default
Testing a mesh requires proper environment.
2018-09-01 12:40:42 -05:00
Seppo Takalo 1ef04796ee On KW24D and NCS36510 default to smaller Nanostack configuration
These boards do not fit the full Nanostack, so we need to select
6LoWPAN-ND as a default.
2018-09-01 12:37:46 -05:00
Seppo Takalo 56dda01368 TEMPORARY Skip building of examples that rely on drivers. 2018-09-01 12:37:31 -05:00
Cruz Monrreal 993c897b55
Merge pull request #7774 from yossi2le/sd-spif-to-mbed-os
Add default block device support (SD, SPIF and FLASHIAP)
2018-09-01 11:15:13 -05:00
Cruz Monrreal 00b7700be2
Merge pull request #7875 from c1728p9/feature_CMSIS_5_0b521765
Update CMSIS to 5.4.0
2018-08-31 11:31:37 -05:00
Olli-Pekka Puolitaival a58aa58730 Remove MAC tester related code 2018-08-31 11:59:11 +03:00
Jarno Lamsa 2edc5f0bfc Readme and help fixes 2018-08-31 11:56:52 +03:00
Olli-Pekka Puolitaival 4e38f73067 Fix after rebase 2018-08-31 11:56:52 +03:00
Olli-Pekka Puolitaival b4822c8631 Fix typo 2018-08-31 11:55:43 +03:00
Olli-Pekka Puolitaival 449ef92b4d Update licenses 2018-08-31 11:55:43 +03:00
Seppo Takalo a5088962e4 Use NanostackRfPhy::get_default_instance() for finding the driver (#2) 2018-08-31 11:55:42 +03:00
Juhani Puurula 5eb3456b6e Added test config for mac tester 2018-08-31 11:55:42 +03:00
Olli-Pekka Puolitaival ccf4416c70 Move test_suite.json ignore in project level 2018-08-31 11:54:40 +03:00
Olli-Pekka Puolitaival bf1781b005 Remove autoformatting 2018-08-31 11:52:30 +03:00
Olli-Pekka Puolitaival 3b3bed2406 Small fixes based on github comments 2018-08-31 11:52:30 +03:00
Olli-Pekka Puolitaival e27a26eb9d Icetea support 2018-08-31 11:51:57 +03:00
Cruz Monrreal b6f0ee2a72
Merge pull request #7844 from theotherjimmy/fw-update-integration
Implement device management subcommand
2018-08-30 22:40:52 -05:00
Cruz Monrreal 06a98e7dcf
Merge pull request #7778 from SeppoTakalo/provide_default_mesh
Fix MeshInterface::get_default_instance()
2018-08-30 16:11:00 -05:00
Seppo Takalo 4989650854 Don't provide default interface on NCS36510, won't fit testcases on IAR 2018-08-30 11:04:25 +03:00
Yossi Levy ff82bb8a0b Remove of mbed-os-example-mesh-minimal and mbed-os-example-bootloader from the compilation list. Those should be fixed and then set back in the example list 2018-08-29 15:09:36 +03:00
Yossi Levy ed8e170d15 Moving SD, SPIF and FLASHIAP into mbedos and refactoring features storage directory structure. 2018-08-29 12:01:11 +03:00
Cruz Monrreal 2e081dc7d0
Merge pull request #7644 from theotherjimmy/components
Tools: Scan for "components"
2018-08-28 17:55:01 -05:00
Cruz Monrreal 14319adf7a
Merge pull request #7792 from deepikabhavnani/fix_m33
Build tool fixes for Musca support
2018-08-28 10:09:28 -05:00
Seppo Takalo 7e23c229a3 Add 6LoWPAN and Thread test configuration 2018-08-28 11:29:59 +03:00
Jimmy Brisson e695a34f23 Add mbedignore behavior to test finding 2018-08-27 11:20:08 -05:00
Jimmy Brisson ff05e3ebd5 Refactor mbedignore behaivor into an object 2018-08-27 11:16:07 -05:00
Jimmy Brisson 4ef12ccdbc Culumative attirbutes always exist 2018-08-27 11:12:02 -05:00
Jimmy Brisson 88a5b263f0 Add tests from labeled directories 2018-08-27 11:12:02 -05:00
Jimmy Brisson 419761913a Add `COMPONENT_` defines 2018-08-27 11:12:02 -05:00
Jimmy Brisson a87d907268 Use labels keys instead of magic list 2018-08-27 11:12:01 -05:00
Jimmy Brisson 79ee1b8e02 Add "components" 2018-08-27 11:12:01 -05:00
Cruz Monrreal 543d6c2ecf
Merge pull request #7569 from theotherjimmy/uvision-armc6
Tools: Add Uvision6 exporter
2018-08-27 10:28:38 -05:00
Martin Kojtal 2dfd3beb62
Merge pull request #7758 from phyokyaw/master
Include user defined static lib files in the Linker object files paths
2018-08-27 10:38:40 +02:00
Russ Butler a62b312d0b Add details to importer script docs
Add an example showing how to run the importer and a note to indicate
that it must be run from the mbed-os directory.
2018-08-25 20:40:36 -05:00
Russ Butler a2a0ea70e2 Update cmsis_importer in prep for CMSIS 5.4.0
Reference the correct commits to pull in and remove commits related to
uVisor since these are no longer needed. Also add the missing file
cmsis_os1.c to cmsis_importer.json.

Below is detailed information on each commit added to cmsis_importer.json

CMSIS/RTX: Patch RTX4 to preserve osThreadDef compatibility
4360b7bbf8

CMSIS/RTX: Patch RTX so irq_cm4f.s files work with no FPU targets
cc2e0517e1

CMSIS/RTX: Allow overwriting mutex ops for ARMC
b88254809e

CMSIS/RTX: Pre-processor defines used for assembly
287121ffdc

CMSIS/RTX: Fix using FALSE/TRUE with preprocesor
1752803626

CMSIS/RTX: Reintroduce arm_math.h
6a6e3ac0eb

fixup
2018-08-25 20:40:35 -05:00
Cruz Monrreal 2f8e679183
Merge pull request #7592 from orenc17/remove_uvisor
Remove uVisor from mbed-os
2018-08-25 19:52:24 -05:00
Cruz Monrreal 5ffcc01be1
Merge pull request #7812 from mikaleppanen/greentea_def_interf
Update greentea tests to use default interface
2018-08-24 19:31:00 -05:00
Cruz Monrreal 02c03204a6
Merge pull request #7714 from brianesquilona/feature_bootloader
Add BOOTLOADER feature
2018-08-24 19:30:21 -05:00
Cruz Monrreal ce43f8b9d6
Merge pull request #7673 from bridadan/allow_memap_script_to_execute_alone
Fixing import paths of memap.py when excuted as a script
2018-08-24 19:30:05 -05:00
Jimmy Brisson c8f1e1f854 Escape quotes in uvision project file defines 2018-08-24 14:00:52 -05:00
Martin Kojtal 812c6d5c88
Merge pull request #7783 from maciejbocianski/feature-qspi_merging
merge QSPI feature branch
2018-08-24 10:50:18 +02:00
Cruz Monrreal 6c4d64c520
Merge pull request #7846 from theotherjimmy/gcc-distcc
Tools: Use Distcc when it's configured
2018-08-23 10:06:33 -05:00
Deepika ed58ff0405 Disabling DSP and FPU for Cortex-M33
Change shared by @Gabor Kertesz

Hard-fault on Musca was because of enabled floating point instructions,
disabling DSP and FPU.
2018-08-23 09:06:20 -05:00
Jimmy Brisson a7ddea78d7 Remove firmware header from update image 2018-08-22 09:08:12 -05:00
Oren Cohen 787317b7eb Remove uVisor from mbed-os 2018-08-22 16:36:59 +03:00
jeromecoutant 43258a8ff4 STM32 : add all QSPI pins in available targets 2018-08-22 15:02:08 +02:00
Martin Kojtal d719c9e1a6
Merge pull request #7762 from kaidokert/master
Add combined hex target to CMake
2018-08-22 14:05:53 +02:00
Jimmy Brisson 09ea2a3df9 Tools: Use Distcc when specified 2018-08-21 11:38:31 -05:00
Jimmy Brisson a6163cb14f Clean up formatting of device_management.py 2018-08-21 10:51:26 -05:00
Jimmy Brisson 93309cd134 Extend init to maybe create and always DL dev cert 2018-08-21 10:51:26 -05:00
Jimmy Brisson 563ee0d871 Implement device management subcommand 2018-08-21 10:51:26 -05:00
Jimmy Brisson ebb016e270 Create a "device-management" subcommand 2018-08-21 10:51:26 -05: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