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.

TMS470MF Cortex-M3 sample codeset for Timer and Clock

Other Parts Discussed in Thread: TMS470MF03107, HALCOGEN

Hi,

Could you please provide me the sample code set for initialization of clock and timer modules for TMS470MF03107 Controller.

 

And also pheripheral clock settings for SCI module.

It would be helpful if you provide some information on this.

Thanks in advance

  • I apologize for the delayed response.  We are compiling and testing the example and I hope to get it to you by the end of business today.

  • Hi michael,

    It would be helpful if you provide as soon as possible.

    its very urgent for us.

    Could you please provide the sample by end of business today.

    I have one more doubt towards TMS470MF Cortex-M3 micro bench(TMDX470MF066USB).

    We tried to initialize the SCI registers of contoller and compiled the sample code. After flashing through CCS 4.2.0 debugger while executing each step we noticed that debugger gets reset or halted later i have to erase the chip of TMDX470MF066USB with Flash tool inorder to load ".out" once again.

    what is reason for this type of behaviour? how to resolve this?

    Is it due to start up code, could you please provide the start up code also?

    Please provide me some information on my queries.

    Thanks in Advance.

    Bhargavi M

     

  • I once again apologize for the delay.  I have compiled a project for you that demonstrates how to setup the clocks and the sci.  This project was generated using one of our tools called HALCoGen which can be used to generate driver code for the modules on our device.  You can find a link to HalCoGen at the bottom of this post.  This project should also include the start-up code you requested.

    As for the CCS debugging issue, let me know if this is still an issue with this example.

    1884.Clock Test.zip

    http://focus.ti.com/docs/toolsw/folders/print/tms470m_halcogen.html

     

    -Michael Sherman

  • Hi Michael,

    Thanks for your reply.

    But the issue is same even after using the sys_startup and other start up files provided by you.

    I am not able to initialize any other pheripheral registers like CAN, Message buffer and SCI registers.

    Could you please try to help us in solving the issue as soon as possible.

    Can we know about the status of your compilation on the sample code and debugging status?

    were you able to see any of SCI regiaters intialized as per the code.

    Thanks in advance.

    Bhargavi

  • Bhargavi,

    With HALCoGen you should be able to get code that initializes CAN and other peripherals too. Have you enabled all the peripherals you are using? In HALCoGen this needs to be done in the Driver Enable tab.

    Regards,

    Abhishek

     

  • Hi Arora,

    yes we got the sample code for peripherals from the halcogen tool.

    But we are facing issue with debugger once the code is flashed.

    The problem is that we are not able to write to any of the peripheral registers in any of the modes of the controller.

     We are allowed to write to only core registers.

    We have referred PCR module of the TMS470MF03107, but same is not being highlighted in Halcogen tool. To modify the access to the peripherals.

    Please treat this as a high priority and help us to resolve this issue.

    We are using TMDX470MF066USB kit for our development process.

    Thanks

    Bhargavi

  • Bhargavi,

    sorry we didn't get a response in to you.

    To me it sounds like the peripherals are still powered down. HALCoGen automatically generates code to power up the peripherals.

    In file system.c you should see the following section:

    /** - Power-up all peripharals */
        pcrREG->PSPWRDWNCLR0 = 0xFFFFFFFFU;
        pcrREG->PSPWRDWNCLR1 = 0xFFFFFFFFU;
        pcrREG->PSPWRDWNCLR2 = 0xFFFFFFFFU;
        pcrREG->PSPWRDWNCLR3 = 0xFFFFFFFFU;

    Let me know if you are still seeing this problem.

    Regards,

    Abhishek