Commit Graph

11777 Commits (mbed-os-5.5)

Author SHA1 Message Date
Anna Bridge ca661f9d28 Merge pull request #5083 from ARMmbed/release-candidate
Release candidate for mbed-os-5.5.7
2017-09-14 11:46:30 +01:00
Martin Kojtal 7189e68fc7 Revert "Adjusting Stack size Allocation (IAR, LPC176x)"
This reverts commit fce2ca2122.
2017-09-13 15:04:24 -05:00
adbridge 73bac6eb51 Updated MBED versionning block for patch release 2017-09-13 15:55:38 +01:00
Martin Kojtal 6273593f3b Travis: fix the latest breakage - use group:
See https://blog.travis-ci.com/2017-08-29-trusty-image-updates
2017-09-13 15:55:37 +01:00
Boting Ren 04b1c3a95f Remove HAL_GetUID_12Bytes function from stm32l4xx_hal layer. 2017-09-13 15:55:37 +01:00
Boting Ren f39931287b Fix a parse error at targets/targets.json. 2017-09-13 15:55:37 +01:00
Boting Ren 593a0cd610 Add bootloader support configuration for DISCO_L476VG. 2017-09-13 15:55:37 +01:00
Boting Ren 9e2095222b Add function to read 12byte HW RoT over STM32L4xx. 2017-09-13 15:55:37 +01:00
Yuguo Zou 83ca010548 Resolve including directory issue in GCC linker script for Ameba
Should not make assumption of specific directory when include .h from
linker script
2017-09-13 15:55:37 +01:00
Yuguo Zou 2f88a697de Fix bugs for RTL8195AM with debug profile of compilers
1. Add alignment / padding for postbuild segments
2. Clear tcm.bss section
3. Remove TRAP_OverrideTable(), move lines to PLAT_Start()
2017-09-13 15:55:37 +01:00
Yuguo Zou 9fe3ada07d Remove extension in cmd
Remove extension in command line so the script could work on Linux
2017-09-13 15:55:37 +01:00
Yuguo Zou 506c355cd0 Fix stack underflow issue
Switch on TCM
2017-09-13 15:55:37 +01:00
Yuguo Zou d314156a2e Add RTL8195AM support for mbed client with IAR Move ticker related code to SRAM due to time drift sensitive 2017-09-13 15:55:37 +01:00
Yuguo Zou a5b621668c Add RTW8195AM support for mbed client with ARMCC Move ticker related code to SRAM due to time drift sensitive 2017-09-13 15:55:37 +01:00
Yuguo Zou c8e0e75210 Move ticker related text to SRAM to fix GCC mbed-os-tests-mbed_drivers-timeout failing issue 2017-09-13 15:55:37 +01:00
Yuguo Zou 3ea3b2d79b Disambiguate function __memset() in rtl8195a_init.c
When use ARMCC, __memset is replaced by ARM's version which will make
boot process hang.
2017-09-13 15:55:37 +01:00
Yuguo Zou b6c27623fb Fix GCC compile errors 2017-09-13 15:55:37 +01:00
Tony Wu e75704051c rtl8195am - fix ARMCC SRAM + SDRAM porting
Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-09-13 15:55:37 +01:00
Yuguo Zou 2b06d0eb3b Fix ARMCC & IAR compile errors 2017-09-13 15:55:37 +01:00
Yuguo Zou 1e5f4f8bb7 Switch off DBG messages
And clean up some unused debug messages
2017-09-13 15:55:37 +01:00
Tony Wu ae8d8cae01 rtl8195am - adjust memory layout and enable fota support
1. Rearrange SDRAM and SRAM layout. Move timing critical code to SRAM,
   and the rest to SDRAM.

2. Add bootloader that's capable of FOTA over mbed cloud.

Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-09-13 15:55:37 +01:00
Tony Wu 05a0c4ff90 rtl8195am - rename GCC_ARM linker script
Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-09-13 15:55:37 +01:00
Yuguo Zou a30d4d6148 enable sdram usage of REALTEK_RTL8195AM
Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-09-13 15:55:37 +01:00
Jimmy Brisson 98e5e23a88 Correct travis coverage reporting 2017-09-13 15:55:36 +01:00
Jimmy Brisson eb4a1fbec2 Rename and simplify config test target names 2017-09-13 15:55:36 +01:00
Jimmy Brisson 83913e34f8 Clean up json
Wipe out all blank lines in json:
  find tools/test -name 'test_data.json' | xargs sed -i -e '/^$/d'
Move all start braces back a space:
  find tools/test -name 'test_data.json' | xargs sed -i -e "s/^ {/{/"
