Commit Graph

10157 Commits (77243ef46ba150b0a43fcd8b8ce0be467160ad60)

Author SHA1 Message Date
Christopher Haster 77243ef46b Filesystem: Revert deprecation of FileHandle
As identified by @hasnainvirk, @kjbracey-arm, the FileHandle and
FileBase serve two separate functions and their integration is
limiting for certain use cases.

FileLike is actually the redundant class here, but the multiple
inheritance it provides is used as a hack by the retargeting code
to get at the FileHandle implementation bound to the FileBase name.

It may make more sense for the FileBase to inherit from FileHandle,
(with perhaps a different name), but rather than explore the
possibility, this will just restore the previous hierarchy.
2017-03-14 11:02:34 -05:00
Anna Bridge cc58a7fb0c Merge pull request #3927 from TsungtaWu/master
[DELTA_DFBM_NQ620] Add RC calibration setting and revise mbed_overrides.c
2017-03-14 14:48:23 +00:00
Anna Bridge 63fb7bd58d Merge pull request #3931 from c1728p9/arm_pack_manager_improvements
Arm pack manager improvements
2017-03-14 14:47:35 +00:00
Anna Bridge 5495e24793 Merge pull request #3917 from TomoYamanaka/master
Fix  mistake register setting in serial_format()
2017-03-14 14:42:21 +00:00
Anna Bridge ae10ca8787 Merge pull request #3895 from theotherjimmy/find-exec-in-path
Use PATH env variable when gcc found in PATH
2017-03-14 14:41:32 +00:00
Anna Bridge 213626d83a Merge pull request #3893 from jeromecoutant/PULL_REQUEST_CUBE_UPDATE_F7_V1.6.0
[STM32F7] Update STM32 Cube version v1.6.0
2017-03-14 14:40:38 +00:00
Anna Bridge 538e1600b4 Merge pull request #3869 from radhika-raghavendran/master
NCS36510: Default range changed from 0 to 950mV - ADC
2017-03-14 14:39:21 +00:00
Anna Bridge 88fb819e25 Merge pull request #3862 from c1728p9/thread_start_assert
Trap earlier when a Thread instance is re-used
2017-03-14 14:36:39 +00:00
Anna Bridge 693f14ee97 Merge pull request #3827 from betzw/betzw_wb_i2c
Correct return values for `I2C::write(int, const char*, int, bool)`
2017-03-14 14:33:42 +00:00
Anna Bridge e743a26f94 Merge pull request #3691 from adustm/STM_aes_f439zi
[TLS / hw acceleration] AES ECB for NUCLEO_F439ZI
2017-03-14 14:32:25 +00:00
Russ Butler cefdce2a37 tools: fix usage of aliases.json
Load aliases.json from mbed-os rather than from a temporary
directory.
2017-03-13 18:05:28 -05:00
Russ Butler 47ee9677e5 tools: Rebuild index.json and aliases.json
Rebuild the json files used by arm-pack-manager now that a bug in
version selection has been fixed.
2017-03-13 16:32:57 -05:00
Russ Butler fa38fbb7b3 tools: fix package version in arm pack manager
Use python's LooseVersion to get the correct version.
2017-03-13 16:32:53 -05:00
Russ Butler 44bc754be5 tools: Allow all flash algos to be retrieved
Add an 'all' parameter to get_flash_algorthim_binary. When set
an enumerator of all flash algorithms is returned. rather than just
the first flash algorithm.
2017-03-13 16:32:49 -05:00
TsungtaWu 20411ec9bc [DELTA_DFBM_NQ620] Add RC calibration setting and revise mbed_overrides.c
In targets.json, add lf_clock_rc_calib_timer_interval and
lf_clock_rc_calib_mode_config setting which are essential when using BLE
In mbed_overrides.c, create valuables instead of doing printf, those
valuables are intended to be used for debugging in runtime.
2017-03-11 18:55:53 +08:00
Sam Grove 684fcc1b13 Merge pull request #3864 from geky/fix-size_t-mbed-2
Fix mbed 2 builds
2017-03-10 16:34:02 -06:00
Jimmy Brisson a937ee00f2 Fix toolchain path names in Mbed 2 builds
I accidentally broke only uARM mbed 2 builds. Here is the story: When
scanning for resources, toolchains look for any `TOOLCHAIN_<classname>`
folders to include. These `<classname>`s mostly match the name passed in
on the command line with one exception: `uARM` on the command line maps
to `ARM_MICRO` the class. This would not be a problem except for the bug
that I introduced in a prior commit. The bug is that the mbed2 library
builds will use the name passed in on the command line to construct
`TOOLCHAIN_<cli-name>`. This will not match when scanning.

