Commit Graph

11667 Commits (10e14d0ca1dbeba4f1842f1331966d9546bbe6cd)

Author SHA1 Message Date
adustm 47b81255c6 Replase CMSIS flash driver by SDK flash driver 2017-07-14 15:51:14 +01:00
adustm 03aa77a700 Allow UBLOX to use SDK flash driver 2017-07-14 15:49:07 +01:00
adustm 0b9855ebc7 Rebase: 0d1c6c2d34
This commit completely rewrote flash_api.c in a few places so kicked out changes from Master and accepted the branch changes.

F429 + F439 : changes after code review
GetSector has been rewritten
2017-07-14 15:48:51 +01:00
adustm 5b0dbbd780 Rebase of: dfd0cf63e9
fix STM32F439 flash HAL
2017-07-14 15:47:57 +01:00
adustm 5ea3730ed2 Rebase of: cb3907ef70
typo in flash_s struct
2017-07-14 15:43:56 +01:00
adbridge 6d5e15b73a Updated MBED versionning block for patch release 2017-07-14 15:13:33 +01:00
Jimmy Brisson 38e258c641 Allow custom_targets.json exporting 2017-07-14 15:13:32 +01:00
Jimmy Brisson fde073c3dc Generate exporter suppored lists when needed 2017-07-14 15:13:32 +01:00
Andrzej Puzdrowski f94ce228a7 nrf5 spi_api - coding style enhancement 2017-07-14 15:13:32 +01:00
Andrzej Puzdrowski 113b902e8e Bugfix: #4357 simultaneous using of I2C and SPI.
Use serial-box of Nordic nRF5 SDK to share resource between
SPI and I2C.
SPI is allocated from highest hw instance number resource in order
to allocate as many I2C instances as possible.
2017-07-14 15:13:32 +01:00
Kari 7559f1822e - Adjust lowpan ND interface connect timeout
Device needs to wait for connectivity:
-routers will create new network and get local connectivity
-end device will get connectivity once attached to existing network
-devices without network settings gets connectivity once
 commissioned and attached to network

Signed-off-by: Kari <kari.haapalehto@arm.com>
2017-07-14 15:13:32 +01:00
Christopher Haster 94aea467c9 fatfs: Fix unaligned access in disk_ioctl
Unlike the other disk_ioctl options, GET_SECTOR_SIZE is interpreted
as a 16-bit WORD, instead of a 32-bit DWORD. This caused an unaligned
access error on M0 platforms.
2017-07-14 15:13:32 +01:00
Chris a35baf2171 Remove volatile 2017-07-14 15:13:32 +01:00
Chris 9888d3c5fd Code tidy 2017-07-14 15:13:32 +01:00
Chris a880560977 Assembly based loop for timing test 2017-07-14 15:13:32 +01:00
Chris 9a6fb46846 Toolchain independent noinline 2017-07-14 15:13:32 +01:00
Chris e36c20ffda Fix timing issues found in "Flash - clock and cache test" ARMCC seemed to be inlining time_cpu_cycles() but with a different number of clock cycles in the loop, GCC worked fine. 2017-07-14 15:13:32 +01:00
Yuguo Zou 5ae8011857 Enable/Disable debug from argument of constructor 2017-07-14 15:13:32 +01:00
Yuguo Zou 54bf7d7bd5 mute wifi_conf messages 2017-07-14 15:13:32 +01:00
Yuguo Zou 51a7036e21 Update and mute debug messages from wifi 2017-07-14 15:13:32 +01:00
bcostm 6d0badf8f8 NUCLEO_F429ZI: comments corrections 2017-07-14 15:13:31 +01:00
bcostm 99f87ab93c DISCO_F429ZI: Typo correction 2017-07-14 15:13:31 +01:00
bcostm 1e8ba708f3 NUCLEO_F429ZI: Add alternate pins and enable all pins 2017-07-14 15:13:31 +01:00
bcostm be5ae8b409 DISCO_F429ZI: Typo corrections + add missing ALT pins 2017-07-14 15:13:31 +01:00
bcostm 4615906e4c DISCO_F429ZI: Add missing ADC alternate pins 2017-07-14 15:13:31 +01:00
bcostm 8a1821ec77 DISCO_F429ZI: Add alternate pins and enable all pins 2017-07-14 15:13:31 +01:00
bcostm 1554ea51af DISCO_F429ZI: Add 'Connected to' comment 2017-07-14 15:13:31 +01:00
Rob Meades f7c516a177 Increase PPP stack size from 512 bytes to 768 bytes.
PPP is running close to the edge of its default thread stack size of 512 bytes. When it experiences an FCS error on the incoming data (for example. caused by character loss when the incoming serial rate is too high for it to process in time) it performs some additional work which overruns the thread's stack, hitting the OS "stack underflow" check. Increasing the PPP stack size to 768 bytes resolves this problem.
2017-07-14 15:13:31 +01:00
Laurent MEUNIER b6a5448902 STM32: F4: Increase ADC sampling time
To get a valid VBAT measurement on F4 targets, it is required to increased
the sampling time to its maximum value.
2017-07-14 15:13:31 +01:00
Vincent Coubard 1d9712b424 Nordic: Fix multiple defined symbol.
The symbol Systick_Handler was defined as a weak symbol in us_ticker.c and
startup_nRF51822.s. While it work as expected when an application is compiled
from mbed OS source code it creates a duplicate symbol issue when mbed OS is
bundled as a library.
2017-07-14 15:13:31 +01:00
bcostm b1b419fc29 DISCO_L475VG_IOT01A: typo corrections in PeripheralPins.c 2017-07-14 15:13:31 +01:00
jeromecoutant 9a226ae2a4 STM32L0 : internal ADC channels 2017-07-14 15:13:31 +01:00
Laurent MEUNIER abfe8d1a0d STM32: serial: use proper GET_IT macro
Depending on families, different HAL macros are defined to check the
state of serial interrupts. In several cases, we can find only 1 macro:
__HAL_UART_GET_IT_SOURCE
Checks whether the specified UART interrupt has occurred or not

