Commit Graph

1110 Commits (9bed429aa034c0ae3c71d601f277e005554fd000)

Author SHA1 Message Date
adustm a08eec05c0 NUCLEO_F756ZG/mbedTLS : add hw acceleration for SHA1 2017-07-25 11:21:45 +02:00
Jimmy Brisson 579bb3e994 Merge pull request #4778 from c1728p9/rebase_4161
Add AES HW encryption for NUCLEO_F756ZG in mbedtls
2017-07-24 10:58:32 -05:00
Jimmy Brisson b917dbaa1e Merge pull request #4774 from c1728p9/runtime_test_specification
Add support for runtime test specification
2017-07-24 10:57:49 -05:00
Jimmy Brisson 6b6456ffa4 Merge pull request #4741 from jeromecoutant/PR_USB_ST
ST USB config files
2017-07-24 10:54:24 -05:00
Jimmy Brisson 4b19e14f8e Merge pull request #4706 from yogpan01/master
Fix inconsistent mbed-trace dummy defines and original function declarations
2017-07-24 10:51:26 -05:00
Jimmy Brisson 766b240a3b Merge pull request #4662 from Nodraak/fix/4661
[BLE/HRM] Fix #4661
2017-07-24 10:44:48 -05:00
Adrien Chardon 2a39019766 Fix infinite calling loop 2017-07-24 14:18:21 +02:00
Mika Leppänen 844e400aa2 Merged lwip 2.0.2 stable
* commit '7bbc850309fed8bf63017821f18aff03bca9233b':
  Squashed 'features/FEATURE_LWIP/lwip-interface/lwip/' changes from 10f93f4..7648b58
2017-07-24 13:17:40 +03:00
adustm a89860c81d fix typo in directory name 2017-07-18 17:09:56 -05:00
adustm 1ae5f8cdaa Add AES HW encryption for NUCLEO_F756ZG in mbedtls 2017-07-18 17:09:54 -05:00
Russ Butler e46bb0ed15 Add support for runtime test specification
Add a constructor which explicitly takes the number of test cases.
This allows a test case array created at runtime to be used.
2017-07-18 12:03:06 -05:00
Jesse Marroquin 3a4138369d Update BLE, fix sleep and open-drain LEDs in MAX326xx
MAX32630FTHR gets BLE, uses timer peripheral 5 for HCI timing
libexactLE update for 610,620
Fixup hal_sleep and hal_deepsleep for 620
LEDn outputs now forced to open-drain
2017-07-14 17:36:56 -05:00
Jaeden Amero 6f1bb67b55 uVisor: Import v0.29.0 2017-07-13 16:47:47 +01:00
Jaeden Amero f080a0ea6c uVisor: importer: Copy uvisor-tests pointer
This enables mbed-os and uvisor-tests to stay synchronized.
2017-07-13 16:47:43 +01:00
Martin Kojtal b685fe89b1 Merge pull request #4592 from KariHaapalehto/connect_timeout
[ONME-3089] - Adjust lowpan ND interface connect timeout
2017-07-13 16:50:19 +02:00
Martin Kojtal 1849370100 Merge pull request #4652 from geky/fat-fix-unaligned-ioctl
fatfs: Fix unaligned access in disk_ioctl
2017-07-13 16:49:01 +02:00
Martin Kojtal 7d1e87a5b3 Merge pull request #4677 from u-blox/ppp_stack_increase
Increase default PPP stack size from 512 bytes to 768 bytes.
2017-07-13 16:44:30 +02:00
Yogesh Pande fbb12adbc4 Fix inconsistent mbed-trace dummy defines and original function declarations. 2017-07-12 06:39:09 -07:00
andreas.larsson ef232dbae5 Renamed so that we have one configuration for all STM32F439 targets. 2017-07-12 12:13:09 +02:00
jeromecoutant bdd4f18acb ST USB config files 2017-07-11 16:29:44 +02:00
Kari Haapalehto f3c7e0dbc0 ONME-3113: Fix GCC_ARM and ARM compiler warnings from mbed-mesh-api
Warning #1300-D: inherits implicit virtual
- Adding the virtual keyword in the derived class prevents the warning

