Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 2.04 KB

README.markdown

File metadata and controls

51 lines (38 loc) · 2.04 KB

K60 Tower Project


  • Networking w/ telnet
  • Shell

Prerequisites

  1. Install CodeWarrior 10.2 (Special Edition): Link
  2. Install MQX 3.8: Link
  3. Install the MQX 3.8 patch for CW 10.2 (for kernel debugging): Link

Build steps

  1. replace $MQX$/config/twrk60n512/user_config.h with the one from this project (probably best to save the original)

  2. modify $MQX$/mqx/source/bsp/twrk60n512/twrk60n512.h as follows:

    Enable interrupts for TTYD:

     #define BSPCFG_ENABLE_ITTYD    1
    

    Change to use ITTYD for standard print functions (printf's)

     /*
      * Other Serial console options:(do not forget to enable BSPCFG_ENABLE_TTY define if changed)
      *      "ittyf:"     OSJTAG-COM  interrupt mode
      *      "ttyd:"      TWR-SER     polled mode
      *      "ittyd:"     TWR-SER     interrupt mode
      *      "iodebug:"   IDE debug console
      */
     #ifndef BSP_DEFAULT_IO_CHANNEL
         #if BSPCFG_ENABLE_TTYF
             //#define BSP_DEFAULT_IO_CHANNEL                    "ttyf:"    /* OSJTAG-COM   polled mode   */
             #define BSP_DEFAULT_IO_CHANNEL                      "ittyd:"    /* TWR-SER     interrupt mode   */
             #define BSP_DEFAULT_IO_CHANNEL_DEFINED
         #else
             #define BSP_DEFAULT_IO_CHANNEL                      NULL
         #endif
     #endif
    
  3. Follow library building process described in $MQX$/doc/FSL_MQX_getting_started.pdf (p.7)

    The libraries have to be built in correct order:

    PSP and BSP

    MFS

    RTCS

    Shell and USB libraries

  4. Build K60 application

  5. Load via debugger & run