NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

SYSBIOS ISDK Steps for creating stand alone switch example

From Texas Instruments Wiki
Jump to: navigation, search
TIBanner.png
Steps for creating Stand alone switch example in SYSBIOS Industrial SDK


Revision History

Revision Date Description
1.0 29-Sep-2014 Created initial version of the document
1.1 24-Jan-2017 Added PRU ICSS Ethernet/IP Package section





Introduction[edit]

The Stand alone switch application is not provided as a part of SYSBIOS ISDK. The Ethernet/IP application can be modified to use it as a switch application.This document describes the steps required to create Stand alone switch application from Ethernet/IP application. In this case of Switch example over ICSS, the Ethernet/IP firmware will act as switch firmware. The procedures apply to both ICSS and CPSW implementation.


Steps[edit]

Industrial SDK[edit]

  1. Remove all Ethernet/IP related source and header files from the example
    • All source and header files except main.c and appl_cnfg.h should be removed
  2. Exclude ethernatip_stack.lib from the Linker files search path
  3. Remove Ethernet/IP specific includes from main.c
    • eip_main.h
    • icss_dlr.h
    • icss_eip_driver.h
  4. Remove Ethernet/IP related function declarations
    • void LedFxn(UArg arg0, UArg arg1);
    • extern void app_exit_handler(int var);
  5. Comment out or remove Ethernet/IP specific function calls
    • eip_driver_init();
    • EIPMain();
    • eip_driver_start();
  6. Remove LED Task creation and Registering Application exit handler
  7. Remove Uart ISR registration from main()
    • UartOpen(uartInstance, UartIsr) to UartOpen(uartInstance, NULL)
  8. Edit app.cfg to use XGCONF to configure NDK
    • Commnet out Global.stackThreadUser = "&NDKACD_stackThread";

PRU ICSS Ethernet/IP Package[edit]

  1. Remove all Ethernet/IP related source and header files from the example
    • All application source files except main.c should be removed
    • Keep the board specific files and soc specific files
  2. Exclude ethernatip_stack.lib and ptp lib from the libraries linked
  3. Remove Ethernet/IP specific includes from main.c
    • app_restart.h
    • icss_ptp.h
    • version.h
    • eip_main.h
    • icss_dlr.h
  4. Remove Ethernet/IP related function declarations and definitions
    • EIPAPP_initICSSDlrHandle
    • EIPAPP_initICSSPtpHandle
    • EIPAPP_taskFxn
  5. Comment out or remove Ethernet/IP specific function calls
    • System_atexit(EIPAPP_exitHandler)
    • EIPAPP_saveIODelaySection()
    • EIPAPP_initICSSPtpHandle(ptpHandle, emachandle)
  6. Remove EIP specific Task creation and semaphore creation
    • EIPUTILS_ledFxn
    • EIPAPP_uartTask
    • EIPAPP_taskFxn
    • appInitSem = Semaphore_create(0, &semParams1, NULL)
  7. Remove EIP handle, PTP handle, and DLR handle declarations and initialization code
    • ICSS_PtpHandle ptpHandle;
    • EIP_Handle eipHandle;
    • EIP_DLRHandle dlrHandle;
  8. Edit app.cfg to use XGCONF to configure NDK
    • Comment out Global.stackThreadUser = "&NDKACD_stackThread";
E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article SYSBIOS ISDK Steps for creating stand alone switch example here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article SYSBIOS ISDK Steps for creating stand alone switch example here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article SYSBIOS ISDK Steps for creating stand alone switch example here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article SYSBIOS ISDK Steps for creating stand alone switch example here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article SYSBIOS ISDK Steps for creating stand alone switch example here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article SYSBIOS ISDK Steps for creating stand alone switch example here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article SYSBIOS ISDK Steps for creating stand alone switch example here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article SYSBIOS ISDK Steps for creating stand alone switch example here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article SYSBIOS ISDK Steps for creating stand alone switch example here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity