Commit Graph

10189 Commits (1d1df9e1725928b6a7a04aa715e12dc67068e93a)

Author SHA1 Message Date
ccli8 61e8ba045c Fix test code mbed-os-tests-mbed_hal-flash 2017-03-24 20:45:19 +00:00
Yogesh Pande 8806ed6df0 mbed-coap error fixes merge to mbed OS
This commit includes
 - Error fixes done on mbed-coap merge back to mbed OS.
 - Detailed CHANGELOG  is available here (https://github.com/ARMmbed/mbed-coap/compare/v4.0.2...v4.0.3)
2017-03-24 20:45:06 +00:00
Kevin Bracey 2d985eb6dd NSAPI/lwIP: Free held netbuf on close
mbed_lwip_socket_recv() takes one netbuf at a time from the netconn API,
and it holds a partially-read netbuf if necessary in order to present as
a stream for TCP.

This held netbuf was not being freed when the socket was closed.
2017-03-24 20:44:53 +00:00
bcostm 414a0c1daa NUCLEO_F302R8: Add missing PB_8/PB_9 CAN pins 2017-03-24 20:44:41 +00:00
jeromecoutant 9524b33821 OS2 tests minor updates for STM32
Some pin configuration are now aligned with ci-shield
2017-03-24 20:44:28 +00:00
Phyo Kyaw 7b2b4dcacc This change is for RZ_A1H and VK_RZ_A1H target. 2017-03-24 20:44:15 +00:00
Jimmy Brisson 006503df2c Don't set the build_dir to anything on export
When constructing a toolchain for export, we currently set the
`build_dir` to the `export_dir`. When exporting offline, the
`export_dir` is always set to the root of the project. The toolchains
ignore their `build_dir` when scanning for sorces, so when the exporters
use the toolchains to scan for their resources, they get nothing.

In this patch we set the `build_dir` of the toolchain that the exports
use to nothing. A path of nothing should not match anything, and will
therefore not ignore everything when scanning for resources.
2017-03-24 20:44:03 +00:00
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