Warning #1-D: last line of file ends without a newline
- New line added at the end of file

Warning #997-D:
function "MeshInterfaceNanostack::initialize(NanostackPhy *)" is hidden
by "ThreadInterface::initialize"  -- virtual function override intended?
- virtual keyword removed from "MeshInterfaceNanostack::initialize"

Warning #1300-D: inherits implicit virtual
- Adding the virtual keyword in the derived class prevents the warning
2017-07-11 15:56:08 +03:00
Jimmy Brisson a052fa3d45 Merge pull request #4561 from geky/fat-fs-volume-prefixes
fatfs: Add full support for multiple fs volume prefixes
2017-07-10 12:05:43 -05:00
Jimmy Brisson 868adafe57 Merge pull request #4518 from mazimkhan/mbed-tls-test-deploy
Add new target in mbedtls importer Makefile for mbedtls tests
2017-07-10 12:03:47 -05:00
Anna Bridge 744b2a2579 Merge pull request #4546 from bridadan/fix_test_prints
Fix bad test print and move locks for printf into macro.
2017-07-07 12:44:50 +01:00
Anna Bridge 4890261c98 Merge pull request #4548 from deepikabhavnani/os_warn
Resolve Warnings for mbed-os-examples
2017-07-07 12:43:27 +01:00
Jimmy Brisson dea489ef29 Merge pull request #4163 from adustm/STM_aes_l486rg
STM32L486RG/mbedtls: add aes hw acceleration
2017-07-06 10:17:15 -05:00
Kevin Bracey 17f1111817 Merge commit '0613e29fde32daa609eb6ae4ad785112b8fd9729'
* commit '0613e29fde32daa609eb6ae4ad785112b8fd9729':
  Squashed 'features/FEATURE_COMMON_PAL/nanostack-libservice/' changes from 6444c8a..854505d
2017-07-06 12:03:42 +03:00
Azim Khan 5067db07ae Add deploy-tests to the .PHONY target 2017-07-04 19:26:31 +01:00
Adrien Chardon 27901f24b9 BLE/GattCharacteristic: Add explanatory note for a parameter 2017-07-04 15:10:48 +02:00
Adrien Chardon 05c3ddf691 BLE/HRS: Fix #4661 2017-07-04 15:10:20 +02:00
Rob Meades 921d1fa6fa Increase PPP stack size from 512 bytes to 768 bytes.
PPP is running close to the edge of its default thread stack size of 512 bytes. When it experiences an FCS error on the incoming data (for example. caused by character loss when the incoming serial rate is too high for it to process in time) it performs some additional work which overruns the thread's stack, hitting the OS "stack underflow" check. Increasing the PPP stack size to 768 bytes resolves this problem.
2017-07-03 09:46:23 +01:00
Martin Kojtal 334c02f7d4 Cellular: not-supported error if MODEM_ON_BOARD not defined
If a test is empty, it leads to undef. Therefore if a test requires additional
details, it should print an error [NOT SUPPORTED].
2017-06-30 10:01:46 +01:00
Christopher Haster 1775e1f782 fatfs: Added full support for multiple fs volume prefixes
This is only an issue when multiple fatfss are used simultaneously.
Repeated use of a single fatfs instance (even with different storages)
do not show this issue.

Full support requires path prefixes being applied for every function
that takes a path. Note: this is only required filesystems after the
first mounted filesystem. The first filesystem has no penalty.
2017-06-29 16:56:14 -05:00
Jimmy Brisson 9f829ffe26 Merge pull request #4559 from geky/fat-remove-fat_filesystem_set_errno
fatfs: Remove unused fat_filesystem_set_errno function
2017-06-29 11:06:22 -05:00
Jimmy Brisson 8f42c87ab7 Merge pull request #4446 from hasnainvirk/add_cellular_unit_tests
Customer port verification tests for cellular
2017-06-29 11:04:56 -05:00
adustm e2c96e9b7a Move definitions in aes_alt.c + Factorize code 2017-06-29 16:09:34 +02:00
adustm 2da3128a2a STM32L486RG/mbedtls: add aes hw acceleration 2017-06-29 16:05:45 +02:00
Kari 3c44a20dd0 [ONME-3089] - Adjust lowpan ND interface connect timeout
Device needs to wait for connectivity:
-routers will create new network and get local connectivity
-end device will get connectivity once attached to existing network
-devices without network settings gets connectivity once
 commissioned and attached to network

