Commit Graph

190 Commits (e2a258254947f93be2f3dfb41e5f229178c2e5cb)

Author SHA1 Message Date
TomoYamanaka 0d00be3a60 Add the function declarations of WEAK attribute to use LWIP on GR-LYCHEE
I added the function declarations of Ethernet functions that have a WEAK attribute. Although several Ethernet functions was called in rza1_emac.c, GR-LYCHEE don't have Ethernert feature. But there may be case that GR-LYCHEE uses LWIP feature.
In this case, since GR-LYCHEE will occur the build error, I addressed the error by defining the functions with a WEAK attribute. For reason of WEAK attribute, there is no influence in GR-PEACH and VK_RZ_A1H that have Ethernet feature.
2018-01-11 18:11:37 +09:00
TomoYamanaka 9cbd678049 Modify the TYPO of debug info when using LWIP in RZ/A1 related
I modified the debug message when using LWIP in RZ/A1 related mbed boards.
In eth_arch_enetif_init(), sys_thread_new() was called and task name is appeared as debug information, but task name for debug was a mistake.
2018-01-09 18:30:07 +09:00
TomoYamanaka 285c259472 Performance improvement of LWIP communication in RZ_A1 related
For LWIP communication speedup in RZ_A1 related, I changed the below macro value and added the definition processing in RZ/A1 related header file(lwipopts_conf.h). For this reason, those macros are overrode by RZ/A1 related values, not default values.
2018-01-09 18:28:39 +09:00
TomoYamanaka 2e7d6df775 Commonize RZ_A1 related folders placed in "FEATURE_LWIP" directory
In the below "features/FEATURE_LWIP" folders, same as Cortex-M targets, I changed the folder structure to combine files that can be shared as RZ/A1 related. And I renamed the folder name to "TARGET_RZ_A1XX" in order to make commonality explicit.
- "features/FEATURE_LWIP" folder
  <before>
  \features\FEATURE_LWIP\lwip-interface\lwip-eth\arch\TARGET_RZ_A1H
  \features\FEATURE_LWIP\lwip-interface\lwip-eth\arch\TARGET_VK_RZ_A1H
  <after>
  \features\FEATURE_LWIP\lwip-interface\lwip-eth\arch\TARGET_RZ_A1XX
2018-01-09 16:48:39 +09:00
Jimmy Brisson cef1cc26d8
Merge pull request #5651 from gorazdko/ff_lpc546xx-add-ethernet
ff_lpc546xx: add enet, change led1 and led3 pins
2018-01-08 10:35:56 -06:00
Jimmy Brisson af9e07357a
Merge pull request #5740 from ashok-rao/master
Adding MTB ublox ODIN W2 as a new target.
2018-01-04 10:05:02 -06:00
gorazd f6283f5b03 ff_lpc546xx: add enet
fsl_phy.c/.h move to ../drivers to reuse it
lwip: add hardware_init.c
2018-01-01 15:55:24 +01:00
Cruz Monrreal II 5a19f6dcf5
Merge pull request #5684 from juhaylinen/lwip-socket-fix
lwip: fix socket behaviour
2017-12-28 20:40:14 +00:00
Ashok Rao c849db2dab Adding license info 2017-12-22 13:54:22 +00:00
Juha Ylinen 32e64e7171 Fix build for IPv4+IPv6 config 2017-12-22 13:22:00 +02:00
Juha Ylinen 52353d2ede Add function to check if address is local
Update the code to check all addresses for all interfaces. Move
the code from mbed_lwip_socket_bind() to a new function called
mbed_lwip_is_local_addr()
2017-12-22 13:21:59 +02:00
Juha Ylinen 6d3e417eaa lwip: fix socket behaviour
Return NSAPI_ERROR_PARAMETER when:
Binding to a non-local address
Socket listen() is called without calling bind() first
Socket accept() is called without calling listen() first
2017-12-22 13:21:59 +02:00
Ashok Rao 9556736411 Add new line to EOF 2017-12-21 16:14:00 +00:00
Kevin Bracey 9daf450eb3 K64F Ethernet: avoid using NULL thread during init
The K64F Ethernet driver installs an interrupt handler that sets thread
flags, and this could be called before the thread was initialised, so it
would use a NULL thread ID.

This triggers an RTX error-checking trap in debug builds, and could also
lead to other problems with received packets not being processed.

Adjusted so the RX interrupt handler does nothing if the thread isn't
initialised yet, and manually trigger a RX event flag after initialising
the thread in case any interrupts were ignored.

An alternative would have been to implement eth_arch_enable_interrupts,
but this mechanism is not present in the EMAC world - drivers will have
to start returning interrupts in their power up.

