Commit Graph

1217 Commits (c4220ece9b34a601c30c90dba9e1b26186a85cd6)

Author SHA1 Message Date
Andrea Corrado 6de5b39f3f introduced mbed Connect Cloud board based on ODIN-W2 Module rety commit, added ublox changes
Corrected error

Corrected error in targets json

Reworked JSON

Added lwip-eth to Connect ODIN removes ARM CC error

Fixed formating issues

Correct formating error in  .json

Indentation errors
2017-11-17 14:55:47 +00:00
Kevin Gilbert 05a36aafe8 Remove build warnings in LWIP 2017-11-17 14:55:47 +00:00
Chris Snow 761c57876b Fix ETHMEM_SECTION placement for ARM on LPC1768 2017-11-17 14:55:47 +00:00
Ryan Kurte a95fcbf40b Swapped to macro definition for debug prints 2017-11-17 14:55:46 +00:00
Ryan Kurte b1c4fa3f34 Added critical section around rf_start_cca 2017-11-17 14:55:46 +00:00
Ryan Kurte b66b28c08a Threaded wrapper for rail driver on EFR32 platforms
Updated NanostackRfPhyEfr32 with a receive queue.
Cleaned up debug messages, re-added to non-threaded calls.

Removed debug print override

Removed tr_debug override

Removed normal-operation prints that could have timing implications if enabled

Removed dead NVIC code (and a couple of dead log outputs)
2017-11-17 14:55:46 +00:00
Laurent MEUNIER 157150ec91 STM32: Extend Ethernet RMII workaround
to all applicable devices part of F77x/F76x series.
2017-11-17 14:55:45 +00:00
Laurent MEUNIER 36190391cf STM32: Ethernet: Workaround for STM32_F767 revA
On STM32 F767 rev A devices ,Ethernet peripheral had problems on RMII
interface, on MII this was not the case.

This commits implements a tentative workaround for the issue rerfered to
as Ethernet erroneous data received in RMII configuration in the Errata
sheet below:
http://www.st.com/content/ccc/resource/technical/document/errata_sheet/group0/23/a6/11/0b/30/24/46/a5/DM00257543/files/DM00257543.pdf/jcr:content/translations/en.DM00257543.pdf

Note that the issue has been fixed in 'Z' revision. of STM32 F767 MCUs.
2017-11-03 13:02:57 +00:00
Vincent Coubard cfe4c7a649 BLE: Fix typos in iBeacon documentation. 2017-11-03 13:02:57 +00:00
Amanda Butler 756df3ebe4 Copy edit iBeacon.h
Make minor copy edits.
2017-11-03 13:02:57 +00:00
Vincent Coubard e4ac455e07 BLE: Fix conjugation and spelling of iBeacon documentation. 2017-11-03 13:02:57 +00:00
Vincent Coubard 054a301b4f BLE: iBeacon minor edit. 2017-11-03 13:02:56 +00:00
Vincent Coubard fd603c7e68 BLE: Update iBeacon documentation.
Provide detailled description of the purpose, general concepts and usage.
2017-11-03 13:02:56 +00:00
Gabor Kertesz 4ffe2aa612 Beetle BLE: Fix variable length GATT attribute
Variable length flag was lost during attribute settings,
so variable length GATT attributes should have been set
to the predefined maximum length.
This fixes issue #86.