I fixed it by translating the `<cli-name>` into the `<classname>`.
2017-03-10 11:08:56 -06:00
Christopher Haster 51b58b1ad4 Filesystem: Restored LocalFileSystem tests for mbed 2 2017-03-10 11:04:05 -06:00
Christopher Haster 000894d477 Fixed size_t issue for mbed 2 builds 2017-03-10 11:04:05 -06:00
Radhika Raghavendran 9d06732aae Changed tab to spaces 2017-03-10 16:22:30 +05:30
Radhika Raghavendran e640f5f1e5 Re-do change for changing ADC range from 0 to 3.3V 2017-03-10 13:45:32 +05:30
TomoYamanaka 34d033a4c1 Fix mistake register setting in serial_format()
Currently, there is the issue in register setting into serial_format().
The issue is that parameter for baudrate setting is initialed zero in this function.
In baudrate  is less 9600bps, the issue occurs. In baudrate  is over 9600, not occurs. When call serial_baud() before serial_format(), baudrate override and set with an incorrect value.

Therefore, I fixed register setting not to set the parameter of baudrate setting in serial_format().
2017-03-10 12:20:21 +09:00
Sam Grove 88a4baa2ad Merge pull request #3902 from mazimkhan/master
Fix heap and stack size for NUCLEO_F746ZG
2017-03-09 16:51:40 -06:00
Mohammad Azim Khan bb197b29f3 Fix heap size for NUCLEO_F746ZG on IAR 2017-03-09 16:51:24 +00:00
Martin Kojtal 67f80928ea Merge pull request #3877 from andresag01/update-mbedtls-2.4.2
Update mbed TLS feature to mbedtls-2.4.2
2017-03-09 16:19:50 +00:00
Martin Kojtal 8a56c8ce9c Merge pull request #3906 from rjpdasilva/master
uVisor: Fix 'publish' and core libs dependencies
2017-03-09 16:13:15 +00:00
Martin Kojtal 45c99e69ca Merge pull request #3879 from bcostm/fix_nucleo-f446ze_adc_pins
NUCLEO_F446ZE: Add missing AnalogIn pins on PF_3, PF_5 and PF_10.
2017-03-09 15:48:10 +00:00
Martin Kojtal 7a04d580fe Merge pull request #3866 from geky/bd-fix-const-missing
bd: Fix missing const attributes on functions
2017-03-09 15:47:38 +00:00
Martin Kojtal e9158f4782 Merge pull request #3852 from theotherjimmy/ignore-build-dir
Ignore build directory from scan resources
2017-03-09 15:45:47 +00:00
Martin Kojtal 68dc25331a Merge pull request #3843 from bcostm/fix_stm32l4_apb2_80MHz
STM32L476xG: set APB2 clock to 80MHz (instead of 40MHz)
2017-03-09 15:44:08 +00:00
Martin Kojtal c3e7b5434c Merge pull request #3842 from anangl/fix_spi_api
TARGET_NRF: corrected spi_init() to properly handle re-initialization…
2017-03-09 15:43:13 +00:00
Simon Vogl 1c4e0d7dcb can_write(): return error code when no tx mailboxes are available. (#3829) 2017-03-09 15:42:00 +00:00
Martin Kojtal 6aa62c1956 Merge pull request #3828 from jeromecoutant/PR_CAN_TYPE
STM32 CAN API: correct format and type
2017-03-09 15:40:01 +00:00
Martin Kojtal fd6fdd5f8c Merge pull request #3795 from LMESTM/fix_pwm_period_calc
Fix pwm period calc
2017-03-09 15:39:00 +00:00
Martin Kojtal 8edeea7945 Merge pull request #3913 from pan-/NRF51-fix-sleep-override
[NRF51822] Fix reference to sleep in hal_patch override
2017-03-09 15:36:36 +00:00
Martin Kojtal fefa91fc6e Merge pull request #3898 from c1728p9/fix_heap_size_calculation
Prevent underflow in heap size calculation
2017-03-09 15:35:32 +00:00
Martin Kojtal 93b6a21db6 Merge pull request #3897 from theotherjimmy/supress-levenshtein
Ignore FuzzyWuzzy warnings
2017-03-09 15:33:25 +00:00
adustm 9196179207 Revert mbedtls selftest to avoid impact on other targets 2017-03-09 14:09:05 +01:00
Vincent Coubard 5596cd05cd [NRF51822] Fix reference to sleep in hal_patch override
The `sleep` function as been changed into `hal_sleep` by #3607.
Unfortunately the call to `sleep` in the hal_patch for the NRF51822 has not been
updated to `hal_sleep`. The result was a link time error for targets based on
NRF51822_LEGACY compiling with the mbed OS 5 tree.
2017-03-09 12:44:49 +00:00
Radhika Raghavendran c06fa3a335 A4 and A5 definitions added 2017-03-09 17:58:19 +05:30
Andres AG 1c8d7c1115 Update mbed TLS feature to mbedtls-2.4.2 2017-03-08 15:56:59 +00:00
Ricardo Silva 5b059821d4 uVisor: Fix 'publish' and core libs dependencies
The 'TARGET_M%' rules depend on files generated by the 'rsync' target,
so make this dependency explicit by setting 'rsync' as a pre-requisite
of 'TARGET_M%'. The 'rsync' dependency was removed from 'publish' to
avoid the case where make would select one of the 'TARGET' rules before
completing 'rsync', which would cause the build to fail.

Additionally, also moved the core libs selection in the 'TARGET_M%'
pattern rule from the pre-requisites into the rule's recipe. This is
required because when the wildcard expression used before as a
pre-requisite is expanded (make's 1st phase), it won't find any files
(not built yet via 'rsync' target), so it won't create the associated
'TARGET_M%' rules, finally causing the 'publish' target building to fail
due to missing rules for 'TARGET_M3' and 'TARGET_M4'.

With this change and the previous one, it is ensured that 'rsync' is
done before executing the recipe for 'TARGET_M%', so the required core
libs are already available and can be used from withing the recipe. The
same wildcard pattern is used as before.

The issues being fixed are visible with GNU Make 4.2.1, but not seen
with GNU Make 3.81.

Fixes issue #3905.
2017-03-08 00:49:53 +00:00
Jimmy Brisson 4408c01522 Add unit test for gcc path specifications 2017-03-07 11:41:56 -06:00
Laurent MEUNIER 400b89eeda Fix XDOT compilation error
Typo with misplaced closing parenthesis leads to compilation error,
which is fixed with this patch
2017-03-07 17:22:25 +01:00
Jimmy Brisson b2901098cd Update test_api call to prepare_toolchain
An earlier patch in this series changed the API for
`build_api.prepare_toolchain`. This commit updates the `find_test`
function to call `prepare_toolchain` correctly.
2017-03-06 18:37:46 -06:00
Jimmy Brisson d20bcba89b Remove static analysis scan
An earlier patch in this series relies on the assumption that all
toolchain construction goes through `prepare_toolchain`. This is still
not the case. The only remaining user of the `mbedToolchain` object that
does not go through `prepare_toolchain` is the static analysis scanner.
It's basically dead-code at this point. I say we remove it. So this
patch removes it.
2017-03-06 18:29:46 -06:00
Jimmy Brisson 51aa3330dd Re-factor mbed2 lib builds to use prepare_toolchain
The prior patch in this series makes the assumption that any building
will go through `build_api.prepare_toolchain`. This was not a valid
assumption for the mbed2 build process. So, instead of maintaining 2
ways of using the toolchain classes, I elected to unify on
`prepare_toolchain`.
2017-03-06 18:23:16 -06:00
Russ Butler 88f879d0f8 Prevent underflow in heap size calculation
If the free memory on a device is small enough then the calculation to
determine heap size could underflow to a large value. If this happens
then malloc will never return failure and instead will cause a crash on
allocation. This patch prevents the underflow so malloc works as
expected even with low amounts of free memory.
2017-03-06 17:15:51 -06:00
Jimmy Brisson fbb6f71be8 Ignore build directory from scan resources
This is a bug fix for the following bug (Github issue #437):

If two builds were run specifying a non-default build folder, the second
build would fail to link with duplicate symbols and may not fit on the
device. The root of this problem is that these non-default build folders
are not ignored by scan-resources, and therefore included in the build.

We fix this bug by ignoring the build directory passed into the tools.
2017-03-06 17:10:57 -06:00
Jimmy Brisson f306ffa4ee Ignore FuzzyWuzzy warnings
Nobody actually cares.
2017-03-06 17:07:14 -06:00