Fixes #5680
2017-12-21 11:14:08 +02:00
Ashok Rao dc3c7fc11e Adding MTB ublox ODIN W2 2017-12-20 18:52:04 +00:00
Mika Leppänen 7f6a6323cd Fixed lwip k64f ethernet driver ipv6 multicast groups
Work around for problem in:
https://github.com/ARMmbed/mbed-os/issues/4372
2017-12-14 11:05:05 +02:00
Mahadevan Mahesh f2d2ed44cd LPC546XX: Add ENET support
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-11-28 16:18:36 +00:00
Jimmy Brisson 41dcd255c3
Merge pull request #5196 from kegilbert/multicast-ipv6-2
Add IPv4 and IPv6 multicast implementation for UDPSocket
2017-11-20 10:51:07 -06:00
Martin Kojtal 47bae16a5c
Merge pull request #5305 from andcor02/master
New Target: Mbed Connect Cloud board
2017-11-10 08:43:29 +00:00
Martin Kojtal 8acf00a370
Merge pull request #5319 from kegilbert/fix-build-warnings
Remove build warnings in LWIP
2017-11-09 16:51:55 +00:00
Martin Kojtal c67d91a4fc
Merge pull request #5322 from chrissnow/LPC1768_LWIP
LPC1768: Fix ETHMEM_SECTION placement for ARM
2017-11-09 16:51:13 +00:00
Laurent MEUNIER 1f3dfd8875 STM32: Extend Ethernet RMII workaround
to all applicable devices part of F77x/F76x series.
2017-11-06 10:23:30 +01:00
Laurent MEUNIER 96b4c36f0f 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-02 10:38:12 +01:00
Kevin Gilbert 54980546ce Remove build warnings in LWIP 2017-11-01 08:47:58 -05:00
Andrea Corrado 53c476acf2 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-10-31 11:24:28 +00:00
Chris Snow 1e53aacd9f Fix ETHMEM_SECTION placement for ARM on LPC1768 2017-10-26 15:18:20 +01:00
Anna Bridge 97e2d4a8c5 Merge pull request #5025 from grygorek/master
LPC1769 port
2017-10-26 11:35:35 +01:00
bcostm 8477422086 STM32: Remove lwip compilation warnings 2017-10-19 08:58:40 +02:00
Jimmy Brisson 926ed139f5 Merge pull request #5250 from kjbracey-arm/pbuf16
lwIP: Add memory configs to JSON
2017-10-13 09:24:46 -05:00
Kevin Gilbert b56ced249a Add multicast implementation for UDPSocket. IPv4 and IPv6 both supported. 2017-10-10 18:21:18 -05:00
Kevin Bracey cd06ebb3c7 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-10 11:34:21 +03:00
Jimmy Brisson d6136b9790 Merge pull request #5157 from OpenNuvoton/nuvoton
NUC472/M453/M487/NANO130: Add updates for Nuvoton targets
2017-10-09 11:12:43 -05:00
Piotr Grygorczuk 728a3a4a76 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-10-02 11:05:39 +01:00
Jimmy Brisson c3dc45bd0c Merge pull request #5033 from mikaleppanen/lwip_buf_err_map
Mapped lwip buffer error to nsapi no memory error
2017-09-29 10:09:11 -05:00
Mahadevan Mahesh 593fb3a6fb K66F: Update to SDK 2.2
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-09-24 08:14:52 -05:00
cyliangtw b363d00537 [M487/NUC472] Fixed ethernet multi-function pin 2017-09-20 16:56:30 +08:00
Anna Bridge 003dd7c47f Merge pull request #5044 from Archcady/Profile_debug
Realtek_RTL8195AM fix for debug profile
2017-09-19 10:43:25 +01:00
Jimmy Brisson 922bf1b619 Update mbed OS to handle ARMC6 requirements 2017-09-11 13:20:32 -05:00
Yuguo Zou 22269ad12c Increase tcpip thread stacksize for REALTEK_RTL8195AM
The default stack size is not enough for debug profile (low compiler
optimization)
2017-09-07 11:07:13 +08:00
Mika Leppänen 140f2b803c Mapped lwip buffer error to nsapi no memory error 2017-09-06 10:20:24 +03:00
Jimmy Brisson 84a28adc09 Merge pull request #4997 from kjbracey-arm/lwip_debug
Correct LWIP_DEBUG definition
2017-09-05 11:19:13 -05:00
Jimmy Brisson 857819f5d2 Merge pull request #4996 from kjbracey-arm/k64f_emac_1thread
Reduce K64F Ethernet driver to 1 thread
2017-09-05 11:18:44 -05:00
Kevin Bracey 65639e80fc Reduce K64F Ethernet driver to 1 thread
Save 1K of RAM by using only 1 thread for RX and TX, and
running the PHY check in lwIP's context.
2017-08-31 13:05:28 +03:00
Kevin Bracey 5a7405e1a3 Correct LWIP_DEBUG definition
Commit f602c936 incorrectly started defining LWIP_DEBUG as either 0 or
1.

lwipopts.h locally was changed to use #if, but all existing users
continued to use #ifdef. Therefore defining it to 0 was accidentally
enabling it for quite a few users.

This would have pulled in some unwanted lwIP code, and affected some
drivers, eg k64f_emac.c allocating an extra 2K of stack.

Correct lwipopts.h to either define it as 1 or leave it undefined, and
change the #if tests back to #ifdef, so all are consistent.
2017-08-31 11:51:10 +03:00
Mika Leppänen 32131b61a8 Improved manual DNS address addition for dual stack case
If DHCP or PPP does not provide DNS addresses, for dual stack, adds both ipv4
and ipv6 DNS addresses to DNS list.
2017-08-23 16:47:17 +03:00
Mika Leppänen 0d5ac6e78d Relocated lwip memory pool on memory restricted platforms 2017-08-23 16:47:16 +03:00
Mika Leppänen 942aec5e4b Corrected lwip to enable disabling of ipcp and ipv6cp protocols 2017-08-22 13:14:41 +03:00
Mika Leppänen dd346ec5a8 Either ipv4 or ipv4v6 PPP and IP stacks are enabled based on 3GPP context 2017-08-22 13:14:41 +03:00
Mika Leppänen 457f940a7c Added Ipv4/Ipv6 stack stack support to lwip DNS queries
If both IPv4 and IPv6 are available, and DNS query fails for first system,
second system is tried.
2017-08-22 13:14:40 +03:00
Mika Leppänen b1d41f9afd Corrected lwip not to send NS probes when link layer address is not available 2017-08-22 13:14:40 +03:00