Commit Graph

10182 Commits (febf63b728c970a75fc0245609d97be3d74dc34f)

Author SHA1 Message Date
Mohammad Azim Khan 48baf7c5c1 Heap size adjusted to work for both tls-client and mbed-client
Targets NUCLEO_F429ZI and UBLOX_EVK_ODIN_W2 have 192K RAM.
Heap size in PR #3871 was increased from 48K to 96K as tls-client
example failed with 48K heap. But this resulted in compilation failures
in mbed-client that requires 71K for global/static data.
Hence this PR reduces heap to 64K that minimum required by tls-client
to work. This also meets mbed-client data segment requirements.
2017-03-24 20:43:51 +00:00
cyliangtw f2850b0cdf remove dead code in nuc472_netif.c 2017-03-24 20:43:35 +00:00
cyliangtw fbe31a7106 Adjust locally administered MAC address 2017-03-24 20:43:23 +00:00
MS30 CYLiang 8f6171ec28 Support unique locally administered MAC address 2017-03-24 20:43:10 +00:00
ccli8 1317f516d0 Refine serial PDMA code 2017-03-24 20:42:58 +00:00
ccli8 da27610278 Refine SPI PDMA code 2017-03-24 20:42:45 +00:00
ccli8 61f3784a7b Add dma_modbase() to get PDMA base address 2017-03-24 20:42:33 +00:00
ccli8 a19fa06bc7 Fix pwmout power-down condition 2017-03-24 20:42:21 +00:00
ccli8 aefa147747 Fix PDMA error on timeout 2017-03-24 20:42:08 +00:00
ccli8 9127a1a33c Refine pin/peripheral/pin map definitions
Change NUC472 analogin_api.c accordingly
2017-03-24 20:41:56 +00:00
ccli8 aa561f2fd1 Fix incorrect use of peripheral name as peripheral base address 2017-03-24 20:41:43 +00:00
Christopher Haster 48bbb7aea9 bd: Remove constraints on device for block device tests 2017-03-24 20:41:30 +00:00
Christopher Haster 5029cbcd9c bd: Added randomness to block device test and more debug friendly output 2017-03-24 20:41:18 +00:00
TsungtaWu 4fe568d569 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-24 20:41:05 +00:00
Russ Butler 4924f85abe tools: fix usage of aliases.json
Load aliases.json from mbed-os rather than from a temporary
directory.
2017-03-24 20:40:53 +00:00
Russ Butler 7e77e28580 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-24 20:40:40 +00:00
Russ Butler ff9f9ecb3a tools: fix package version in arm pack manager
Use python's LooseVersion to get the correct version.
2017-03-24 20:40:27 +00:00
Russ Butler 13b2d0f37e 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-24 20:40:15 +00:00
TomoYamanaka 43d4a7c66a 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-24 20:40:02 +00:00
Jimmy Brisson e949b857a0 Add unit test for gcc path specifications 2017-03-24 20:39:50 +00:00
Jimmy Brisson c3d0ca30c3 Use PATH env variable when gcc found in PATH
Resolves the github issue #3790: Blinky fails to build (on Mac) after
addition of linker script preprocessing feature. Paraphrasing, this
issue is that Homebrew on mac does not install `arm-none-eabi-gcc` in
the same location as `arm-none-eabi-cpp`, the C Pre-Processor. The tools
prior to this commit, and after turning on the pre-processing of the
linker-script will fail on any Mac homebrew installed toolchains.

