11. Operating System

11.1. Folder Structure

src
└── os
     ├── freertos
     |       ├── freertos
     |       └── freertos-plus
     |               └── freertos-plus-tcp
     └── safertos

11.2. FreeRTOS

11.3. TCP/IP stack

The TCP/IP stack is the FreeRTOS-Plus-TCP Library configured for foxBMS 2. For the TCP/IP communication the TI TMS570 uses the Ethernet Media Access Controller (EMAC) to communicate with the ethernet Physical Layer Transceiver (PHY).

Block diagram of the ethernet communication

Fig. 11.1 Block diagram of the ethernet communication

To reference this, the TCP/IP communication is structured as shown in the figure below.

Software structure of the ethernet communication

Fig. 11.2 Software structure of the ethernet communication

The related drivers are structured as in the physical structure. The phy specific settings and configuration is made in the phy driver dp83869.c. Then in the next layer the EMAC driver controlls the EMAC to transmit and receive ethernet packages. The EMAC is connected by hardware to the PHY.

The basic usage of the TCP/IP stack with sending a ping signal is explained in How to Ping foxBMS 2.