Commit Graph

26840 Commits (b0e9fd7438386ea40950a5b51dcde0aa066b52df)

Author SHA1 Message Date
Kevin Bracey b0e9fd7438 Test equeue_cancel returns 2019-11-18 15:48:17 +00:00
Kevin Bracey 73cfcb598f equeue: avoid non-standard bit shifts
Shifting negative numbers right is implementation-defined, and shifting
positive signed numbers left and exceeding positive range is undefined.

Take care to make sure we always shift unsigned values.
2019-11-18 15:48:17 +00:00
Maciej Bocianski 13fa66e37f LPC55S69: fix serial_set_flow_control 2019-11-18 15:48:17 +00:00
Janne Kiiskila a6277fb599 DISCO_H743ZI/ZI2 - mbed_ram_start/size
Adding the RAM definitions per request of Jerome Coutant.
2019-11-18 15:48:17 +00:00
jeromecoutant 2c554715ac Review fixes for STM32H7 target.json
The proposed review fixes by Jerome, cherry-picked in.

(cherry picked from commit fb15f023a9b7b679301b45eaa160ae8cb2e1f23c)
Signed-off-by: Janne Kiiskila <janne.kiiskila@arm.com>
2019-11-18 15:48:17 +00:00
Janne Kiiskila d41e18337a NUCLEO_H743ZI2 - MBED ROM, FlashIAP
Add definitions for H743ZI2, required by bootloader.
2019-11-18 15:47:40 +00:00
Janne Kiiskila 5d15568df3 DISCO_H747I - MBED_ROM & device name definition
Compilation of bootloader requires these parameters.
2019-11-18 15:47:40 +00:00
Janne Kiiskila 2b40bcb89b Update CMSIS pack index json for STM32H7xx family
Manually replaced the existing STM32H7 section and replaced it with the
context of updated `index.json` that pulled in the Keil packs available
today, as of 18th October, 2019.

See related PR; https://github.com/ARMmbed/mbed-os/pull/11707
2019-11-18 15:47:40 +00:00
Ryan Morse ba19dfb190 Update common libraries
Updated Serial Flash interface & Network buffer classes to avoid warnings and improve robustness. Fixed issue with mbed_overrides trying to use an old implementation of cy_serial_flash_init() function.
2019-11-18 15:47:40 +00:00
Seppo Takalo d842762dd5 Remove commented-out code 2019-11-18 15:47:40 +00:00
Seppo Takalo 4f86135dc4 Remove linefeeds from debug prints 2019-11-18 15:47:40 +00:00
Seppo Takalo 1a90105bd7 Remove usage of Mbed TLS internal function from DeviceKey.
DeviceKey was using mbedtls_ssl_safer_memcmp() to compare result against
buffer of equal length, but zero content. This comparison makes no sense
as the entropy function is already returning proper error, if it fails.
2019-11-18 15:47:40 +00:00
Seppo Takalo 90b7cc4ce3 Add moduletest for SlicingBlockDevice
This uses HeapBlockDevice for providing the underlying storage block.
Check boundaries that slicingblockdevice do not overlow over to unassigned
blocks.
2019-11-18 15:47:40 +00:00
Seppo Takalo 957ed97cd7 IOTSTOR-953: Fix address calculations from SlicingBlockDevice
* Change MBED_ASSERTS() to return valid error code, so that
  checks are not bypassed on release builds.
* Fix starting address calculations so that "addr" parameter is always
  relative to SlicingDevice and "_start" is only added when calls to
  underlying storage block is made.
* Bypass BlockDevice:is_valid_*() to underlying block device.
  Slicingblockdevice was just verifying addresses independently, without
  verifying those from underlying block storage.
2019-11-18 15:47:40 +00:00
Seppo Takalo 6532f2515d Add unittest for HeapBlockDevice and change some MBED_ASSERTS to errors. 2019-11-18 15:47:40 +00:00
Seppo Takalo 94d9093c34 Add some functionality to atomic stubs 2019-11-18 15:47:40 +00:00
Seppo Takalo 5fecf6afa2 Add storage related files to baseline unittest.
* Refactor some headers to use relative path from Mbed OS root.
* Refactor some data types to compile on 64bit machines.
* Refactor some debug traces to use mbed_trace.
2019-11-18 15:47:40 +00:00
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