Signed-off-by: Kari <kari.haapalehto@arm.com>
2017-06-29 11:02:04 +03:00
Jimmy Brisson a39ac60305 Merge pull request #4159 from adustm/STM_sha256_F439ZI
NUCLEO_F439ZI/mbedtls: add SHA256 hw_acceleration
2017-06-28 09:31:25 -05:00
Christopher Haster a9f5d886fb fatfs: Fix unaligned access in disk_ioctl
Unlike the other disk_ioctl options, GET_SECTOR_SIZE is interpreted
as a 16-bit WORD, instead of a 32-bit DWORD. This caused an unaligned
access error on M0 platforms.
2017-06-27 15:44:04 -05:00
Mihail Stoyanov 717150cdf2 Reorganize vendor specific code into targets folders, following the mbed-os/targets/ design pattern 2017-06-27 14:20:36 -05:00
Martin Kojtal f530714bca Merge pull request #4639 from theotherjimmy/fix-lrwan1-usbhal
Deduplicate USBHAL_STM_TARGET.h
2017-06-27 14:46:27 +02:00
Armelle DUBOC ec72ac0a28 Merge branch 'master' into STM_sha256_F439ZI 2017-06-27 08:25:42 +02:00
Jimmy Brisson e3e54e5fd3 Merge pull request #4607 from geky/fix-mbr-init
bd: Fix missing init in MBRBlockDevice
2017-06-26 15:28:16 -05:00
Jimmy Brisson 453d9ee96c Deduplicate USBHAL_STM_TARGET.h 2017-06-26 14:55:29 -05:00
Jimmy Brisson 0a2a48c957 Merge pull request #4157 from adustm/STM_sha1_F439ZI
NUCLEO_F439ZI/mbedtls: add SHA1 hw_acceleration
2017-06-26 10:28:49 -05:00
Jimmy Brisson d103979e92 Merge pull request #4572 from bcostm/add_usb_disco_l072cz
DISCO_L072CZ_LRWAN1: Add support of USB Device
2017-06-26 10:28:31 -05:00
Jimmy Brisson 1dfc2296a7 Merge pull request #4400 from jeromecoutant/PR_USB_REORG
STM32 USBDevice files
2017-06-26 10:21:19 -05:00
bcostm 43646330e9 DISCO_F413ZH: Add this board in mbedOS2 CAN tests 2017-06-22 09:23:06 +02:00
arostm 5e3350ce38 DISCO_F413ZH: Modification needed to build 2017-06-22 09:07:00 +02:00
Christopher Haster f2c93c7724 bd: Add asserts on initialization in HeapBlockDevice 2017-06-21 13:51:57 -05:00
Christopher Haster adc3d75936 bd: Fix missing init in MBRBlockDevice 2017-06-21 13:33:40 -05:00
bcostm cc47104059 DISCO_L072CZ_LRWAN1: Remove unused code 2017-06-20 16:12:32 +02:00
bcostm 24d94c8425 DISCO_L072CZ_LRWAN1: Add USB device configuration files 2017-06-20 16:07:07 +02:00
Anna Bridge c5e1fa70d9 Merge pull request #4242 from bcostm/dev_disco-l475-iot
DISCO_L475VG_IOT01A : Add new target
2017-06-20 11:41:42 +01:00
Anna Bridge b30481d266 Merge pull request #4523 from hasnainvirk/eth_flag_lwip
Check Ethernet before including lwipopts_conf.h
2017-06-20 11:40:23 +01:00
Jimmy Brisson c08864b588 Merge pull request #4444 from Archcady/lwip_issue
resolve lwip init twice issue
2017-06-19 18:28:49 -05:00
Jimmy Brisson 1ffbdfc048 Merge pull request #4364 from mazimkhan/mbed-tls-test
Add C API for Greentea client
2017-06-19 11:58:47 -05:00
Jimmy Brisson a6695ae5a8 Merge pull request #4504 from geky/gt-add-reserved-memory-reporting
greentea: Add reporting of reserved heap
2017-06-19 11:03:30 -05:00
Jimmy Brisson e4bdedc7c2 Merge pull request #4562 from geky/fat-init-bd
fatfs: Fixed initialization of block device in mount/unmount functions
2017-06-19 11:02:52 -05:00
adustm e63912ff44 Check that the HASH is not busy before save and restore iHW registers 2017-06-16 11:03:50 +02:00
adustm 842791bef7 handle context swap + change macro name 2017-06-16 11:03:46 +02:00
adustm 85d68e32f7 replace 64 by define 2017-06-16 11:03:41 +02:00
adustm b38eea2caf Remove tabs, fix doxygen comments 2017-06-16 11:03:32 +02:00
adustm c2a85fb12a Rework SHA1 update for buffer <4 bytes management 2017-06-16 11:03:27 +02:00
adustm ca65e01ffa Handle 64 bytes buffers 2017-06-16 11:03:23 +02:00
adustm dac9004684 Move MBEDTLS_SHA1_C from mbedtls_device.h to targets.json 2017-06-16 11:02:42 +02:00
adustm 85d549c902 Improve memory management 2017-06-16 11:02:38 +02:00
adustm f26ae03e48 Remove unneeded function declarations + include file
Move include platform from sha1_alt.h to sha1_alt.c
2017-06-16 11:02:33 +02:00
adustm 996e093b77 Better explanation of the use of mbedtls_sha1_context fields 2017-06-16 11:02:29 +02:00
adustm 1695e9a7bb use mbedtls_zeroize instead of memset(xxx,0,xxx) 2017-06-16 11:02:24 +02:00
adustm ddd186cc61 NUCLEO_F429ZI/mbedtls: add SHA1 hw_acceleration 2017-06-16 11:01:43 +02:00
adustm a27498c44a Check HASH is not busy before save/resteore context 2017-06-16 10:48:41 +02:00
adustm 021b84a140 Handle context swapping + rename macro ST_SHA256_BLOCK_SIZE
Handle 64 bytes accumulation
2017-06-16 10:47:31 +02:00
adustm f1704733af Remove trailing whitespace 2017-06-16 10:47:18 +02:00
adustm 80b58614a2 SHA256: get ready to return error codes 2017-06-16 10:47:07 +02:00
adustm b929b54b7c Replace 64 by MBEDTLS_SHA256_BLOCK_SIZE 2017-06-16 10:46:56 +02:00
adustm 4976e2f3c7 Align SHA256 with MD5 and SHA1 implementation
This will solve Size <4 issues
2017-06-16 10:43:54 +02:00
adustm 0805876e0b NUCLEO_F429ZI/mbedtls: add SHA256 hw_acceleration 2017-06-16 10:43:43 +02:00
Deepika 7e9ea9c665 Resolved format warnings: format '%d' expects argument of type 'int', but argument 3 has type 'u32_t[-Wformat=] 2017-06-15 15:20:26 -05:00
Deepika 818f82c5bd Typecasting to int to resolve warning:#68-D: integer conversion resulted in a change of sign 2017-06-15 11:50:52 -05:00
Sam Grove 109269da9c Merge pull request #4414 from tkaman/master
Enable CM3DS_MPS2 target
2017-06-15 11:20:09 -05:00
Christopher Haster d7fe4ff599 fatfs: Fixed initialization of block device in mount/unmount functions
At some point the "mount" parameter for "f_mount" was name "force". This
led to a bit of confusion that ended with the default mount function
never calling block device init.