Change-Id: Ia0cd236ecd903fdb9e62a21bffef57d1e63764b9
2017-11-03 13:02:56 +00:00
Kevin Gilbert b0ab46e271 Resolve doxygen warning in filesystems 2017-11-03 13:02:51 +00:00
Kevin Gilbert 48e87a09f6 Change address subtraction when moving through block devices to be the size of the entire block device not the block size 2017-11-03 12:59:06 +00:00
Piotr Grygorczuk 3724b25626 mbed LPC1768 & Xpresso LPC1769 unified
Target of LPC1769 links to mbed LPC1768.
The PinNames.h has conditional compile for the pin names.
LWIP lpc17xx emac driver modified to allow LPC1769 target
2017-11-03 12:59:05 +00:00
bcostm ffc19cb04c STM32: Remove lwip compilation warnings 2017-11-03 12:59:05 +00:00
Roberto Spelta c6f68b21b5 removed memory allocation 2017-10-20 16:18:30 +01:00
Roberto Spelta d98fc9538c modified mesh_system.c to improve memory 2017-10-20 16:18:30 +01:00
Kevin Gilbert fceea7a597 Add additional information on the block parameter in the HeapBlockDevice ctor 2017-10-20 16:18:29 +01:00
Alexander Zilberkant b855fde736 uVisor: Upgrade to v0.31.0 2017-10-20 16:18:29 +01:00
Kevin Gilbert 06bd5297af Add erase to example
Use defined blocksize constant
2017-10-20 16:18:29 +01:00
Kevin Gilbert 6f9a6787af Update HeapBlockDevice example in header file to compile 2017-10-20 16:18:29 +01:00
Seppo Takalo d3f9dd3913 Enable MPL by default for 6LoWPAN-ND.
In Thread network, MPL is already enabled so this causes
both to behave similarly.
2017-10-20 16:18:28 +01:00
Kevin Bracey 62b5b443b0 lwIP: Add memory configs to JSON
We currently set the lwIP pbuf pool size small - to 5 x 576-byte
buffers.

This is insufficient to hold a single DTLS handshake flight, so can
cause cloud client connections to fail. STM-based platforms are failing
handshake because of this. (K64F works because it doesn't use the pbuf
pool for reception, but lwIP does recommend drivers use the pbuf pool).

Not changing the default memory sizes here, as intended for a patch
release, but adding mbed configuration options to allow the numbers to
be adjusted for memory tuning in an application.

In a future minor revision, I would recommend increasing the default
PBUF_POOL_SIZE - we are well below lwIP's out-of-the-box default - and
offsetting by a reduction in MEM_SIZE for the drivers that don't use
PBUF_RAM.
2017-10-20 16:18:28 +01:00
Rob Meades 006ca97478 Enable crypto HW acceleration for STM32F437xG platforms (i.e. ublox C030 family). 2017-10-20 16:18:28 +01:00
Akos Kiss f926eb430d Fix documentation of BLE GattCharacteristic
The constructor doc incorrectly suggested that only short (16-bit)
UUIDs were accepted. The same doc also referred to properties
instead of characteristics. (And to "value length", which seemed to
be completely out of place in the context of the current code.)
2017-10-20 16:18:27 +01:00
cyliangtw 8c987698ad Fixed ethernet multi-function pin 2017-10-20 16:18:27 +01:00
Juhani Puurula 8dbedf6bc0 Nanostack v6.2.2 2017-10-06 14:12:48 +01:00
Mika Leppänen 7170882077 Mapped lwip buffer error to nsapi no memory error 2017-10-06 14:12:46 +01:00
Sarah Marsh 4da41d7fb8 Remove LWIP tests 2017-10-06 14:12:45 +01:00
Akos Kiss 2fd13bffca Add flush to the BLE UART Service
If only buffer-full events and LF characters trigger the flush of
the send buffer then only line-based communication can be
implemented over the BLE UART Service. This patch extends the
service API by adding an explicit `flush` method to force sending
the buffer contents, thus enabling protocols with short (e.g.,
single character) messages.
2017-10-06 14:12:44 +01:00
Christopher Haster 93d78c6218 fs: Fix dir open during failure condition
Should leave the Dir in an openable state, currently does not
since it thinks it's in use by the fs it failed to open on.
2017-10-06 14:12:44 +01:00
Rob Meades 8eff369901 Fix cellular APN_db.h lookup. 2017-10-06 14:12:44 +01:00
Mahadevan Mahesh 2efa469d0b K66F: Update to SDK 2.2
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-10-06 14:12:44 +01:00
bcostm d9d6f593c0 STM32 USBDevice: Add DISCO_F407VG target 2017-10-06 14:12:44 +01:00
bcostm d90994da2e STM32 USBDevice: Add NUCLEO_F446RE target 2017-10-06 14:12:44 +01:00
bcostm 88be03a931 STM32 USBDevice: Remove disco-f429zi, clean-up nucleo-f103rb 2017-10-06 14:12:44 +01:00
bcostm 8ba8a0c830 STM32 USBDevice: add more supported targets 2017-10-06 14:12:44 +01:00
bcostm 1e2b2a9dc4 STM32 USBDevice: refactor files 2017-10-06 14:12:44 +01:00
0x6d61726b 4b9f859deb Build with external tool fails: missing includes
When building with VisualGDB the compilation fails due to the lack of required include files Dir.h and File.h.
Compiler report:

