Commit Graph

15236 Commits (mbed-os-5.8)

Author SHA1 Message Date
Jimmy Brisson 4edec3d2e2 Remove ASM include paths for ARM compiler 2018-05-04 12:22:29 +01:00
Jammu Kekkonen 716d646285 Add bootloader support for NUCLEO_F411RE target 2018-05-04 12:22:29 +01:00
Kimmo Vaisanen 30a978ac04 Lora: Fix max tx power check
In LoRa TX power value 0 means the maximum allowed TX power and values >0
are limiting the allowed TX power to lower.

tx_config was incorrectly checking the power level and causing the maximum
TX power to be always used. Lora gateway can request node to use lower TX
power with LinkAdrReq MAC command.
2018-05-04 12:22:29 +01:00
ccli8 c5fa459f47 Fix compile error with MBED_MEM_TRACING_ENABLED and ARMC6 2018-05-04 12:22:29 +01:00
Christopher Haster 420df0c793 littlefs: Fixed issue with trailing dots in file paths
Paths such as the following were causing issues:
/tea/hottea/.
/tea/hottea/..

Unfortunately the existing structure for path lookup didn't make it very
easy to introduce proper handling in this case without duplicating the
entire skip logic for paths. So the lfs_dir_find function had to be
restructured a bit.

One odd side-effect of this is that now lfs_dir_find includes the
initial fetch operation. This kinda breaks the fetch -> op pattern of
the dir functions, but does come with a nice code size reduction.
2018-05-04 12:22:29 +01:00
Keyur Hariya bd9eff93f8 Add support for open drain leds 2018-05-04 12:22:29 +01:00
Brendan McDonnell 05c07b1744 reduce variable scope 2018-05-04 12:22:29 +01:00
Brendan McDonnell f1cf7cc176 use separate variable to resolve compiler warning 2018-05-04 12:22:29 +01:00
Mahesh Mahadevan ff6f0592bb KL82Z: Fix clock selection for PWMOUT driver
This was verified using the ci-test shield

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-04 12:22:29 +01:00
deepikabhavnani 01ffbce473 Moved stats test to platform folder 2018-05-04 12:22:29 +01:00
Mahesh Mahadevan a2910f8925 KW41Z: Update SDK TPM driver
Certain instances of the TPM are missing some registers, updated
TPM driver handles this variation. This issue was discovered when
running the PWMOUT tests using the ci-test-shield

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-04 12:22:29 +01:00
Marcus Chang 962fc54578 Re-enable flash clock test for NRF52 but with higher tolerance
The flash clock test is disabled for the NRF52 series. This change
re-enables the test but with a higher tolerance to accommodate the
high jitter on the current ticker implementation.
2018-05-04 12:22:29 +01:00
Jimmy Brisson f9a78afd8c Correct test finding behavior
Scan resources ignores the build dir so we can't set it to something
dumb like the directory we want to scan
2018-05-04 12:22:29 +01:00
Jimmy Brisson 3b76d9d94d Correct exporting with cortex-M23 and M33 2018-05-04 12:22:29 +01:00
ccli8 8febfd99f2 Fix build tool with ARMC6/ARMv8M
1. Add linking time preprocessor macro __DOMAIN_NS for non-secure build
2. For output .hex format, combine multiple .hex files (for multiple load regions) into one
   This can help for Greentea test.