This is fine, since the block device can be manually initialized, but
a better user experience is where the filesystem initializes the block
device for the user.

This is backwards compatible due to the repeatability of the block
device init functions.
2017-06-14 16:35:15 -05:00
Christopher Haster f158d81aab fatfs: Removed unused fat_filesystem_set_errno function
At some point this was replaced by fat_error_remap
2017-06-14 15:29:30 -05:00
Brian Daniels 0eb174912e Fix bad test print and move locks for printf into macro.
A message of "Failed to close socket" was always being printed, not
just when the socket failed to close. This patch fixes this in
addition to a simplifying the call to a thread safe printf.
2017-06-13 16:28:16 -05:00
Yuguo Zou b1ca77b6b8 A better approach to flip "netif_inited" 2017-06-13 18:04:00 +08:00
Azim Khan 0b929199e4 Remove multiple definition of GREENTEA_SETUP added due to rebase 2017-06-13 10:02:55 +01:00
Russ Butler 9620b0fc7f STM32 - fix bug were sockets stop receiving data
The function _eth_arch_low_level_input() is meant to pass data into
LWIP and to prepare the ethernet buffers to receive more data.
If the LWIP heap is empty and the call to pbuf_alloc() in
_eth_arch_low_level_input returns null, the ethernet receive buffers
are not updated to receive data. Because of this the ethernet RX
interrupt will not fire. Since the RX interrupt is the only thing that
triggers a call to _eth_arch_low_level_input(), the receive buffers
will never get cleared, and the device stops receiving data.

