Commit Graph

25565 Commits (mbed-os-5.13)

Author SHA1 Message Date
Filip Jagodzinski a7734d0fc8 Tests: HAL API: Watchdog: Add tests 2019-07-11 11:55:04 +01:00
Bartek Szatkowski c78e6db2a7 Add definition of reset reason and watchdog doxy groups 2019-07-11 11:55:04 +01:00
Steven Cartmell be157898c1 Rename watchdog.c -> watchdog_api.c to prevent name collision with Platform API 2019-07-11 11:55:04 +01:00
Steven Cartmell 41e1d600a6 Add RESET_REASON and WATCHDOG definitions to hexiwear build target 2019-07-11 11:55:04 +01:00
Filip Jagodzinski 8158247aef K64F: watchdog HAL: Fix max_timeout.
Limit MAX_TIMEOUT_MS to UINT32_MAX.
Improve MAX_TIMEOUT_MS handling.
Fix hal_watchdog_get_platform_features() returning
.max_timeout = 0xfffffff8 instead of 0xffffffff.
2019-07-11 11:55:04 +01:00
Steven Cartmell 1f4c5b118f Fix Watchdog::stop on K64F target
WDOG_Disable will suspend the watchdog until a reset is triggered instead of stopping it altogether. Deinit will disable it until it is reinitialized.
2019-07-11 11:55:04 +01:00
Steven Cartmell a56da4f3fd Move watchdog parameter validation into the driver layer 2019-07-11 11:55:04 +01:00
Steven Cartmell c01db25544 Add missing license headers 2019-07-11 11:55:04 +01:00
Steven Cartmell 0128edd996 Remove window and sleep mode options for watchdog API 2019-07-11 11:55:04 +01:00
Steven Cartmell 0a140b97d8 Add Watchdog driver API 2019-07-11 11:55:03 +01:00
Steven Cartmell ae8896bbb5 Amend reset reason driver API
- Change API to match C++ API throughout drivers
- Amend HAL API documentation to be more specific
2019-07-11 11:55:03 +01:00
Steven Cartmell c67016eca6 Add independent watchdog reference implementation for STM32 2019-07-11 11:55:03 +01:00
Steven Cartmell c16c5184d8 Add function to fetch platform specific reset reason register values 2019-07-11 11:55:03 +01:00
Steven Cartmell 337676716c Add reset reason reference implementation STM32 2019-07-11 11:55:03 +01:00
Steven Cartmell b04eaae07f Add Reset Reason platform API 2019-07-11 11:55:03 +01:00
Steven Cartmell 2d137a3c07 Fix watchdog API issues
- Fix typo in module comment
- Redefine the default system behaviour in sleep mode
- Guard K64F enableWait flag
- Remove bit shifts from reset reason enum
2019-07-11 11:55:03 +01:00
Steven Cartmell c43eec9880 Add simple watchdog reference implementation for K64F
- Add preprocessor guard to watchdog api that errors if the reset reason api is not also implemented
- Add RESET_REASON and WATCHDOG to K64F targets.json
- Add watchdog reference implementation
2019-07-11 11:55:03 +01:00
Steven Cartmell 6a22f58e5b Add K64F reset reason reference implementation 2019-07-11 11:55:03 +01:00
Steven Cartmell a1b2419ab0 Add Watchdog HAL API specification headers
HAL watchdog functionality will be implemented as two separate APIs. The reset
reason API allows a user to detect the last system reset reason to identify if
a Watchdog was triggered. The Watchdog API allows configuring and updating
Watchdog timers on all boards. This commit defines the headers.
2019-07-11 11:55:02 +01:00
Hugues Kamba a2aaca4bcc Fix: Allow target size restriction for LPC55S69
The build tool uses the sector size found in the CMSIS Pack to determine if
the size that can be specified by `target.restrict_size` is enough to fit
all the parts of a given binary. See `target.restrict_size` documentation
in the Mbed OS manual for more information.

The sector size found in the CMSIS Pack is overriden to allow the build
tool to accurately make the decision.