1>------ Build started: Project: exported-mbed-STM32F429-nucleo, Configuration: Debug VisualGDB ------
1>  FileSystem.cpp
1>  mbed-os/features/filesystem/FileSystem.cpp: In instantiation of 'class Managed<mbed::File>':
1>  mbed-os\features\filesystem\FileSystem.cpp(141,19): note :   required from here
1>mbed-os\features\filesystem\FileSystem.cpp(130,7): error :  invalid use of incomplete type 'class mbed::File'
1>   class Managed : public F {
1>         ^~~~~~~
1>  mbed-os\features\filesystem\FileSystem.cpp(18):
1>  mbed-os\features\filesystem\FileSystem.h(39,7): note :  forward declaration of 'class mbed::File'
1>   class File;
1>         ^~~~
1>  mbed-os/features/filesystem/FileSystem.cpp: In member function 'virtual int mbed::FileSystem::open(mbed::FileHandle**, const char*, int)':
1>mbed-os\features\filesystem\FileSystem.cpp(141,19): error :  cannot convert 'Managed<mbed::File>*' to 'mbed::File*' in initialization
1>       File *f = new Managed<File>;
1>                     ^~~~~~~~~~~~~
1>mbed-os\features\filesystem\FileSystem.cpp(142,16): error :  invalid use of incomplete type 'class mbed::File'
1>       int err = f->open(this, path, flags);
1>                  ^~
1>  mbed-os\features\filesystem\FileSystem.cpp(18):
1>  mbed-os\features\filesystem\FileSystem.h(39,7): note :  forward declaration of 'class mbed::File'
1>   class File;
1>         ^~~~
1>mbed-os\features\filesystem\FileSystem.cpp(144,16): warning :  possible problem detected in invocation of delete operator: [-Wdelete-incomplete]
1>           delete f;
1>                  ^
1>mbed-os\features\filesystem\FileSystem.cpp(141,11): warning :  'f' has incomplete type
1>       File *f = new Managed<File>;
1>             ^
1>  mbed-os\features\filesystem\FileSystem.cpp(18):
1>  mbed-os\features\filesystem\FileSystem.h(39,7): note :  forward declaration of 'class mbed::File'
1>   class File;
1>         ^~~~
1>  mbed-os\features\filesystem\FileSystem.cpp(144,16): note :  neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
1>           delete f;
1>                  ^
1>mbed-os\features\filesystem\FileSystem.cpp(148,13): error :  cannot convert 'mbed::File*' to 'mbed::FileHandle*' in assignment
1>       *file = f;
1>               ^
1>  mbed-os\features\filesystem\FileSystem.cpp(18):
1>  mbed-os\features\filesystem\FileSystem.h(39,7): note :  class type 'mbed::File' is incomplete
1>   class File;
1>         ^~~~
1>  mbed-os/features/filesystem/FileSystem.cpp: In instantiation of 'class Managed<mbed::Dir>':
1>  mbed-os\features\filesystem\FileSystem.cpp(153,18): note :   required from here
1>mbed-os\features\filesystem\FileSystem.cpp(130,7): error :  invalid use of incomplete type 'class mbed::Dir'
1>   class Managed : public F {
1>         ^~~~~~~
1>  mbed-os\features\filesystem\FileSystem.cpp(18):
1>  mbed-os\features\filesystem\FileSystem.h(38,7): note :  forward declaration of 'class mbed::Dir'
1>   class Dir;
1>         ^~~
1>  mbed-os/features/filesystem/FileSystem.cpp: In member function 'virtual int mbed::FileSystem::open(mbed::DirHandle**, const char*)':
1>mbed-os\features\filesystem\FileSystem.cpp(153,18): error :  cannot convert 'Managed<mbed::Dir>*' to 'mbed::Dir*' in initialization
1>       Dir *d = new Managed<Dir>;
1>                    ^~~~~~~~~~~~
1>mbed-os\features\filesystem\FileSystem.cpp(154,16): error :  invalid use of incomplete type 'class mbed::Dir'
1>       int err = d->open(this, path);
1>                  ^~
1>  mbed-os\features\filesystem\FileSystem.cpp(18):
1>  mbed-os\features\filesystem\FileSystem.h(38,7): note :  forward declaration of 'class mbed::Dir'
1>   class Dir;
1>         ^~~
1>mbed-os\features\filesystem\FileSystem.cpp(156,16): warning :  possible problem detected in invocation of delete operator: [-Wdelete-incomplete]
1>           delete d;
1>                  ^
1>mbed-os\features\filesystem\FileSystem.cpp(153,10): warning :  'd' has incomplete type
1>       Dir *d = new Managed<Dir>;
1>            ^
1>  mbed-os\features\filesystem\FileSystem.cpp(18):
1>  mbed-os\features\filesystem\FileSystem.h(38,7): note :  forward declaration of 'class mbed::Dir'
1>   class Dir;
1>         ^~~
1>  mbed-os\features\filesystem\FileSystem.cpp(156,16): note :  neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
1>           delete d;
1>                  ^
1>mbed-os\features\filesystem\FileSystem.cpp(160,12): error :  cannot convert 'mbed::Dir*' to 'mbed::DirHandle*' in assignment
1>       *dir = d;
1>              ^
1>  mbed-os\features\filesystem\FileSystem.cpp(18):
1>  mbed-os\features\filesystem\FileSystem.h(38,7): note :  class type 'mbed::Dir' is incomplete
1>   class Dir;
1>         ^~~
1>  mbed-os/features/filesystem/FileSystem.cpp: In instantiation of 'int Managed<F>::close() [with F = mbed::Dir]':
1>  mbed-os\features\filesystem\FileSystem.cpp(162,1): note :   required from here
1>mbed-os\features\filesystem\FileSystem.cpp(133,27): error :  incomplete type 'mbed::Dir' used in nested name specifier
1>           int err = F::close();
1>                     ~~~~~~~~^~
1>  mbed-os/features/filesystem/FileSystem.cpp: In instantiation of 'int Managed<F>::close() [with F = mbed::File]':
1>  mbed-os\features\filesystem\FileSystem.cpp(162,1): note :   required from here
1>mbed-os\features\filesystem\FileSystem.cpp(133,27): error :  incomplete type 'mbed::File' used in nested name specifier
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
2017-10-06 14:12:43 +01:00
Christopher Haster e4f368d89e fatfs: Adopted the trim function in the FAT filesystem 2017-09-24 21:34:28 +01:00
Christopher Haster 55b992f130 bd: Added trim function to let filesystems give erase hints to FTLs 2017-09-24 21:34:28 +01:00
Christopher Haster 8c10a627f6 bd: Changed BlockDevice erase to default as no-op
This should help with confusion around devices that don't have
a physical erase operation, such as SD cards and spinny disks.
2017-09-24 21:34:28 +01:00
Andres Amaya Garcia 843da7b8cb mbedtls: Disable MD5, SHA1, SHA256 HW ACC for STM32F439xI
STM32F439xI-family MD5, SHA1 and SHA256 hardware acceleration
occasionally produces incorrect output (#5079).

Don't enable MD5, SHA1 and SHA256 HW acceleration on STM32F439xI-family
targets by default until issue #5079 is fixed.
2017-09-24 21:34:28 +01:00
adustm 4f423ed50f Change after code review : standardize calls among ST families Check return values in alignment with MBEDTLS error codes 2017-09-24 21:34:28 +01:00
adustm 56f5d7f70d Use new interface of mbedtls instead of deprecated functions 2017-09-24 21:34:28 +01:00
adustm 8888e3911b Fix multi context for AES CBC and ECB mode Fix mbed-os-example-tls-client use case 2017-09-24 21:34:28 +01:00
adustm 0673e24851 Enable AES_ALT mode again (remove workaround) 2017-09-24 21:34:28 +01:00