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.

Trouble Executing from Flash 28035

Other Parts Discussed in Thread: CONTROLSUITE

Hello:

I am trying to get my code to execute from flash  I am using the Experimenters Kit with the 035 controlCard.  My project is based on the flashing led project and is being loaded to  flash and run under emulation.  If I disconnect the emulator and cycle power the application does not function.  I rebuilt and loaded the flashing led example into flash and it works fine from flash without the emulaor.  In the debugger, I can step though the code and see and branch to _main.

I have attached my CMD file.

Best,

Graham.....

 

 

F28035_FLASH_TAG.rar
  • .....I thought my map file my be useful

     

     

    Tag.rar
  • Your map file looks fine.

    Did you check your boot jumper setting at the 28035ControlCard?  There should be a switch SW1 on that board to set the boot option. If I remember correct, the default is SCI-Boot. You have to change that to FLASH-boot to start as stand alone.

     

  • Frank:

    Setting that switch to any combination of settings does not solve the problem.  As I said, the flashing led example does work in out current configuration.

     

    Graham...

     

  • Graham,

    I think I am seeing the same thing you were seeing:

    - I can run Flashing_LED from flash on the 28035 board standalone (only USB power attached)

    - My stuff only works (flash or RAM) under the emulator, it will not run standalone: seems to trap at 3FF8CD

    Do you have any suggestions as to how to get this running?

    Thanks,  Joe

  • Up and running!

    So to answer my own question: I had not linked in the "CodeStartBranch.asm", so the vector at 3F7FF6 was not setup.

    Joe

  • Trying my luck replying to a msg from 2010 :)

    I am facing the same problem, can you explain how you got this solved?

  • Are you linking with F28035_FLASH_BlinkingLED.CMD?

  • Heyy...hello

    I am trying to run FLASH_f28035 example from control suite on TMSDOCK28035 experimenters kit

    2703.flash_f28035.rar

  • Sandhya:

    I re-created the project on the 035 experimenters kit using CCS 3.3.  I did it this way because the project file is self explanatory and infinitly less complex than the Eclipse makefile.  You will notice I am using the 027 cmd file, F28027_FLASH_BlinkingLED.CMD.  Hey.....it is close enough.  I have my ControlSuite installed in C:\ti, the default.  Include the files below, build and flash and you should be good to go.

    ; Code Composer Project File, Version 2.0 (do not modify or remove this line)

    [Project Settings]
    ProjectDir="C:\Users\Graham\My Projects\LC-40\Test\Software\App\test\Unit\BlinkingLed\"
    ProjectType=Executable
    CPUFamily=TMS320C28XX
    Tool="Compiler"
    Tool="CustomBuilder"
    Tool="Linker"
    Config="Debug"
    Config="Release"

    [Source Files]
    Source="..\..\..\..\..\..\..\..\..\..\ti\controlSUITE\development_kits\Piccolo controlSTICK\Timer - BlinkingLED\BlinkingLED-DevInit_F2802x.c"
    Source="..\..\..\..\..\..\..\..\..\..\ti\controlSUITE\development_kits\Piccolo controlSTICK\Timer - BlinkingLED\BlinkingLED-Main.c"
    Source="..\..\..\..\..\..\..\..\..\..\ti\controlSUITE\development_kits\~SupportFiles\source\DSP2803x_GlobalVariableDefs.c"
    Source="..\..\..\..\..\..\..\..\..\..\ti\controlSUITE\device_support\f2803x\v127\DSP2803x_common\source\DSP2803x_CodeStartBranch.asm"
    Source="..\..\..\..\..\..\..\..\..\..\ti\controlSUITE\development_kits\Piccolo controlSTICK\Timer - BlinkingLED\F28027_FLASH_BlinkingLED.CMD"
    Source="..\..\..\..\..\..\..\..\..\..\ti\controlSUITE\device_support\f2803x\v127\DSP2803x_headers\cmd\DSP2803x_Headers_nonBIOS.cmd"

    ["Compiler" Settings: "Debug"]
    Options=-g -pdsw225 -fr"$(Proj_dir)\Debug" -i"C:\ti\controlSUITE\development_kits\~SupportFiles\F2803x_headers" -i"C:\ti\controlSUITE\device_support\f2803x\v127\DSP2803x_headers\include" -i"C:\ti\controlSUITE\device_support\f2803x\v127\DSP2803x_common\include" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28

    ["Compiler" Settings: "Release"]
    Options=-pdsw225 -o3 -fr"$(Proj_dir)\Release" -d"LARGE_MODEL" -ml -v28

    ["Linker" Settings: "Debug"]
    Options=-c -m".\Debug\BlinkingLed.map" -o".\Debug\BlinkingLed.out" -stack0x100 -w -x

    ["Linker" Settings: "Release"]
    Options=-c -m".\Release\BlinkingLed.map" -o".\Release\BlinkingLed.out" -w -x

  • Sandhya,

    I assume you were already able to program the code into flash and have problem executing the code standalone?

    If so, did you try to make sure whether your example code is working when the emulator is connected?

    Did you check whether your boot mode pins are configured to boot to flash?

    Regards,

    Manoj

  • Sandhya,

    Below link discusses all the possible scenarios why your code isn't working standalone.

    http://processors.wiki.ti.com/index.php/C2000_Flash_Common_Issues/FAQs#Running_Code_Standalone

    Regards,

    Manoj

  • Thanks Manoj.

    Yes, I had difficulty running my code standalone.

    But I used Example_28035_Flash project from controlsuite and I was able to run it standalone. Previously I was using CCSv6 and I was importing ccs4 example and it did not run, not sure why?//