The target's sectors in the CMSIS Pack are defined in 32KB pages.
However, you can erase pages at the 512 byte level.

This commit changes defined sector erase size to 512 bytes instead of
32 Kilobytes.
2019-07-11 11:55:02 +01:00
Evelyne Donnaes 4786fcaca2 Update Mbed version block 2019-07-11 11:41:31 +01:00
Mark Edgeworth cb07176ecf Removing absolute paths to compiler executables
VSCode exporter was generating a launch config that contained absolute paths to the
compiler executables. It makes more sense to use the executables that are
installed into the system PATH.
2019-07-11 11:41:30 +01:00
Mahesh Mahadevan c0f2bab022 LPC546XX: Add pins to LPCXpresso restricted list
FPGA GPIO tests cannot be run on certain pins

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-07-11 11:41:30 +01:00
Russ Butler f71baa24be Remove FPGA analog out test
Remove the analog out test temporarily due to limitations of the
FPGA rev 2 hardware.
2019-07-11 11:41:30 +01:00
Steven Cooreman 918f70c3f7 Allow re-initializing an I2C peripheral
Allows the FPGA based test to pass, but requires #11004 before it will
2019-07-11 11:41:30 +01:00
Neil Tuttle 7205238c3b Fix error in tests-mbed_drivers-ticker when LED not available 2019-07-11 11:41:30 +01:00
jeromecoutant 854ebf4e7a STM32 LPUART update 2019-07-11 11:41:30 +01:00
Przemyslaw Stekiel 05ff391030 FPGA SPI test: Fix typo 2019-07-11 11:41:30 +01:00
Przemyslaw Stekiel c4f9a8d566 FPGA SPI test: Fix unsupported transfer case
Co-Authored-By: Filip Jagodziński <fkjagodzinski@gmail.com>
2019-07-11 11:41:30 +01:00
Przemyslaw Stekiel 0b009a4029 K64F SPI driver: Add the delay between CS assertion and first sclk edge
FPGA test shield requires at lease half slck period delay between CS assertion and first sclk edge.
2019-07-11 11:41:30 +01:00
Przemyslaw Stekiel 37dcf826c3 Extend FPGA SPI test
Add test cases for:
- async mode,
- different frequencies,
- block write
2019-07-11 11:41:30 +01:00
Neil Tuttle 5233eeae5b Fix out-of-bounds array access in tests-mbedmicro-rtos-mbed-malloc 2019-07-11 11:41:30 +01:00
itziar 1348db5af7 add new target IM880B 2019-07-11 11:41:30 +01:00
Russ Butler b0de32c07c FPGA test shield: Allow any defined form factor
Build in the FPGA tests if either MBED_CONF_TARGET_DEFAULT_FORM_FACTOR
or TARGET_FF_ARDUINO is defined.
2019-07-11 11:41:30 +01:00
Filip Jagodzinski 5a007262b4 FPGA test shield: Restrict tests to Arduino FF only
Currently only the Arduino form factor is supported. Support for other
form factors will be added in the future.
2019-07-11 11:41:30 +01:00
Russ Butler 6902844cf2 Skip form factor pins marked as NC
The gpio and gpio_irq FPGA tests run on form factor pins that are
marked as NC. This patch changes that behavior so they skip NC
pins.
2019-07-11 11:41:30 +01:00
Marcin Tomczyk b02c57123a Need to change ESP8266 driver's support AT firmware version. Only AT version 1.6 0r above support AT+CWCOUNTRY command. Command AT+CWLAP format is different for version 1.6 and above 2019-07-11 11:41:30 +01:00
Arto Kinnunen abe6fbdc40 Adjust K66F GCC_ARM linker file
Move heap_0 after .data as it is also placed to m_data.
2019-07-11 11:41:30 +01:00
Kevin Bracey 7115ff9295 ARM linker: add --any_contingency option
When packing data into multiple regions using the `.ANY` directive,
the linker can accidentally overfill an area.

This doesn't normally happen because it defaults to
`--any_placement=worst_fit`, which puts data in the region with
most space.

