Commit Graph

12750 Commits (mbed-os-5.6)

Author SHA1 Message Date
Martin Kojtal 5f6572179d
Merge pull request #5634 from ARMmbed/release-candidate
Release candidate for mbed-os-5.6.6
2017-12-04 11:55:10 +00:00
adbridge 4ad5e42ca7 Update Mbed version block for patch release 2017-12-01 17:01:47 +00:00
misodengaku 9574a484eb add target TARGET_SAKURAIO_EVB_01. 2017-12-01 17:01:46 +00:00
Tony Wu 38088716aa rtl8195am - refactor bootloader and ota support
1. move ota region 1 from 0x00b000 to 0x040000
2. move ota region 2 from 0x0c0000 to 0x120000
3. refactor bootloader header as follows:

   uint32_t tag;
   uint32_t ver;
   uint64_t timestamp;
   uint32_t size;
   uint8_t hash[32];
   uint8_t campaign[16];
   uint32_t crc32;

   where,
   a. hash is the sha256 checksum of the payload.
   b. crc32 is the crc32 checksum of headers from tag to campaign.

4. Call NVIC_SystemReset for soft reset.

Signed-off-by: Tony Wu <tung7970@gmail.com>
2017-12-01 17:01:46 +00:00
Tony Wu 2d23e98ef7 rtl8195am - cleanup post-processing binary hook
Preparing for bootloader redesign.

Signed-off-by: Tony Wu <tung7970@gmail.com>
2017-12-01 17:01:46 +00:00
sarahmarshy a412131235 Update K64F trng_api.c 2017-12-01 17:01:46 +00:00
Laurent MEUNIER 1c67d62271 STM32: SPI 3 wires mode not supported in SPI slave
This patch handles the case of SPI slave mode without MISO (NC).
In case MISO is not connected, we consider that SPI will be configured in
3 wires mode (CLK / MOSI / CS, but no MISO). In this case, the MOSI line
is bi-directional : SPI_DIRECTION_1LINE.

But as this is not supported yet in slave mode, we force it to
SPI_DIRECTION_2LINES. In this case slave SPI will receive data on MOSI
but nothing will be sent back to master as MISO is not connected.
2017-12-01 17:01:46 +00:00
Steven Cooreman 1f47dabab6 Use mbed_sleep API instead of Silicon Labs specific sleepmode API 2017-12-01 17:01:46 +00:00
Steven Cooreman 1f7a98233a Clear TX FIFO on every transmit
Need to avoid a TX packet error from messing up the TX FIFO. Since this API will return busy if a packet is in transmission anyways, this is acceptable.
2017-12-01 17:01:46 +00:00
Steven Cooreman 003195071a Add sleep mode blocking to avoid going into EM2 during RTOS idle handler 2017-12-01 17:01:46 +00:00
Steven Cooreman 5e1c15ac47 Upgrade RAIL to v2.1.1 2017-12-01 17:01:46 +00:00
bcostm 9e698e922d DISCO_F746NG: typo in config name 2017-12-01 17:01:46 +00:00
bcostm 88399cd003 DISCO_F746NG: add usp_speed config 2017-12-01 17:01:46 +00:00
Alessandro Angelino ba41480fd4 EFM32: Use SECURE_ACCESS to access the ROM table
To allow enabling of uVisor on EFM32, the ROM table must be accessed
through the CMSIS-provided SECURE_ACCESS macro.
2017-12-01 17:01:46 +00:00
Steven Cooreman bc356a3ea5 Convert USB library from em_int to em_core 2017-12-01 17:01:46 +00:00
Steven Cooreman 43c3f6291c Squash warnings by defining 'NC' as unsigned type 2017-12-01 17:01:46 +00:00
Steven Cooreman ad85d62549 Remove deprecated em_int 2017-12-01 17:01:46 +00:00
Steven Cooreman b11914c967 Support USARTs up to USART5 in SPI 2017-12-01 17:01:46 +00:00
Steven Cooreman e23ce9d87a Support USARTs up to USART5 in serial 2017-12-01 17:01:45 +00:00
Steven Cooreman 203df61bc2 Upgrade to emlib 5.3.3 2017-12-01 17:01:45 +00:00
Vincent Coubard aca711aab6 Nordic: Set handle of user description descriptors. 2017-12-01 17:01:45 +00:00
Steven Cooreman 6094f265bd Fix issue with timer timebase on EFR32
Timer code was written based on integer multiple HF clock frequencies. EFR32 doesn't conform to that (38.4), and so the timestamp ticks were off by 1%. Enough to trip up some CI tests on TB_SENSE_12 (#5496)
2017-12-01 17:01:45 +00:00
Mahadevan Mahesh debcb01488 FF_LPC546XX: Remove LWIP feature
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-12-01 17:01:45 +00:00
Mahadevan Mahesh 0bf774b925 LPC546XX: Add ENET support
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-12-01 17:01:45 +00:00
Janne Kiiskilä c3867d1c99 Realtek RTL8195AM - define A3-A5 as NC
Based on the Mbed OS website the A3 is connected to "DAC", however there
is no define for DAC. In order to get the Realtek RTL8195AM to even compile
with mbed-os-example-client now, we must have the A3 defined - it is one of
the standard Arduine header pins. Therefore, setting it as NC.