To prevent this from happening, this patch ensures that the function
_eth_arch_low_level_input() clears the receive buffers even if a new
pbuf for the data couldn't be allocated.

This issue can be reproduce by running the test
"features-feature_lwip-tests-mbedmicro-net-udp_echo_parallel"
and on the same machine running the below python script to flood the
device with UDP broadcast packets:

MY_IP = #ADD your local IP here
from socket import *
s = socket(AF_INET, SOCK_DGRAM)
s.bind((MY_IP, 1234))
s.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
s.setsockopt(SOL_SOCKET, SO_BROADCAST, 1)
for _ in range(1000):
    s.sendto("test data", ('255.255.255.255', 1234))
print("Message sent")
2017-06-12 22:18:04 -05:00
bcostm f6a48838ad DISCO_L475VG_IOT01A: Move USB device config files 2017-06-12 17:03:12 +02:00
bcostm 6c585e6e05 DISCO_L475VG_IOT01A: add this target in i2c master/slave tests 2017-06-12 17:03:12 +02:00
bcostm 8c7000cce4 Add "01A" suffix in target name 2017-06-12 17:03:12 +02:00
bcostm 9ced451307 Add target in unsupported main.cpp test files 2017-06-12 17:03:12 +02:00
Azim Khan b3cbb07566 Merge greentea-client/test_env_c.h into greentea-client/test_env.h 2017-06-12 13:46:22 +01:00
Azim Khan 82d948de6b Revert greentea_getc() to return 'int' 2017-06-12 13:46:22 +01:00
Azim Khan 088d151507 Use existing functions for Greentea client C API 2017-06-12 13:46:22 +01:00
Azim Khan 0edf082c59 Add getc in C API 2017-06-12 13:23:20 +01:00
Mohammad Azim Khan bd5820f77c C API for greentea client 2017-06-12 13:23:20 +01:00
Hasnain Virk d29e05896f Check Ethernet before including lwipopts_conf.h
lwipopts_conf.h is used by target dependent Ethernet drivers for
configuring various parameters.
By default, Ethernet is enabled and in this case lwipopts_conf.h
will be included.
In case of PPP  being enabled, it is desirable to not pull in any Ethernet
related code.
2017-06-12 09:57:16 +03:00
Martin Kojtal d0d7c6f4f6 lwip: fix stm32f4 eth conf file
This file is moved to targets that support eth. It can't be common for any F4, as
not all targets from this family support eth.
2017-06-10 15:20:30 +01:00
Brian Daniels 4f5a199336 Fix bad print message in test 2017-06-10 15:14:28 +01:00