3. Fix 'None' build_dir with cmse_lib.o on Greentea test
2018-05-04 12:22:29 +01:00
Keyur Hariya c87b8a6d37 Fix the initialization of a structure 2018-05-04 12:22:29 +01:00
Keyur Hariya 74ae87eeeb Remove the redundant input parameter 2018-05-04 12:22:29 +01:00
Keyur Hariya 974864adba Add the missing input parameter 2018-05-04 12:22:29 +01:00
Keyur Hariya 4edbde80b9 Fix the return type to allow returning error 2018-05-04 12:22:29 +01:00
Keyur Hariya 7f11ac0b95 Add type cast 2018-05-04 12:22:29 +01:00
Mahesh Mahadevan 1d3b504d98 LPC546XX: Set the pin function to Digital mode
We cannot rely on the default value as a pin could
be use for Analog purposes in which this bit is cleared

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-04 12:22:29 +01:00
Seppo Takalo bec428ec1b Clarify mesh configuration values.
Most of the help fields were correct. Just add field specifying
acceptable ranges.
2018-05-04 12:22:29 +01:00
Senthil Ramakrishnan 60781c860e Update doxygen options rules to not strip code comments 2018-05-04 12:22:29 +01:00
Steven Cooreman a9101c2586 Revert file permissions to non-executable 2018-05-04 12:22:29 +01:00
Steven Cooreman 640af767ef Update to EFR32 15.4 driver
* Updates driver library to v2.3.1 (2018q1) for bugfixes and convenience functions
* Provides library in correct format (2-byte wchar_t flag) for compiling with ARMCC (#6695 uncovered by #6577)
* Reverts to using a statically-allocated packet buffer since malloc is not thread-safe (and the asserts have been turned on)
2018-05-04 12:22:29 +01:00
Mahesh Mahadevan 7165f31596 LPC546XX: Add check for GPIO IRQ
GPIO IRQ is available on pins for Ports 0 & 1. Add
a check to return error for other ports.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-04 12:22:29 +01:00
jeromecoutant 4ec0bc693f STM32 RTC Init minor update 2018-05-04 12:22:29 +01:00
Sam Grove 95c98506ab Update URL that points at a blank page.
Looks like the URL changed where #workflow became workflow.html
2018-05-04 12:22:29 +01:00
Brian Daniels f705b4159c Modifying echo test to be driven more from the device.
Previously, the echo test followed a flow like the following:

-STEP-	-HOST PC-                  -DEVICE-
0	send _sync
1				   echo back _sync
2				   send echo_count
3	echo back echo_count
4	send first echo packet
5				   echo back echo packet
	(repeat echo steps)

However, as noted by issue #6659, this test would somtimes fail between
steps 4 and 5. To ensure each KV pair makes to the correct destination,
we usually write the KV back. Step 4 does not wait for this to happen
and starts sending echo packets. So the device is acting as the "echo
server".

This change makes the host PC the "echo server". The idea being that the
device will be slower and the host pc should always be able to keep up
with it, not the other way around.
2018-05-04 12:22:29 +01:00
Jimmy Brisson 0296bbab62 Add GCC_ARM support to all fake test targets 2018-05-04 12:22:29 +01:00
Jimmy Brisson cadab34d4a Prevent compiling with unsupported compilers 2018-05-04 12:22:29 +01:00
Martin Kojtal 753f092ea4 requirements: add future
SHA 14255ca introduced the lines that are reported to be breaking.
future module in requirements fixes it

Reference: https://pypi.python.org/pypi/future

Fixes #6489
2018-05-04 12:22:29 +01:00
Paul Thompson beafcf3022 Eliminate complier warning and remove superfluous call to empty()
Appears when complied with -O3 optimization level

Compile: UARTSerial.cpp
../drivers/UARTSerial.cpp: In member function 'void mbed::UARTSerial::tx_irq()':
../drivers/UARTSerial.cpp:314:31: warning: 'data' may be used uninitialized in this function [-Wmaybe-uninitialized]
         SerialBase::_base_putc(data);
2018-05-04 12:22:29 +01:00
bcostm 1be48dc5f6 L0 ST CUBE V1.10.0: change adc sampling time 2018-05-04 12:22:29 +01:00
bcostm bd54fa4b10 L0 ST CUBE V1.10.0: spi and i2c corrections 2018-05-04 12:22:29 +01:00
bcostm f5aa8b33dc L0 ST CUBE V1.10.0 2018-05-04 12:22:29 +01:00
Wilfried Chauveau 9b46b040e3 make PR type box list "fancier" without making it a github tasklist 2018-05-04 12:22:29 +01:00
Ganesh Ramachandran d947139df3 IAR export and page size fix for nvstore 2018-05-04 12:22:29 +01:00
Keyur Hariya 4574130022 Remove automatic I2C stop after each read
Automatic stop prevents sending repeated start.
2018-05-04 12:22:29 +01:00
Edmund Hsu 61bc05144e ADI: Enable bootloader for EV_COG_AD3029LZ and EV_COG_AD4050LZ 2018-05-04 12:22:29 +01:00
Edmund Hsu 91a3a02d5f EV_COG_AD3029LZ: Rework linker scripts to support bootloader
- fix compiler warning message of flash_api.c
- eliminate absolute address of ROM tables
- add MBED_APP_START and MBED_APP_SIZE to linker scripts
2018-05-04 12:22:29 +01:00
Edmund Hsu 2707dfb87d EV_COG_AD4050LZ: Rework linker scripts to support bootloader
- fix compiler warning message of flash_api.c
- fix compiler warning message of startup_ADuCM4050.c
- eliminate absolute address of ROM tables
- add MBED_APP_START and MBED_APP_SIZE to linker scripts
2018-05-04 12:22:29 +01:00
Martin Kojtal c05d72c3c0
Merge pull request #6697 from ARMmbed/release-candidate
Release candidate for mbed-os-5.8.3
2018-04-24 10:18:23 +01:00
Cruz Monrreal ed4df0b3d3 Merge pull request #6703 from 0xc0170/fix_kl27z_flash
KL27Z: Flash protection macro addition
2018-04-23 15:25:48 -05:00
adbridge ae62a9c931 Update Mbed version block for patch release 2018-04-20 15:32:02 +01:00
Jimmy Brisson 5ad1002b6a Use passed in target data everywhere when doing lib config 2018-04-20 15:31:55 +01:00
Jimmy Brisson a89c8212fe Return correct configuration dict 2018-04-20 15:31:55 +01:00
Jimmy Brisson 751d38f0f6 Allow library configs to override target configs 2018-04-20 15:31:55 +01:00
Christopher Haster 86d049d812 littlefs: Fixed lookahead overflow and removed unbounded lookahead pointers
As pointed out by davidefer, the lookahead pointer modular arithmetic
does not work around integer overflow when the pointer size is not a
multiple of the block count.

To avoid overflow problems, the easy solution is to stop trying to
work around integer overflows and keep the lookahead offset inside the
block device. To make this work, the ack was modified into a resetable
counter that is decremented every block allocation.

As a plus, quite a bit of the allocation logic ended up simplified.
2018-04-20 15:31:55 +01:00
Christopher Haster 790ca4d31c littlefs: Fixed issue with lookahead trusting old lookahead blocks
One of the big simplifications in littlefs's implementation is the
complete lack of tracking free blocks, allowing operations to simply
drop blocks that are no longer in use.

However, this means the lookahead buffer can easily contain outdated
blocks that were previously deleted. This is usually fine, as littlefs
will rescan the storage if it can't find a free block in the lookahead
buffer, but after changes that caused littlefs to more conservatively
respect the alloc acks (e611cf5), any scanned blocks after an ack would
be incorrectly trusted.

The fix is to eagerly scan ahead in the lookahead when we allocate so
that alloc acks are better able to discredit old lookahead blocks. Since
usually alloc acks are tightly coupled to allocations of one or two blocks,
this allows littlefs to properly rescan every set of allocations.

This may still be a concern if there is a long series of worn out
blocks, but in the worst case littlefs will conservatively avoid using
blocks it's not sure about.

Found by davidefer
2018-04-20 15:31:55 +01:00