Commit Graph

13882 Commits (mbed-os-5.7)

Author SHA1 Message Date
Brendan McDonnell 18716f1b20 remove unused variable / resolve compiler warning 2018-02-23 17:08:30 -06:00
Pavel Slama f1af895506 STM32F429ZI add SERIAL_ASYNCH 2018-02-23 17:08:30 -06:00
jeromecoutant 4cf68c5e1f STM32F4 Cube v1.19.0 update : ST CMSIS files
Previous version was v1.16.0
2018-02-23 17:08:30 -06:00
jeromecoutant cd1c958ad8 STM32F4 Cube v1.19.0 update : ST HAL files
Previous version was v1.16.0
2018-02-23 17:08:30 -06:00
jeromecoutant 468048c817 STM32F4 Cube update : file name alignment 2018-02-23 17:08:29 -06:00
deepikabhavnani ffeca09259 Added SHA record for context switch assembly files 2018-02-23 17:08:29 -06:00
Deepika e33ff50409 Pulling in CMSIS commit 05fa9d328a
Systick handler switch to secure/nonsecure issues addressed:
1. Switch to secure/nonsecure context save/restore is based on 6th bit in
LR register, correct the bug (R7 instead of LR was used for decision)
2. Prevent R7 from being corrupted in Sys_ContextSave
3. Branch when non-secure rather than secure
2018-02-23 17:08:29 -06:00
deepikabhavnani 8eac84ca80 Non Secure flag is required for pre-processing of linker file 2018-02-23 17:08:29 -06:00
deepikabhavnani 3e181422d8 RTX5: Pre-processor defines used for assembly
CMSIS repo does not support pre-processor defines, hence multiple assembly
files are added for secure/non-secure and floating point tools.

Mbed OS tools support assembly file pre-processing, but the build system
does not support multiple assembly files for each target, hence updating
the assembly files.
2018-02-23 17:08:29 -06:00
Deepika c37f25a090 Default values for Trustzone Idle/Timer thread updated
Default value for timer/idle thread trustzone identifier is 0, updated
it to 1 to allow threads to access secure functions when timer is secure device.
2018-02-23 17:08:29 -06:00
Deepika cdb2ec21c1 RTX changes pulled in from d20b8aad7f5e
RTX5: Added TrustZone Module Identifier configuration for Idle and Timer Thread
2018-02-23 17:08:29 -06:00
Jan Jongboom a15e122982 gnuarmeclipse exporter uses mBed instead of proper casing 2018-02-23 17:08:29 -06:00
Przemyslaw Stekiel e56ef99593 Fix for issue #6054 - interrupts scheduled in the past.
When ticker is not driven by the 1 MHz clock and HAL driver need to perform conversion between microseconds and ticks, then the interrupt might be scheduled in the past. For details see: https://github.com/ARMmbed/mbed-os/issues/6054.

This patch provides fix for such case. Interrupt is fired immidiatelly when last read tick is equal to the calculated tick when interrupt should be generated.
2018-02-23 17:08:29 -06:00
daid a52009c176 Prevent detect_targets.py tool script from crashing on known targets
As mut['mcu'] can be "None" on unknown targets, the detect_targets script crashes when one of these boards is connected.

This happens when "mbed-cli detect -vv" is ran when a STEVAL-3DP001V1 board is connected. Which does not provide a html file with a target_id, and thus cannot be looked up in the mbedls platform database.
http://www.st.com/en/evaluation-tools/steval-3dp001v1.html
2018-02-23 17:08:29 -06:00
Christopher Haster 4ee3043721 mbr: Added note about limitations 2018-02-23 17:08:29 -06:00
Prashant Ravi e9c6303870 Fixing coding style
Fix Details: HAL API for loguart is different that UART. Initially we
didnt have support for loguart in the mbed api. These changes have been
made to support the loguart from the mbed api by using the correct HAL
api calls
2018-02-23 17:08:29 -06:00
Prashant Ravi 83165deda3 fix for serial issue #5805 2018-02-23 17:08:29 -06:00
bcostm 90c87335ce Add missing can legacy file 2018-02-23 17:08:29 -06:00
bcostm ea00afbaad F7 ST CUBE V1.10.0 F7 HAL driver V1.2.5 2018-02-23 17:08:29 -06:00
Tero Jääskö 5860dc08e4 tools: build: fix handing of "--stats-depth"
The introduction of pretty-bar had broken the handling of
"mbed compile"'s "--stats-depth" argument. No matter what one gave
as parameter to it, the result output is just using the default 2.
Fix the logic in build_api.
2018-02-23 17:08:28 -06:00
Christopher Haster 0a85303144 mbr: Added checks for extended partitions 2018-02-23 17:08:28 -06:00
Christopher Haster aee5511276 Added test to catch multiple nested MBRs 2018-02-23 17:08:28 -06:00
Christopher Haster ad4d0f088f fatfs: Removed extra MBR block
Regression after ChanFS update: Due to parameter changes in the f_mkfs
function, the option to use a separate block for MBR (FDISK) was turned
back on. This should be off as it conflicts with an explicit MBR when
using the MBRBlockDevice.
2018-02-23 17:08:28 -06:00
Wilfried Chauveau 978bc47415 remove magic calibration value for HSI in ST's targets 2018-02-23 17:08:28 -06:00
Wilfried Chauveau 17b53e9ce2 add few files to gitignore list 2018-02-23 17:08:28 -06:00
Vincent Coubard ef822f31e1 Ble: fix size function in advertising_data_t and address_t. 2018-02-23 17:08:28 -06:00
Marc Emmers 740547c525 STM32L0: Enable stop mode operation for the LPUART 2018-02-23 17:08:28 -06:00
Marc Emmers ef604d0bd8 STM32L0/4: Always try to select LSE if LPUART and baudrate <= 9600 2018-02-23 17:08:28 -06:00
Brendan McDonnell f99e4a2bdd cast to resolve signed/unsigned comparison compiler warning in FATFileSystem::dir_seek() 2018-02-23 17:08:28 -06:00
Ashok Rao f2337c4ddf Fixed serial pins and a typo for ODIN MTB 2018-02-23 17:08:28 -06:00
jeromecoutant ecae5ed46d DISCO_F303VC : Align clock configuration with STM32 family 2018-02-23 17:08:28 -06:00
jeromecoutant b81dcf2714 DISCO_F303VC : add IAR files 2018-02-23 17:08:28 -06:00
jeromecoutant e28859728b DISCO_F303VC : wrong STDIO pins 2018-02-23 17:08:28 -06:00
TomoYamanaka 67187c6d3e Fix NVIC Wrapper include
Renesas mbed boards incorporate NVIC Wrapper because Cortex-A9 use GIC. For example, NVIC_SystemReset() is defined in nvic_wrapper.c and declared in nvic_wrapper.h.
Because I removed one of include processing accidentally, I fixed the lack.
This supplements PR #5890.
2018-02-23 17:08:28 -06:00
Juha Ylinen 52ae31a615 lwip: enable EMAC IPv6 support 2018-02-23 17:08:28 -06:00
Anna Bridge 569159b784
Merge pull request #6057 from ARMmbed/release-candidate
Release candidate for mbed-os-5.7.5
2018-02-12 18:02:20 +00:00
adbridge 27109bebd8 Revert "Correct test `socket_sigio`"
This reverts commit b812918f90.
2018-02-12 11:12:54 +00:00
Wolfgang Betz b812918f90 Correct test `socket_sigio`
A call to

    `TCPSocket::recv(void *data, nsapi_size_t size)`

