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.

CCSv5 Sys/Bios for DM3730 Hello World sample does not run to main

Other Parts Discussed in Thread: DM3730, TMS320DM647, OMAP3530

I am using a LogicPd DM3730 Torpedo Development kit with a Spectrum Digital XDS510 USB with Code Composer v5.1 with Sys/Bios 6.33.02.31.   I have been using CCSv3.3 with this target without issues.  I am trying to migrate to CCSv5 with SYS/BIOS.     I am trying a simple example by creating the Sys/Bios Hello world project for the DSP but I am having issues getting the project to run to main().

When I create the project I am selecting Family C6000, Variant DaVinci DM64x, TMS320DM647.  Connection SD XDS510USB Emulator.   Are these the correct choices for the DM3730?

On the RTSC Configuration Settings page I pick target, ti.targets.C64P, Platform ti.platform.evm3530 (evm3730 is not an option).   Are these the correct choices for the DM3730.

I am using the Mistral 37x EVM XDS510USB.ccxml target config file as suggested on the Wiki.

When I build, then lauch this configuration with a break point on main, I never reach main.   I can step the code starting at c_int00 but when I hit run I do not make it to main.  When I hit pause I see it is stuck in:

UInt32 Timer_getPeriod(Timer_Object *timer)

{

    return (Timer_TimerProxy_getPeriod(timer->pi));

}

I aslo tried migrating a working v3.3 DSP/BIOS v5 project to Sys/bios using the conversion tool with the same results.

Am I missing a patch to support the DM3730?

  • Hi Jonathon,

    LogicPD just came out with these instructions for using CCSv5 with the DM3730 Torpedo (written for the XDS100v2 JTAG):

    0624.AN XXX CCSv5 for the DM3730 and AM3703 HelloWorld Example_Preliminary.pdf

    You should definitely be selecting the Variant DaVinci DM37x , DM3730.  I imagine you will need to apply the above patches for these options to be present.  Let me know how it goes.  I just tried this today and got stuck when no RTSC Platforms or Targets were listed.

    - Tom

  • Hello again,

    Can I ask if you got anywhere with running SYS/BIOS in the DM3730 Torpedo SOM?  Pulling my hair out...

    Thanks!
    Tom

  • Yes I figured it out using the settings I had specified above.  The key is you need to enable General Purpose Timer 5 before starting.  Bios uses this clock as its OS tick. 

    void EnableGPT5()
    {
       #define CM_FCLKEN_PER    *(int *)0x48005000
       #define CM_ICLKEN_PER     *(int *)0x48005010

       CM_FCLKEN_PER = CM_FCLKEN_PER|0x00000040;
       CM_ICLKEN_PER = CM_ICLKEN_PER|0x00000040;
    }

    I stumbled on to this using CC V3.3 DSP/BIOS on the DM3730, but I was able to start it in main().   Apparently in SYS/BIOS main() does not run before the tick is neccessary, so I had to enable it first.  I could not figure out a good place to put this in SYS/BIOS so for now I added it to the Gem command IVA22_Gem_Startup().   On my system I have the ARM loading and starting the DSP, so I start GPT5 on the ARM first before starting the DSP.

    It would be nice to keep this enable inside the DSP startup code rather than having to do this in the ARM.  Do you have any suggestions on a good early place to put this.  I don't know SYS/BIOS well enough yet to solve.

    I figured this out before accepting the patches above and I am using the OMAP3530 settings.

    Thanks for taking time to work on this!

    Jonathon