This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Startup code for TMS470MF03107 Cortex-M3

Other Parts Discussed in Thread: F035FLASHAPI

 

Hi,

Can you provide startup code for TMS470MF03107 controller and sample code of flash module?

Could you please provide the compiler manual CCS v4.6.3

Regards,

Sarada

  • Hi,

     

    Please find the manual here: http://processors.wiki.ti.com/index.php/ARM_Code_Generation_Users_Guides

    I will post the startup code to WIKI page.

    Regards,

    QJ

  • Hi,

    Can provide the link of WIKI page, where you posted startup code.

     

    Regards,

    Sarada

     

     

  • Hi Sarada,

     

    Please check the "Getting Started" section in http://processors.wiki.ti.com/index.php/Category:TMS470M

     

    Regards,

    QJ

     

  • Hi,

    Thanks for reply. 

    I took the sample code.  I need following details.

    1.Please send Flash Module F035 library files.

    2.while initializing CAN module, how are you assigning CAN ID.

    In Can.c,  

       while (canREG2->IF1STAT & 0x80);

        canREG2->IF1MSK  = 0xC0000000U | ((0x000007FFU & 0x000007FFU) << 18U);
        canREG2->IF1ARB  = 0x80000000U | 0x00000000U | 0x20000000U | ((1U & 0x000007FFU) << 18U);
        canREG2->IF1MCTL = 0x00001080U | 0x00000000U | 8U;
        canREG2->IF1CMD  = 0xF8;
        canREG2->IF1NO   = 1;

    -- in the above code,  canREG2->IF1ARB  = 0x80000000U | 0x00000000U | 0x20000000U | ((1U & 0x000007FFU) << 18U); ----

     ((1U & 0x000007FFU) << 18U) =0x08 -- For Message object1,  ((2U & 0x000007FFU) << 18U) -- For Message object2

    --- Is this CAN ID for Message object?

    I have to assign CAN ID 0x702 for Message object1. Please explain the scenario of CAN ID assignment.

     

  • Hi Sarada,

    1. please find the F035 library in TI website: 

       http://www.ti.com/tool/f035flashapi

    2. CAN ID is defined in IF1ARB. If an 11-bit Identifier (Standard Frame) is used (Xtd = ‘0’), it is programmed to ID[28:18]. You can the same way in the sample code for your ID assignment.

    Regards,

    QJ