returns, following the mbed documentation, the number of received bytes on
success, and a negative error code on failure.

So in case of success, the return value depends on both the value of parameter
`size` but also on the amount of data already available. This means, that the
value returned can be lower than or equal to the `size` of the `data` buffer
passed as argument to the call.

Therefore, in the cases of `test_tcp_hello_world()` & `find_substring()`
(i.e. test `socket_sigio`), the calls to `TCPSocket::recv()` might return from
one byte up to `sizeof(buffer) - 1` (i.e. 511) bytes for each single call,
while the tests expect to receive the whole response string with a single call.

This commit applies a fix to this situation by implementing a receive loop
which exits once there is no data anymore available to be read from the socket.
2018-02-09 14:39:45 +00:00
adbridge 8d517f7e46 Update Mbed version block for patch release 2018-02-09 14:18:46 +00:00
Ashok Rao 79a2b61150 Added MTB aliases & default SPI 2018-02-09 14:18:46 +00:00
Ashok Rao b07cecbd19 Adding LAIRD_BL600 MTB 2018-02-09 14:18:46 +00:00
ccli8 5d1e58ce16 Fix CThunk error on Cortex-M23
Cortex-M23 doesn't support ARMv8-M Main Extension and so doesn't support:
ldm  r0, {r0, r1, r2, pc}

Fix it by going Cortex-M0/M0+ way:
ldm  r0, {r0, r1, r2, r3}
bx   r3
2018-02-09 14:18:46 +00:00
bcostm 685d4951c1 Move TARGET_DISCO_L072CZ_LRWAN1 folder 2018-02-09 14:18:46 +00:00
Maciej Bocianski 14e48e53ab test-mbed_drivers-ticker: improve two ticker test accuracy
test_case_2x_callbacks test was redesigned to eliminate ticker rescheduling and improve time mesure accuracy.

Constant ticker rescheduling (detach()/attach_us() calls)
was causing the gap between consecutive callback calls was not exact 1ms
but 1ms + time needed to call the callback and attach new one.
New design just uses two tickers to update counter alternatively every 1ms without rescheduling them
2018-02-09 14:18:46 +00:00
Maciej Bocianski 2c617c549c test-mbed_drivers-ticker: fix ticker cross attach
This commit fixes ticker cross-schedule bug in test_case_2x_callbacks subtest

In effect of this bug:
    ticker_callback_1_switch_to_2 was called only once
    ticker2 was never been fired because it was repeatedly detached just before fire and attached again
2018-02-09 14:18:46 +00:00
deepikabhavnani 1c3020784f -march not required if -mcpu is set
GCC_ARM throws warning if both architecture and core are set (though
correct). If CPU option is set correctly, architecture is set by compiler
itself.
2018-02-09 14:18:46 +00:00
Wilfried Chauveau 82d16294cb rename MURATA type ABZ & WISE_1510 to their expected name 2018-02-09 14:18:46 +00:00
TomoYamanaka d942bb6be8 Fix TRNG function
Related to the review of #5857, I fixed the TRNG function for GR-LYCHEE.
- I modified to zeroize "recv_data" before the function return.
- I added the processing that check the return value of I2C.read function. If return value is error, "output" is zeroized before function return.
- In trng_get_bytes_esp32 function, there is a time lag in the period from ESP32 reset to start working, error may occur when "Write" is called. Thus, I added a retry counter due to address this concern. There is not this counter for "Read" since it is called after "Write".
2018-02-09 14:18:46 +00:00
Kimmo Vaisanen caaed4f315 Add WISE-1570 external pin names 2018-02-09 14:18:46 +00:00
Kimmo Vaisanen 3c5af68180 Add MTB_ADV_WISE_1570 target 2018-02-09 14:18:46 +00:00