Application Note: Document: AN07001 Revision: 9
Application Note: Document: AN07001 Revision: 9
embOS/IP Migration
Guide
Document: AN07001
Revision: 9
Date: June 30, 2016
www.segger.com
2
Disclaimer
Specifications written in this document are believed to be accurate, but are not guar-
anteed to be entirely free of error. The information in this manual is subject to
change for functional or performance improvements without notice. Please make sure
your manual is the latest edition. While the information herein is assumed to be
accurate, SEGGER Microcontroller GmbH & Co. KG (SEGGER) assumes no responsibil-
ity for any errors or omissions. SEGGER makes and you receive no warranties or con-
ditions, express, implied, statutory or in any communication with you. SEGGER
specifically disclaims any implied warranty of merchantability or fitness for a particu-
lar purpose.
Copyright notice
You may not extract portions of this manual or modify the PDF file in any way without
the prior written permission of SEGGER. The software described in this document is
furnished under a license and may only be used or copied in accordance with the
terms of such a license.
© 2007 - 2016 SEGGER Microcontroller GmbH & Co. KG, Hilden / Germany
Trademarks
Names mentioned in this manual may be trademarks of their respective companies.
Brand and product names are trademarks or registered trademarks of their respec-
tive holders.
Manual versions
This manual describes the current software version. If any error occurs, inform us
and we will try to assist you as soon as possible.
Contact us for further information on topics or routines not yet specified.
Print date: June 30, 2016
AN07001 Migration Guide for embOS/IP © 2007 - 2016 SEGGER Microcontroller GmbH & Co. KG
3
Table of Contents
AN07001 Migration Guide for embOS/IP © 2007 - 2016 SEGGER Microcontroller GmbH & Co. KG
4
AN07001 Migration Guide for embOS/IP © 2007 - 2016 SEGGER Microcontroller GmbH & Co. KG
5
Chapter 1
This chapter provides a guideline on how to migrate to the latest embOS/IP software
version from a previously used older version. Although trying to provide a minimum
of changes that need to be applied for new versions this can not be guaranteed in
any case. This chapter shall provide step by step instructions about the necessary
changes that need to be applied in case there was a change in embOS/IP not com-
patible with a previous version.
AN07001 Migration Guide for embOS/IP © 2007 - 2016 SEGGER Microcontroller GmbH & Co. KG
6 CHAPTER 1 Migrating from a previous version
Function Description
IP_ICMP_Add() Adds ICMP to the stack.
IP_TCP_Add() Adds TCP to the stack.
IP_UDP_Add() Adds UDP to the stack.
Table 1.1: embOS/IP protocol API function overview
To add one or more of these protocols to the IP stack follow these steps:
1. Open your configuration file which is typically called IP_Config_*.c in a text edi-
tor or the editor of your IDE.
2. Add one or more protocols to the routine IP_X_Config()
IP_TCP_Add();
IP_UDP_Add();
IP_ICMP_Add();
AN07001 Migration Guide for embOS/IP © 2007 - 2016 SEGGER Microcontroller GmbH & Co. KG
7
New
U32 ARM_IP_cksum(void *ptr, unsigned NumHWords, U32 Sum);
#define IP_CKSUM(p, NumItems, Sum) ARM_IP_cksum((p), (NumItems), (Sum))
AN07001 Migration Guide for embOS/IP © 2007 - 2016 SEGGER Microcontroller GmbH & Co. KG
8 CHAPTER 1 Migrating from a previous version
The new functionality is optional but not implementing these functionality means that
the FTP server will not be able to successfully check if the given path is really a folder
(which might be necessary for batch operations) or moving files and folders.
AN07001 Migration Guide for embOS/IP © 2007 - 2016 SEGGER Microcontroller GmbH & Co. KG
9
AN07001 Migration Guide for embOS/IP © 2007 - 2016 SEGGER Microcontroller GmbH & Co. KG
10 CHAPTER 1 Migrating from a previous version
AN07001 Migration Guide for embOS/IP © 2007 - 2016 SEGGER Microcontroller GmbH & Co. KG
11
AN07001 Migration Guide for embOS/IP © 2007 - 2016 SEGGER Microcontroller GmbH & Co. KG
12 CHAPTER 1 Migrating from a previous version
After
/*********************************************************************
*
* BSP_ETH_InstallISR_Ex()
*/
void BSP_ETH_InstallISR_Ex(int ISRIndex, void (*pfISR)(void), int Prio){
(void)ISRIndex;
(void)Prio;
_pfEthISRHandler = pfISR;
}
AN07001 Migration Guide for embOS/IP © 2007 - 2016 SEGGER Microcontroller GmbH & Co. KG
13
AN07001 Migration Guide for embOS/IP © 2007 - 2016 SEGGER Microcontroller GmbH & Co. KG
14 CHAPTER 1 Migrating from a previous version
AN07001 Migration Guide for embOS/IP © 2007 - 2016 SEGGER Microcontroller GmbH & Co. KG
15
Index
AN07001 Migration Guide for embOS/IP © 2007 - 2016 SEGGER Microcontroller GmbH & Co. KG
16 Index
AN07001 Migration Guide for embOS/IP © 2007 - 2016 SEGGER Microcontroller GmbH & Co. KG