Loading the start project and generation of processor library file for TI TMS320F281x

Start project is located in folder of the installed program: C:\Users\User\AppData\Roaming\NPF Mechatronica-pro\MexBIOS Development Studio\Extend\TMS320F281x\MBS_start

The start project contains:

  1. initialization of the MCU periphery and system registers;
  2. functions for connection with PC.

Another user’s project can be used for loading the microcontroller. To load the start project one need to do the following:

  • Install Code Composer Studio 3.1 with all drivers that are required for TMS320F281x.
  • Open the start project from folder of the installed program: C:\Users\User\AppData\Roaming\NPF Mechatronica-pro\MexBIOS Development Studio\Extend\TMS320F281x\MBS_start\MBS_start.pjt
  • Compile the start project by selecting Project → Build or by pressing F7 button.
  • Load the start project by using On-Chip Flash Programmer utility in the following way:
  • Start the On-Chip Flash Programmer:
  • Select sectors for loading the start project. For TMS320F281x processors the start project is loaded to sectors A, B, C, D, E:
  • Load the start project (by clicking Execute Operation in On-Chip Flash Programmer dialog box).
 

NOTE: program memory map for “start project” must not extend onto location of program memory of “processor library”. Memory for location of “processor library” is defined in BlockBuilder (component MexBIOS Development Studio), page “Options” where it is possible to set the Memory  Address and Size for “processor library”. 

  • Message Verify operation successful indicates that loading of the start project was successfully completed:
 

GENERATION OF PROCESSOR LIBRARY FILE FOR TMS320F281X
 
  • To generate a library file you need to use Block Builder.

 

  • In the program window you need to select the processor type

  • Start compiling the library by clicking Build All. 

  • After successful completion of the compilation in directory: C:\Users\User\AppData\Roaming\NPF Mechatronica-pro\MexBIOS Development Studio\Extend\TMS320F281x
the library file TMS320F281x.out appears.

 

  • LOADING THE LIBRARY FILE FOR TMS320F281X
     
    • Start On-Chip Flash Programmer:

    • Select sectors for loading the library. For TMS320F281x processors the library is loaded to sectors F, G, H, I, J:

    • Load the library (by clicking Execute Operation in On-Chip Flash Programmer dialog box).
    NOTE: Memory for location of “processor library” is defined in BlockBuilder (component MexBIOS Development Studio), page “Options” where it is possible to set the Memory  Address and Size for “processor library”. 
    • Message Verify operation successful indicates that loading of the library was successfully completed:

    • After successful completion of loading both the start project and the library the power of the processor needs to be reset. Thereafter the device is ready for use with MexBIOS™ Development Studio.
Теги: 
TMS320F281x