This commit resolves the above issue by allowing the toolchain's path to
the executable to remain empty after a call to `check_executable`. When
this path is empty, the tools will search the PATH environment variable
for the executable.
2017-03-24 20:39:37 +00:00
jeromecoutant ef48d7f97b STM32Cube_FW_F7_V1.6.0 CMSIS v1.1.2 => v1.2.0 STM32F7 HAL v1.1.2 => v1.2.0 2017-03-24 20:39:27 +00:00
Radhika Raghavendran dc52812256 Changed tab to spaces 2017-03-24 20:39:12 +00:00
Radhika Raghavendran a9aaeca5b5 Re-do change for changing ADC range from 0 to 3.3V 2017-03-24 20:39:01 +00:00
Radhika Raghavendran 998f31e8f9 A4 and A5 definitions added 2017-03-24 20:38:50 +00:00
Russ Butler fe4867ea89 rtos: Prevent Thread class from being copied
Make the copy constructor and assignment operator private to prevent
them from being used.
2017-03-24 20:38:42 +00:00
Russ Butler 1bec2f2d5d rtos: Add Inactive return to thread get state
If a thread hasn't been started return Inactive as the status when
Thread::get_state() is called.
2017-03-24 20:38:34 +00:00
Russ Butler edc473a526 rtos: Return an error when a Thread is re-used
Calling Thread::start multiple times leads to undefined behavior since
the Thread class was not designed to handle being restarted.  Return an
error code if Thread::start is called a second time to prevent this
behavior.
2017-03-24 20:38:26 +00:00
Wolfgang Betz bb6df591f0 Correct return values for `I2C::write(int, const char*, int, bool)` 2017-03-24 20:38:18 +00:00
adustm 8f0eb68953 Revert mbedtls selftest to avoid impact on other targets 2017-03-24 20:38:10 +00:00
adustm 3604c3a7d3 remove mbedtls_printf error notification 2017-03-24 20:38:03 +00:00
adustm 48de782b58 Big commit after code review from andesag01 cleanup in include files (unrequired removed + other moved to aes_alt.h) hcryp_aes moved to mbedtls_aes_context to allow multi instances remove ctx->nr, ctx->buf doxygen comments are removed (kept in .h file) function _ALT are removed (full module _ALT) handle error returned by HAL_CRYPxx functions aes is symetric, remove the dupplicated set_key_enc and set_key_dec buffer, and factorize the call to set_key function 2017-03-24 20:37:55 +00:00
adustm 1a5bab8f78 Better use of MBEDTLS_AES_ALT removed from targets.json, added in mbedtls_device.h remove function alternate defines (not used as we replace the full module) 2017-03-24 20:37:47 +00:00
adustm ec5a2ef6f7 Add AES_CBC mode 2017-03-24 20:37:38 +00:00
adustm 7f63650a2e AES ECB for NUCLEO_F439ZI +---------------------------+--------+--------+--------+ | test case | passed | failed | result | +---------------------------+--------+--------+--------+ | mbedtls_aes_self_test | 1 | 0 | OK | | mbedtls_entropy_self_test | 1 | 0 | OK | | mbedtls_sha256_self_test | 1 | 0 | OK | | mbedtls_sha512_self_test | 1 | 0 | OK | +---------------------------+--------+--------+--------+ 2017-03-24 20:37:28 +00:00
Anna Bridge f4864dc642 Merge pull request #3930 from ARMmbed/release-candidate
Release candidate for mbed-os-5.4.1
2017-03-13 15:44:45 +00:00
Simon Vogl c0351446cf can_write(): return error code when no tx mailboxes are available. 2017-03-13 11:20:15 +00:00
Anna Bridge c76d8ffdfc Update MBED_LIBRARY_VERSION to v138 2017-03-13 11:14:55 +00:00
Jimmy Brisson f6388de8f4 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-13 11:14:54 +00:00
Christopher Haster 745b8effd2 Filesystem: Restored LocalFileSystem tests for mbed 2 2017-03-13 11:14:50 +00:00
Christopher Haster 44a515dd47 Fixed size_t issue for mbed 2 builds 2017-03-13 11:14:46 +00:00
Mohammad Azim Khan 80fbde313c Fix heap size for NUCLEO_F746ZG on IAR 2017-03-13 11:14:43 +00:00
Andres AG febfa8b720 Update mbed TLS feature to mbedtls-2.4.2 2017-03-13 11:14:39 +00:00
bcostm 4c344d76a9 Add AnalogIn pins on PF3, PF5 and PF10. Don't know why it was missing ? 2017-03-13 11:14:35 +00:00
Christopher Haster 3947dbfa04 bd: Fix missing const attributes on functions 2017-03-13 11:14:31 +00:00
Jimmy Brisson 8a14c4a9c3 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-13 11:14:27 +00:00
Jimmy Brisson ed60ef142b 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-13 11:14:23 +00:00
Jimmy Brisson 0b15a05a54 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-13 11:14:20 +00:00
Jimmy Brisson a48647f4f1 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-13 11:14:15 +00:00
bcostm 404b58c4df STM32L4xx: set APB2 clock to 80MHz (instead of 40MHz) 2017-03-13 11:14:11 +00:00