A4-A5 are not connected either, so adding them as "NC" as well.

Realtek will hopefully push a proper fix sooner or later, if there is a
more meaningful define for the A3 pin. They do state however that the
A0-A3 pins are not GPIO capable anyway.

Ref: https://os.mbed.com/platforms/Realtek-RTL8195AM/
2017-12-01 17:01:45 +00:00
Boting Ren ff471d1c2f Support bootloader for DISCO_F429ZI. 2017-12-01 17:01:45 +00:00
Christopher Haster a6e21a805e Fixed mutex assert in armcc fopen and related memory leak
armcc fopen allocated a mutex using the retargeted system-level
_mutex_initialize function. Interestingly, malloc also uses this
same _mutex_initialization function, which prevents a full solution
relying on malloc. The solution previously implemented involved using
the rtx mutex pool for the first 8 mutexes, then falling back on
malloc.

The previous implementation relied on osMutexNew returning an error
on out-of-memory. An unrelated change causes osMutexNew to instead
assert (except for release mode). This meant if you exceed 8 system-
level mutexes in armcc you will hit an assert. Since the filesystem
code can call fopen an unlimited number of times, this is a problem.

Solution is to keep track of which static mutexes we've allocated, so
we know before calling osMutexNew if we need to call malloc.

Also _mutex_free never deallocated the malloced mutexes, which would
cause fopen to leak memory.
2017-12-01 17:01:45 +00:00
Maciej Bocianski 56e4b584e1 threads test: increase threads heap size 2017-12-01 17:01:44 +00:00
Maciej Bocianski c7ed937a87 threads test adjust to run on devices with small RAM 2017-12-01 17:01:44 +00:00
cyliangtw 7b3d68e12f Refine trng_get_bytes for consistency and readability 2017-12-01 17:01:44 +00:00
cyliangtw 393dff7233 Refine for correctness control 2017-12-01 17:01:44 +00:00
cyliangtw cba607398e zeroize random data on the stack memory 2017-12-01 17:01:44 +00:00
cyliangtw 95a61e1d7a Unified code-path for remaining bytes of TRNG_Get 2017-12-01 17:01:44 +00:00
cyliangtw 3059299280 TRN_Get support 32 bytes unalignment 2017-12-01 17:01:44 +00:00
ccli8 79d9ffe976 Remove trailing space in lp_ticker/us_ticker 2017-12-01 17:01:44 +00:00
ccli8 98b8509fbf Fix premature lp_ticker interrupt
Old lp_ticker handles past event, but it has a bug with premature go-off.
The bug can re-produce on mbed-os-tests-mbed_drivers-lp_timeout/mbed-os-tests-mbed_hal-lp_us_tickers (mbed-os commit: 9c1fd48529).
Because upper layer (mbed-os/hal/mbed_ticker_api.c) has handled past event, this code can be removed from lp_ticker.

The similar fix also applies to us_ticker.
2017-12-01 17:01:44 +00:00
Russ Butler 81553096a1 Prevent traceback when memap fails to parse
If map file parsing fails then memap_instance is set to None. To
prevent a traceback when parsing fails check if this is None before
trying to access any of its fields.
2017-12-01 17:01:44 +00:00
Michael Kaplan ee352556d8 NUCLEO_L432KC: added SERIAL_ASYNC to targets.json 2017-12-01 17:01:44 +00:00
Michael Kaplan 6484120174 TARGET_STM32L4: added missing #ifdef in serial_device.c 2017-12-01 17:01:44 +00:00
Deepika be843195d7 Fixed: errno update failure with IAR8.2
errno (part of thread local storage) setting caused hardfault with IAR8.x
versions. TLS is not supported, hence using main thread TLS area for
all threads.
2017-12-01 17:01:43 +00:00
bcostm e68f570ab7 STM32 USBDevice: Update targets.json for DISCO_F429ZI 2017-12-01 17:01:43 +00:00
bcostm 66cdf083d1 STM32 USBDevice: Add DISCO_F429ZI 2017-12-01 17:01:43 +00:00
gorazd b5795afb72 lpc546xx: remove obsolete line 2017-12-01 17:01:43 +00:00
gorazd c9358fe5c3 lpc546xx: correct register name (DIGIMODE) 2017-12-01 17:01:43 +00:00
gorazd 44d45d4023 lpc546xx: fix adc Resolve #5304 2017-12-01 17:01:43 +00:00
Maciej Bocianski f8a4c07570 heap_and_stack test refactoring 2017-12-01 17:01:43 +00:00
Maciej Bocianski 7dc459a192 malloc test refactoring 2017-12-01 17:01:43 +00:00
Marko Fabo f8dcce4ad3 STM32F407VG: Fix RTC 2017-12-01 17:01:43 +00:00
jeromecoutant 57fa76ba90 DISCO_L072CZ_LRWAN1 can use LSE from LORA module (more precise than LSI) 2017-12-01 17:01:43 +00:00
jeromecoutant fdc121746e STM32L072CZ error in ARM sct file name 2017-12-01 17:01:43 +00:00