Commit Graph

13770 Commits (e56ef99593c5fc1b4acd51f51ba0e17ee03d9fc4)

Author SHA1 Message Date
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
Przemyslaw Stekiel 9690089280 Add Transaction class unit test. 2018-02-09 14:18:45 +00:00
Jimmy Brisson c6810a68b9 Correct auto-sizing last region in bl 2018-02-09 14:18:45 +00:00
Jimmy Brisson 0dc3132c09 Test for region list sanity (sizes all >= 0) 2018-02-09 14:18:45 +00:00
David Saada 04dd95f280 Add missing flash device feature to the K82F board 2018-02-09 14:18:45 +00:00
Matthias L. Jugel 955a077930 fix #5985 CLion exporter results in cmake build directory, causes compiler to fail in unexpect... 2018-02-09 14:18:45 +00:00
bcostm a5cd64eebb STM32L476/486: change SRAM config for IAR 2018-02-09 14:18:45 +00:00
Jimmy Brisson de983ce1b8 Don't bother padding hex files for managed bl 2018-02-09 14:18:45 +00:00
Jimmy Brisson 1b222ac07f Use OUTPUT_EXT in managed boot loader 2018-02-09 14:18:45 +00:00
Jimmy Brisson 51d424f3cc Use relative path to scatter for include path 2018-02-09 14:18:45 +00:00
Evan Hosseini 4a4891c60b ARM: ARMC6: Update scatter file shebang include directory 2018-02-09 14:18:45 +00:00
Evan Hosseini 76ccfc8f8f ARM: ARMC6: Copy headers along with the updated linker scatter file
* Need to copy headers into the build directory as well when also
  writing an updated linker scatter file to the build directory
2018-02-09 14:18:45 +00:00
Evan Hosseini d8edb99168 ARM: ARMC6: Fix for ARM linker script cpu formatting 2018-02-09 14:18:45 +00:00