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.

running standalone program

Other Parts Discussed in Thread: TMS320VC5505, CCSTUDIO

I want to load a program on my TMS320VC5505 module and run the program without using the emulator. I wish to use the board as a roadside sensor, where there will be no PC connection to run CCStudio. Is this possible?

The ECG Implementation kit application notes said to use BootImageCreation.zip to create hex files that can run on standalone EVM. This zip file is absent in my CCStudio cd that has come with the EVM.

  • Rijurekha,

    Information on how to program the EEPROM on the EVM is located at this post: http://e2e.ti.com/support/dsp/tms320c5000_power-efficient_dsps/f/109/p/33055/115038.aspx#115038.

    The ECG App Note has an error on this point.  The BootImageCreation files were an early version of the flash programming tools which were replaced by utility discussed in the above post.

    Hope this clears things up.

    Regards.

  • Thanks Tommy.  I have started to work on the TMS320VC5505 EVM since a few weeks. Mine is not the C5505-ezdsp USB stick, it is a big board with RS232,LCD and several other interfaces). My questions are very naive. So thanks a lot for helping out an absolute beginner like me.

    I created both hex and bin files using command prompt : 1) hex55.exe -b file.out -o file.bin 2) hex55.exe -i file.out -o file.hex

    I have the following questions:

    1) How to load the hex or the bin file to EEPROM? If I try Load Program option of CCS, only file.out option works. Error  "cannot determine type of target file" comes when I try to load hex./bin. I understand this because "Load Program" loads the program to RAM, while I want to load to EEPROM. So what should I do?

    2) I do the following steps at present. a) Connect the board to the PC with USB,  b) open CCS,  c)Debug>connect, d)open a project, e)build it, f) Load Program, g) Run ---- This program I belive loads and runs in the RAM. What should be the steps, if I want to run from EEPROM?

    3) Do I need to add the functionalities of my gel file in the program I'll load in EEPROM? I want the program to run, on powering up the board, without invoking CCSTUDIO. So the PLL initializations and stuff like that should be a art of my program?

    Thanks in advance,

    Rijurekha

  • I downloaded  "eZdsp_Programming_Tool.zip" (though my board is TMS320VC5505 and not eZdsp) and tried to use programmer_USBKey.out to load the bin file in EEPROM. But though the bin file is present in C:\ , the following error comes.

    Input your binary file path... C:\csl_uart_example.bin SPI EEPROM... Writing data to device... Opening C:\csl_uart_example.bin... Unable to find file!

    Also my hex55.exe is v4.1.2. Do I need a newer version?

     

  • The ECG Front End daughtercard is using up the SPI port. This means you can't use the SPI EEPROM for bootloading in that configuration:

    I'm still trying to find out if I2C EEPROM boot is supported but otherwise, you can use NOR and NAND boot instead.

    SD boot would only be possible in secure more...

    ...and yes you need CGT 4.3.3 or later.

    CCSv41 comes with CGT 4.3.5 by default.

    to download from (with link to release notes):

    http://tiexpressdsp.com/index.php/Category:Code_Composer_Studio_v4

    or directly from:

    http://tiexpressdsp.com/index.php/Download_CCS

  • Rijurekha,

    Did you get your Programming task to work for you?  I noticed that you were not using the procedure outlined in the Forum post on programming the VC5505 EVM.  Your hex55 command line did not contain the -boot and -serial8 switches that are required for building the boot table needed for the DSP's embeddded bootloader.  Details on the bootloader are available in this App Note:  http://www-s.ti.com/sc/techlit/sprab92.  Details on the hex55 utility can be found in this User Guide:  http://www-s.ti.com/sc/techlit/spru280

    You are correct that you need to migrate DSP setup functions in the gel file to your application.

    Regards.

  • Hi Tommy,

    I have posted a query on what functions to include in my program from the GEL for standalone boot at

    http://e2e.ti.com/support/dsp/tms320c5000_power-efficient_dsps/f/110/p/11110/126199.aspx#126199

     

    Please see my query there and reply.

     

    I don't want to mess up with the bootloader as James in

    http://e2e.ti.com/support/dsp/tms320c5000_power-efficient_dsps/f/110/p/11099/43179.aspx#43179

    who has to uproot his EEPROM pin, to connect the eZdsp again.

     

    So I want to make sure, I do all the steps right. The steps, as I understand are as follows.

    1) write a program, whose main function should have proper initializations (like PLL setup)

    2) compile the program using ccs to get program.out

    3) create program.bin using the command hex55 -i program.out -o program.bin -boot -v5505 -b -serial8. The hex55 should be latest version (4.3.5)

    4) Load and run programmer_USBKey.out in CCS and input full path to program.bin when prompted.

    5) Disconnect stick from CCS and power it off by disconnecting from pc. Power it on after sometime. My program should automatically start to run.

     

    Correct me if I am wrong in my understanding.

    Thanks,

    Riju

  • Sounds right to me.

    Regards.