Commit Graph

25291 Commits (51835f005bc760398373d4cd71535e30d6d6ed00)

Author SHA1 Message Date
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
ThunderSoft_mbed_os 6d5ff0bb64 Update gpio_irq_api.c 2019-07-11 11:40:55 +01:00
panyz0725@thundersoft.com 81edde1f13 Add GPIO INT pin with PT1 2019-07-11 11:40:55 +01:00
Ganesh Ramachandran e74f84fddb Changes for RTC peripheral status 2019-07-11 11:40:55 +01:00
Ganesh Ramachandran 764f9ffbcf Removed dead code in TMPM4G9 - rtc_api.c 2019-07-11 11:40:55 +01:00
Ganesh Ramachandran a43e157d8d ARMC5 updated to ARM for TMPM4G9 2019-07-11 11:40:55 +01:00
Ganesh Ramachandran 1b010a3fee Added SPDX identifier 2019-07-11 11:40:55 +01:00
Ganesh Ramachandran 7a9145f8e9 Added new features to TMPM4G9 2019-07-11 11:40:55 +01:00
George Beckstein 6f331ef96e Remove flexing on Tesla 💪💪💪 2019-07-11 11:40:55 +01:00
Przemyslaw Stekiel 306ecbe9cc FPGA uart test: Remove unsupported test cases
Not all uart features are supported by specific platforms.
2019-07-11 11:40:55 +01:00
Przemyslaw Stekiel a887855250 FPGA Analogin test: Remove test case which can not be executed
The test case which checks full range cannot be executed at the moment due to a hardware bug in FPGA-Test-Shield.
This test case will be restored when the final version of FPGA-Test-Shield is ready.
2019-07-11 11:40:55 +01:00
Przemyslaw Stekiel cd1321d59f FPGA Analogout test: mark dead code as debug code, increase tolerance 2019-07-11 11:40:54 +01:00
Przemyslaw Stekiel dff4f3b536 FPGA Analogin test: Remove usage of FULL_TEST_SHIELD symbol, increase tolerance
Keep "AnalogIn - full test" disabled due to hardware issue in the first rev of FPGA Test Shield.
2019-07-11 11:40:54 +01:00
Przemyslaw Stekiel 2f90312547 FPGA I2C test update.
Divide one test case to four test cases to increase readability.
Adapted to the last version of the FPGA CI Test Shield API.
2019-07-11 11:40:54 +01:00
Przemyslaw Stekiel 7ae579b890 Bring FPGA-Test-Shield tests into Mbed-os master. 2019-07-11 11:40:54 +01:00
Darryl Green f4966c86b7 Add adjust-check-config script to mbedtls importer
In Mbed OS, there are configuration options with Mbed TLS that we
are more comfortable allowing than we do with Mbed TLS on its own.
Add a check-config adjusting script to enable removing or changing
options in check_config.h
2019-07-11 11:40:54 +01:00
Maciej Bocianski 7bf3b877f3 I2CTester: fix dosc 2019-07-11 11:40:54 +01:00
Maciej Bocianski 30276f27cb I2CTester: add address mismatch statistics 2019-07-11 11:40:54 +01:00
Maciej Bocianski e036b6f726 I2CTester: upgrade checksum calculation 2019-07-11 11:40:54 +01:00
Tymoteusz Bloch f7fced62a6 IAR icf linker scripts modified to use dynamic heap allocation of all available memory. 2019-07-11 11:40:54 +01:00
Tymoteusz Bloch 81fc8b4f5d Wait_ns () internal delay loop code alignment to 16 for decreasing execution time. 2019-07-11 11:40:54 +01:00
Antti Kauppila cd1c7863b7 Fixed unittests 2019-07-11 11:40:54 +01:00
Antti Kauppila 85470e759b Doubled ATHandler's BUFF_SIZE 2019-07-11 11:40:54 +01:00
George Beckstein a2e382124a Apply same resolution fix to nRF52832 targets 2019-07-11 11:40:54 +01:00
George Beckstein 634b10b864 Fix SAADC resolution set in sdk_config. analogin_read_u16 assumes 12-bit range but config was set to 10 bit range causing incorrect readings to be returned. 2019-07-11 11:40:54 +01:00