Commit Graph

26823 Commits (fea3fd49becbcf1d8296c02c7b39b2493ab3514c)

Author SHA1 Message Date
Seppo Takalo fea3fd49be Add empty unittest to generate zero baseline for untested files. 2019-11-18 15:47:40 +00:00
Seppo Takalo 4a8ee7e930 Add enough stubs to allow drivers/* to compile. 2019-11-18 15:47:40 +00:00
Seppo Takalo 0bb36917e9 Remove extra GCC arquements.
"--coverage" is synonym to "-fprofile-arcs -ftest-coverage"
https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html

This was causing extra compilation warnings on CLANG.
2019-11-18 15:42:08 +00:00
Wajahat Abbas 527ffa1e15 Ensure modem echo is off 2019-11-18 15:42:08 +00:00
Antti Kauppila d31a139e65 Unittests fixed 2019-11-18 15:42:08 +00:00
Antti Kauppila b84057611c Baremetal profile fixes 2019-11-18 15:42:08 +00:00
Tymoteusz Bloch a191a60cd5 NSAPI DNS query IP version check for non LWIP stacks. 2019-11-18 15:42:08 +00:00
Marcin Tomczyk a7054d7b93 UDPSOCKET_ECHOTEST change to tolerate duplicate packets 2019-11-18 15:42:08 +00:00
Jayasankar Nara c5fbea79cc Add API to get ipv6 link local address.
Protocols like mdns requires IPv6 link local address to be advertised in its
records (AAAA record). LWIP::Interface::bringup() API is creating IPv6 link
local address;But as of now there is no API exposed by mbed-os to get the
IPv6 link local address.

This new API is required to deliver mDNS library support on mbed-os for Cypress
platforms. Unit tested it by invoking get_ipv6_link_local_address with a simple
application.
2019-11-18 15:42:08 +00:00
mudassar-ublox 129c0a923e updated cellular context flags and cid in ublox-api 2019-11-18 15:42:08 +00:00
Qinghao Shi 6ae70e8ebe TEST: turn on sub examples build test 2019-11-18 15:42:08 +00:00
Qinghao Shi 0fc8e9d217 TEST: update example.json file 2019-11-18 15:42:08 +00:00
Qinghao Shi 66ae04fb21 TEST: add atecc608a example to compilation test 2019-11-18 15:42:08 +00:00
Chun-Chieh Li 57eb745642 NANO130: Remove unnecessary synchronization in analog-in HAL
Driver AnalogIn has done with it, so remove synchronization in analog-in HAL.
2019-11-18 15:42:08 +00:00
Chun-Chieh Li d15ba694e1 Nuvoton: Add i2c_free
1.  Disable interrupt
2.  Disable IP clock
3.  Free up pins

Support targets:

-   NUMAKER_PFM_NANO130
-   NUMAKER_PFM_NUC472
-   NUMAKER_PFM_M453
-   NUMAKER_PFM_M487/NUMAKER_IOT_M487
-   NU_PFM_M2351*
-   NUMAKER_IOT_M263A
-   NUMAKER_M252KG
2019-11-18 15:42:08 +00:00
Chun-Chieh Li 5bceee859b Nuvoton: Add analogin_free
1.  Deal with channel-wise and module-wise
2.  Disable IP clock
3.  Free up pin

Support targets:

-   NUMAKER_PFM_NANO130
-   NUMAKER_PFM_NUC472
-   NUMAKER_PFM_M453
-   NUMAKER_PFM_M487/NUMAKER_IOT_M487
-   NU_PFM_M2351*
-   NUMAKER_IOT_M263A
-   NUMAKER_M252KG
2019-11-18 15:42:08 +00:00
Przemyslaw Stekiel de8e2b525a Fix for issue #11769 (Cypress: PWM FPGA test wrong assert)
Implementation of pwmout_read() is not consistent with the requirements.
This function should return the current float-point output duty-cycle in range <0.0f, 1.0f>.
Currently it returns decimal percentage value.
2019-11-18 15:42:08 +00:00
Mark Edgeworth b16c2f069b IOTBTOOL-377: Fix scatter file include path online 2019-11-18 15:42:08 +00:00
Seppo Takalo 9a7a781078 Display full path of generated coverage output from unittests. 2019-11-18 15:42:08 +00:00
Ryan Morse ff06d19852 Update CM0P pre-built images to release 1.0.0.35 2019-11-18 15:42:08 +00:00
Hugues Kamba 0dd7e85605 USB-Cypress: Lock sleep when USB is initialized
None of the USB drivers currently support entering deep sleep mode
while USB is active. To protect USB from malfunctioning lock deep
sleep in USBPhyHw::init.This is done for similar

This was done for all other implementations as part of
https://github.com/ARMmbed/mbed-os/commit/8ffbe5c6033
2019-11-18 15:42:08 +00:00
Laurent Meunier bf3dda363e STM32 QSPI: Use defines for setting address size 2019-11-18 15:42:08 +00:00
yarb bf60bc5e5c Cypress: fix gpio mode none 2019-11-18 15:42:08 +00:00
Janne Kiiskila 132e76913b Fix for the H747 flash driver / cache cleaning
This copies the approach of the STM32F7 flash driver submitted via
PR https://github.com/ARMmbed/mbed-os/pull/10248

With this change the board finally passes all of the device key
tests 10/10 times correctly.
2019-11-18 15:42:08 +00:00
Janne Kiiskila 62f1b0c43c Add default TDBStore location for DISCO_H747I (end of BANK1)
Place it at the end of the bank1, last two erase sectors.
As erase sector is 128 kB, default size must be double of that.

This can't be in bank2 as that is apparently dedicated to the M4 core.

Memory map is available in;

https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/flash_data.h

Memory map does not have this information, but issue [11617](https://github.com/ARMmbed/mbed-os/issues/11617) has.
2019-11-18 15:42:08 +00:00
Janne Kiiskila 03745c8ed9 DISCO_H747I - define default storage (TDB_INTERNAL)
DeviceKey needs the definition of the default storage place,
define it to be TDB_INTERNAL (as for the other boards).
2019-11-18 15:42:08 +00:00
Janne Kiiskila 3cb734df16 Add FLASHIAP component to DISCO_H747
FLASHIAP component/capability is needed for DeviceKey functionality
and also for Pelion enablement - firmware update uses this feature, too.
2019-11-18 15:42:08 +00:00
Laurent Meunier 7461a7a0f8 Increase STM32 default deep sleep latency to 4ms
Recent measurements have shown that the total wake-up latency can be more
than the 3ms initially set. It was measured as 3,7ms on DISCO_L475VG_IOT01A
target and 3,1ms on NUCLEO_L073RZ target. So set it to 4ms to be on the
safe side.
2019-11-18 15:42:08 +00:00
Jammu Kekkonen 14ac203a3a Add option to use CCMRAM on F303xE. 2019-11-18 15:42:08 +00:00
jeromecoutant aa83d2395f GREENTEA: init trace if trace is enabled in json 2019-11-18 15:42:08 +00:00
Ryan Morse c4ac78b7aa Added CYW9P62S1_43012EVB_01 board Notes: - CRC and TRNG are disabled on this board since the MCU on this board does not have the required hardware. - QSPI and QSPIF are temporarily removed due to issues related to supporting the new S25FS512S flash chip we have on this board. These will be enabled as soon as we can get the issues resolved. https://github.com/ARMmbed/mbed-os/issues/11722 2019-11-18 15:42:08 +00:00
Mirela Chirica 586ce90e27 Cellular: Added write_hex_string to AT handler 2019-11-18 15:42:08 +00:00
Maciej Bocianski 7ae3510adf NRF52: fix i2c byte read/write implementation
i2c_byte_write implementation was broken.
Data sending was inside addressing block

Changed from:
i2c_byte_write
{
   if (start) {
      if (read_address)
         start read;
      esle
         start write;
      write byte;
   }
}

to:
i2c_byte_write
{
   if (start) {
      // if first call after start
      // address for reading or writing
      if (read_address)
         start read;
      esle
         start write;
      } else {
         // send data byte
         write byte;
   }
}
2019-11-18 15:42:08 +00:00
Maciej Bocianski bda1074f70 NRF52: fix i2c timeouts
add tick to us conversion
2019-11-18 15:42:08 +00:00
Filip Jagodzinski f5481f0876 Test: Fix the reset_reason host test in the CI
Use a BaseHostTestAbstract.reset() method instead of
BaseHostTestAbstract.reset_dut() for more consistent behavior with
various platforms in the CI.

In contrast to a local setup, the reset_dut() method flashes the binary
again after performing the reset in a remote setup (RaaS). This was not
intentional in reset_reason tests. Moreover, this led to a different
behavior (a different reset_reason) for different flashing methods which
are target specific.
2019-11-18 15:42:08 +00:00
Mike Naberezny 268e956c30 FlashIAP: Get erase value from HAL instead of hardcoding it 2019-11-18 15:42:08 +00:00
Ari Parkkila fef3fd2ea0 Allow OS_THREAD_LIBSPACE_NUM as a macro 2019-11-18 15:42:08 +00:00
Maciej Bocianski b4bddf67ed fpga i2c test: limit tested peripherals
Due to lack of i2c_free function switching between peripherals
cause i2c tests failures on some targets.
For now limit testing to single peripheral.
2019-11-18 15:42:08 +00:00
desmond.chen 9b123b8d70 Handle legacy process event first on connection complete 2019-11-18 15:42:08 +00:00
Qinghao Shi 1424d964fc EXAMPLES: temporarily turn off build for NFC examples 2019-11-18 15:42:08 +00:00
Qinghao Shi 6458bf0468 EXAMPLES: fix a typo in the path 2019-11-18 15:42:08 +00:00
Amanda Butler 3042da2dd0 Edit README.md
Edit file, mostly for formatting and grammar.
2019-11-18 15:42:08 +00:00
Qinghao Shi 9f183738ff EXAMPLES: remove default build profiles 2019-11-18 15:42:08 +00:00
Qinghao Shi 668db82480 EXAMPLES: add README file 2019-11-18 15:42:08 +00:00
Qinghao Shi e5942e621d EXAMPLES: temporarily turn off the complie test for sub example 2019-11-18 15:42:08 +00:00
Qinghao Shi 42b9b61f88 EXAMPLES: update comments and fix bugs 2019-11-18 15:42:08 +00:00
Qinghao Shi 4292281553 EXAMPLES: update console output format 2019-11-18 15:42:08 +00:00
Qinghao Shi f4d287ffd5 EXAMPLES: update build_repo function 2019-11-18 15:42:08 +00:00
Qinghao Shi 9870891d13 EXAMPLES: update export_repos function 2019-11-18 15:42:08 +00:00
Qinghao Shi a6bb82abdb EXAMPLES: update examples_lib.py - add logging function - update clone function - update deploy function - update source function - add symlink function 2019-11-18 15:42:08 +00:00