2017-09-13 15:55:36 +01:00
Jimmy Brisson ce4abfa83e Post coverage details on coveralls and link to them in readme 2017-09-13 15:55:36 +01:00
Jimmy Brisson 2548875a8a Linting and correcting comments 2017-09-13 15:55:36 +01:00
Jimmy Brisson 8bd92c85f1 Rework test_api testing and fix a bug
Bug was found by the new tests
2017-09-13 15:55:36 +01:00
Jimmy Brisson 90898c3269 Unify configuration testing and the travis command 2017-09-13 15:55:36 +01:00
Jimmy Brisson 2e6df44b21 Convert memap tests to pytest style 2017-09-13 15:55:36 +01:00
Jimmy Brisson de3cc63bb3 Rework config_test to use py.test 2017-09-13 15:55:36 +01:00
Jimmy Brisson 09ec351834 Start collecting coverage data in travis 2017-09-13 15:55:36 +01:00
Wolfgang Betz 8b606bff6d Freeze master timer on stop/breakpoint 2017-09-13 15:55:36 +01:00
Russ Butler b53e31dfaa Remove use of internal RTX types
Make calls to cmsis-os to get thread state, stack size, and max stack
usage rather than accessing internal RTX data directly. Wrap RTX5
specific code in OS_BACKEND_RTX5.

Also refactor the code to use mbed types rather than RTX types:
os_timer_t -> mbed_rtos_storage_timer_t
os_event_flags_t -> mbed_rtos_storage_event_flags_t
osRtxMutex_t -> mbed_rtos_storage_thread_t
2017-09-13 15:55:36 +01:00
Hasnain Virk d1b3436078 Adjusting Stack size Allocation (IAR, LPC176x)
Since mbed-os 5.4.3, something increased foot print of mbed-os and the applications that were barely fitting in started to spill.

IAR toolchain for LPC176x target family is set to use 2 RAM regions (32K each). RAM region
2 is being used for ETH/USB and 1 is being used for vector table, stack/heap/static data.

In this commit we have decreased heap size allocation from 8K to 7K so that the is more room for stack and static data.
2017-09-13 15:55:35 +01:00
Jan Jongboom 21c1e53302 MTS targets: Don't use any printf() calls when NDEBUG is defined, prevents linking out printf() and friends in release build 2017-09-13 15:55:35 +01:00
Kevin Bracey 4a1032f85a Correct LWIP_DEBUG definition
Commit f602c936 incorrectly started defining LWIP_DEBUG as either 0 or
1.

lwipopts.h locally was changed to use #if, but all existing users
continued to use #ifdef. Therefore defining it to 0 was accidentally
enabling it for quite a few users.

This would have pulled in some unwanted lwIP code, and affected some
drivers, eg k64f_emac.c allocating an extra 2K of stack.

Correct lwipopts.h to either define it as 1 or leave it undefined, and
change the #if tests back to #ifdef, so all are consistent.
2017-09-13 15:55:35 +01:00
Kevin Bracey 7d7e70a218 Reduce K64F Ethernet driver to 1 thread
Save 1K of RAM by using only 1 thread for RX and TX, and
running the PHY check in lwIP's context.
2017-09-13 15:55:35 +01:00
Kevin Gilbert 7d8392ae85 Add LED color remapping definitions to Odin target 2017-09-13 15:55:35 +01:00
Akos Kiss 341eee0d59 Fix BLE API docs
Some misguidances, some typos, some stylistics, some doxygen misuses.
2017-09-13 15:55:35 +01:00
Laurent MEUNIER 466b6f1573 Introduce TIMEOUT_1_BYTE
This makes the code more explicit about what is last parameter of
HAL_SPI_Transmit/HAL_SPI_Receive functions.
2017-09-13 15:55:35 +01:00
Laurent MEUNIER 3246e9c1d9 STM32: SPI: Do not enable SPI during Init if 3W
Enabling SPI causes the clock to be output by default.

Most devices will not care about extra clock cycles, especially as long
as chip select is not active, nevertheless this may cause side issues
with other devices especially during init phase.

This was actually the case with a 3 wire device (LPS22HB sensor).
2017-09-13 15:55:35 +01:00
Laurent MEUNIER e3eb426a38 SPI: HAL: disable IP at the end of transmit
in case of 1LINE direction
2017-09-13 15:55:35 +01:00
mapellil fe3a99d3f7 STM32: SPI: Use LL in spi_slave_read
this is more a cosmetic change, but since LL was introduced, we can now
use it here as well.
2017-09-13 15:55:35 +01:00
mapellil 64bd60d449 STM32: SPI: SPI3W / SPI_DIRECTION_1LINE management
In case MISO is not passed at SPI init, then we consider a 3 wires SPI
configuration is requested, which corresponds to SPI_DIRECTION_1LINE
configuration parameter in STM32 HAL layer.

We're then handling this specific case of SPI_DIRECTION_1LINE,
in spi_master_write or spi_master_block_write, we call to HAL API
2017-09-13 15:55:35 +01:00
Maciej Bocianski 93127f75cd Extends test set for Mail class 2017-09-13 15:55:35 +01:00
bcostm d51b0d5cb7 STM32F4: Set ADC sample time to max value for VRefInt 2017-09-13 15:55:35 +01:00
Russ Butler f2345a9bbe Fix crash on boot due to vector size mismatch
If NVIC_NUM_VECTORS is larger than the space allocated by the vector
table in ram (__ram_vector_table_size__) then the call to mbed_cpy_nvic
during boot will corrupt valid data, which can lead to a crash. This
patch fixes the declared number of vectors on the KL27Z, KL43Z and
KL82Z to fix this crash.
2017-09-13 15:55:35 +01:00
Mahadevan Mahesh 7826e0edd4 K66F,KW24D,K22F,K64F: Fix NVIC_NUM_VECTORS value
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-09-13 15:55:35 +01:00