8 years ago.

How to use TCP echo Client on LPC4088DM Working with emWin

I use the TCPEchoClient example alone on LPC4088DM, it's can work. But when I use it on LPC4088DM working with emWin, it's broken. What's happen?

1 Answer

8 years ago.

Did you modify the dm_board_config.h file ?

you have to uncomment the line about ethernet...

<<code>> /*

  • Copyright 2014 Embedded Artists AB
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at
  • http://www.apache.org/licenses/LICENSE-2.0
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.
  • /
  1. ifndef DM_BOARD_CONFIG_H
  2. define DM_BOARD_CONFIG_H

Template to use for the project-specific settings. Copy this file to your project, rename it to dm_board_config.h and uncomment the wanted features below:

#define DM_BOARD_USE_USB_DEVICE #define DM_BOARD_USE_USB_HOST #define DM_BOARD_USE_MCI_FS #define DM_BOARD_USE_QSPI_FS #define DM_BOARD_USE_QSPI

  1. define DM_BOARD_USE_DISPLAY
  2. define DM_BOARD_USE_TOUCH #define DM_BOARD_USE_ETHERNET <- uncomment this line
  3. define DM_BOARD_USE_FAST_UART #define DM_BOARD_USE_USBSERIAL_IN_RTOSLOG #define DM_BOARD_DISABLE_STANDARD_PRINTF #define DM_BOARD_ENABLE_MEASSURING_PINS #define DM_BOARD_USE_REGISTRY
  1. endif <<code>>

Yes, I have uncommented the line about ethernet.

posted by Wei Chang Shen 13 Apr 2016

I use emwin to creat a button. When touching and realesing the button, the data can transfer by TCP / IP. First, I write the TCP echo Client example in my code. But when I press the button, the whole program is out of work, and my server isn't receive anything.

posted by Wei Chang Shen 13 Apr 2016

I found use the tcpechoclient example on lpc4088 working with emwin, it can't connect the server on my PC. But use the tcpechoclient example alone, it can work. I don't konw why.

posted by Wei Chang Shen 14 Apr 2016