When we prioritise regions with `.ANY1`/`.ANY2`, it may totally fill
an area, then fail to leave enough space for linker-generated veneers.
We've just seen this error with the new K64F linker map.

Adding `--any-contingency` makes it lower priority when a region is
98% full, avoiding this error.

The option should not have any effect on targets with scatter files
without prioritised `.ANY` directives.
2019-07-11 11:41:30 +01:00
Kevin Bracey ddd6c9a623 Enable split heap in K64F/K66F devices
-Enable MBED_SPLIT_HEAP for K64F and K66F
-Allow GCC_ARM toolchain to utilize remaining 64K memory area
-Make ARM toolchain to start memory filling from 64K region to leave
 more space to bigger 192K region.
2019-07-11 11:41:30 +01:00
d-kato 6d39bbd8ff Add RZ/A1 settings to arm_package_manager 2019-07-11 11:41:30 +01:00
Russ Butler 0b316ca72f Add newline after mbed error so greentea shows it
When the function `error` is called without ending in a newline
greentea will not display the error. This is because greentea is
performing line buffering.

This patch ensures that all calls to `error` end with a newline. This
is done by adding an additional newline to end end of the string.

Example code exhibiting this problem:
error("This function is not supported.");

Greentea output before this change:
++ MbedOS Error Info ++​
Error Status: 0x80FF0100 Code: 256 Module: 255​
Error Message: Fatal Run-time error​
Location: 0x1001766D​
Error Value: 0x0​
Current Thread: main  Id: 0x8003FD8 Entry: 0x1000E64F StackSize: 0x1000 StackMem: 0x8004AE8 SP: 0x8005898​
For more info, visit: https://mbed.com/s/error?error=0x80FF0100&tgt=target​
-- MbedOS Error Info --​
test suite run finished after 240.50 sec...

Greentea output after this change:
++ MbedOS Error Info ++​
Error Status: 0x80FF0100 Code: 256 Module: 255​
Error Message: Fatal Run-time error​
Location: 0x1001766D​
Error Value: 0x0​
Current Thread: main  Id: 0x8003FD8 Entry: 0x1000E64F StackSize: 0x1000 StackMem: 0x8004AE8 SP: 0x8005898​
For more info, visit: https://mbed.com/s/error?error=0x80FF0100&tgt=target​
-- MbedOS Error Info --​
This function is not supported.
test suite run finished after 240.50 sec...
2019-07-11 11:41:30 +01:00
Ganesh Ramachandran 5b70b677a4 Changes for RTC peripheral status 2019-07-11 11:41:30 +01:00
Ganesh Ramachandran 92c4acee7f Added new features to TMPM3HQ 2019-07-11 11:41:30 +01:00
Ganesh Ramachandran 254c69ad90 Changes for RTC peripheral status 2019-07-11 11:40:55 +01:00
Ganesh Ramachandran 2d1da6cfa3 Added new features to TMPM3H6 2019-07-11 11:40:55 +01:00
Teijo Kinnunen 4332d6649b LoRaPHY: Pass frequency set in rx_config() to caller
In AU/CN/US PHY, RX1 slot frequency is calculated in rx_config().
Since the caller is printing it to log, modify the frequency in
parameter structure so that the correct value will be printed.
2019-07-11 11:40:55 +01:00
Teemu Takaluoma a39a849ee1 Add FLASHIAP for MTB_STM_S2LP
Fix device management client compilation on MTB_STM_S2LP

Fixes:

./mbed-cloud-client/mbed-client-pal/Source/Port/Reference-Impl/OS_Specific/mbedOS/ROT/pal_plat_rot.cpp:67:5: error: 'DeviceKey' was not declared in this scope
    DeviceKey &devkey = DeviceKey::get_instance();
2019-07-11 11:40:55 +01:00
Tymoteusz Bloch 8213d94744 Nordic NRF52832 onboard instruction cache is turned ON to increase MCU performance 2019-07-11 11:40:55 +01:00
ThunderSoft_mbed_os 8e9cfca7ad Update gpio_irq_api.c 2019-07-11 11:40:55 +01:00