Freescale ColdFire TCP/IP Stack and RTOS Application Note AN3470

Freescale AN3470 describes the ColdFire TCP/IP stack and its integrated simple RTOS, covering features, configuration, and APIs.


Freescale ColdFire TCP/IP Stack and RTOS Application Note AN3470 - cover page
Brand
Freescale
Category
Other
Document type
Application Note
Language
English
Pages
54
File format
PDF
File size
590 KB
Published
29 November, 2026
Updated
29 November, 2026
MD5 checksum
0CF5AD1198816B8C8DEEE2427F6FD0A1

About this manual

This Freescale application note describes the ColdFire TCP/IP stack and the simple operating system integrated with it. The stack supports TCP, UDP, ICMP, ARP, IP, DHCP, DNS, BOOTP, HTTP, TFTP and serial-to-Ethernet, and can run in superloop mode or with the non-preemptive, round-robin RTOS.

The note covers RTOS overview and API, task creation, the menu system and serial driver, stack configuration, MAC and IP address setting, DHCP and DNS clients, stack RAM usage, tested and reduced-RAM parameters, and the TCP/UDP/IP, zero-copy and DHCP/DNS APIs. It also covers the Ethernet PHY, MII interface initialization, and porting the project with CodeWarrior.

What's inside

  • Introduction
  • ColdFire TCP/UDP/IP Stack Features
  • ColdFire TCP/IP Stack and RTOS
  • RTOS Overview
  • RTOS API
  • Creating a Task
  • Menu System and Serial Driver
  • Configuring the TCP/IP Stack
  • Setting the MAC and IP Addresses
  • DHCP Client

Specifications

Stack mode configurationSUPERLOOP 1 or INICHE_TASKS 1
Task stack sizesNET_STACK_SIZE 4096, APP_STACK_SIZE 4096, CLOCK_STACK_SIZE 2048, IO_STACK_SIZE 2048, PING_STACK_SIZE 2048
Supported protocolsTCP, UDP, ICMP, ARP, IP, DHCP, DNS, BOOTP, HTTP, TFTP
RTOS schedulingNon-preemptive round-robin scheduler
RTOS functionsNine functions, including tk_init, tk_new, tk_block, tk_sleep

Frequently asked questions

What is the difference between superloop mode and the RTOS?

In superloop mode each task is a function call that returns to the main loop, and no RTOS RAM is used. With the RTOS enabled, tasks can be created and destroyed at runtime and each task gets its own stack allocated from the heap.

How is the RTOS mode configured?

The RTOS mode is configured in the ipport.h file using the SUPERLOOP and INICHE_TASKS defines. One must be defined and the other undefined, since they cannot be defined at the same time.

Which protocols does the ColdFire TCP/IP stack support?

The stack supports TCP, UDP, ICMP, ARP and IP, plus DHCP or manual IP configuration, DNS, BOOTP, HTTP, TFTP and serial-to-Ethernet.

Does the RTOS support task priorities?

No. The RTOS does not support task priorities; the scheduler simply increments to the next TCB in the list and executes the task if it is ready to execute.

Download PDF (590 KB)

More Freescale Manuals


View all Freescale manuals →