But in F0, F3, F7, L0, L4 there are 2 different macros
__HAL_UART_GET_IT
Checks whether the specified UART interrupt has occurred or not
__HAL_UART_GET_IT_SOURCE
Checks whether the specified UART interrupt source is enabled.

In the later case, __HAL_UART_GET_IT_SOURCE was being used so far,
but actually needs to be replaced by __HAL_UART_GET_IT. Using the right
macro, we also check the proper flags accordingly.
2017-07-14 15:13:31 +01:00
Vincent Coubard 43c67f448c NRF52832: Extend idle thread stack size to 512 bytes.
Fix a crash where the idle thread stack size overflows. This crash
was depending on the compiler and standard library used.
2017-07-14 15:13:31 +01:00
Yuguo Zou d4c2f311a7 Remove unused headfile
This shall prevent confusion
2017-07-14 15:13:31 +01:00
Martin Kojtal e97380913c tools: fix toolchain extend inc paths
inc paths might be a list or might not be (just single string). If they don't, we are ending up with non valid include paths (one letter include paths).
This as result would not compile.
2017-07-14 15:13:31 +01:00
andreas.larsson 3d0f789d86 Set LED4 the same as LED3 to get tests-mbedmicro-rtos-mbed-timer to pass. If set to NC the test will assert. 2017-07-14 15:13:31 +01:00
Christopher Haster b92b4232da fatfs: Added full support for multiple fs volume prefixes
This is only an issue when multiple fatfss are used simultaneously.
Repeated use of a single fatfs instance (even with different storages)
do not show this issue.

Full support requires path prefixes being applied for every function
that takes a path. Note: this is only required filesystems after the
first mounted filesystem. The first filesystem has no penalty.
2017-07-14 15:13:31 +01:00
Fahrzin Hemmati 844ba85090 do while -> while 2017-07-14 15:13:31 +01:00
Fahrzin Hemmati f1dd96b14b Fix add -> adds typo 2017-07-14 15:13:31 +01:00
Fahrzin Hemmati 206b7f89fa Improve the startup code on the STM32F070
This reduces the number of loads inside of the .data copy loop by 3 by using one more register. It should work on any STM32 with at least 5 general-purpose registers. If only 4 are available, then 1 load could still be removed from the original implementation.
2017-07-14 15:13:31 +01:00
Marcus Chang 3b32d25a96 FlashIAP: Add explicit read function to flash_api.h
On some platforms, the in-application memory is not memory mapped
and therefore cannot be accessed using memcpy.

The flash_read function added to flash_api.h (with a weak
implementation using memcpy in mbed_flash_api.c) can be used for
reading data from areas that are not memory mapped.
2017-07-14 15:13:31 +01:00
Shrikant Tudavekar 03f37bb21a validate base_time key received
This is required as greentea can send multiple __sync packets and cause the
to be in unexpected state.
2017-07-14 15:13:31 +01:00
Russ Butler 3b4aafb6db Update timing calculations 2017-07-14 15:13:30 +01:00
Shrikant Tudavekar 4caf8cecfe Increased stack to 1024 from 768 and corrected assert.
1) mbed-os-tests-mbedmicro-rtos-mbed-basic tests use to fail when run in loop
after 20-25, This was because the stack used by test application was in range of
744-840 bytes. So bumped the stack size to 1024 bytes.

2) Corrected the assert and taken out the assert which was not required.
2017-07-14 15:13:30 +01:00
studavekar 01fcb5f34e Deprecate testcases related to time drift.
1) RtosTimer is been Deprecated by EventQueue.
2) wait_us testing can't be reliably tested.
2017-07-14 15:13:30 +01:00
studavekar aa166fa7c0 Update timing tests to be robust.
In the new approach the host controls the device activity when the test
should start, finish and pass/fail status is send to device. Also deprecate
the test cases which can't accurately test.
2017-07-14 15:13:30 +01:00
Brian Daniels f659681478 Fix bad test print and move locks for printf into macro.
A message of "Failed to close socket" was always being printed, not
just when the socket failed to close. This patch fixes this in
addition to a simplifying the call to a thread safe printf.
2017-07-14 15:13:30 +01:00
Brian Daniels f1b45989db Sort the config parameters before printing them 2017-07-14 15:13:30 +01:00
Deepika 1c3469bfaa Resolved format warnings: format '%d' expects argument of type 'int', but argument 3 has type 'u32_t[-Wformat=] 2017-07-14 15:13:30 +01:00