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.

TMS320F28027 load programs in chip

Other Parts Discussed in Thread: TMS320F28027, UNIFLASH, TMS320F28069, CONTROLSUITE

Dear Sir,previously we use to have Mircochip controllers for our instruments However, they use to provide the interface to upload programs in it ( for example PICKIT-3). Now we are proposing to use TMS320F28027 for our application due to some advanatges in it. But we are unaware about interface (i.e how to upload the program through code composer into the chip). Moreover, please suggest some low price techniqu for interfacing. Does texas provides the interfacting instrument so that I can upolad the programm on the chip by using the serial port communication pins from my chip to ur separate interfacing instrument. Otherwise can the interfacing instrument be made by us by using FTD2332 (USB/UART) IC to avoid any cost burden.

Please guide us. and treat it as urgent.

regards

Ashutosh

  • Hi Ashutosh,

    First of all welcome to the TI E2E family. One can use XDS100 debugger; its a low cost debbuger and programmer. Also, you can manufacture your own XDS100 but being a begginer I would recommend you to go with the ready-made one from TI-estore.

    You can get schematics, PCB and BOM from here: http://processors.wiki.ti.com/index.php/XDS100#Q:_Where_can_I_get_the_design_.2F_schematic_.2F_BOM_for_the_XDS100v2.3F

    Regards,

    Gautam

  • Dear gautam,

    Thanks for your help but few more questions

    1. The same emulator can be used for 16 bit micro controllers, 32bit micro-controllers/ARM. Otherwise whether the above said debugger is IC specific.

    2. Also can u suggest any DIP package microntroller of DIP package with  more than 20 GPIO and with 6 ADC ( 12bit).

    3. As microchip is providing free MPLab software for software environement , Is Texas providing such kind of support , Whether that support is free of cost or chargeable.

    4. After installation above link software XDS100 when I open it is not able to open. Again it is asking to install it. Also i am not able to get the PCB layout.

    Regards

    Ashutosh

  • 1. The same emulator can be used for 16 bit micro controllers, 32bit micro-controllers/ARM. Otherwise whether the above said debugger is IC specific.

    Support for the following processor cores: TMS320C28x, TMS320C54x, TMS320C55x, TMS320C64x+, TMS320C674x, TMS320C66x, ARM 9, ARM Cortex R4, ARM Cortex A8, ARM Cortex A9 and Cortex M3

    Please go through this link for more details: http://processors.wiki.ti.com/index.php/XDS100

    2. Also can u suggest any DIP package microntroller of DIP package with  more than 20 GPIO and with 6 ADC ( 12bit).

    None of the C2000 series come in DIP package. You can use a converter though.

    3. As microchip is providing free MPLab software for software environement , Is Texas providing such kind of support , Whether that support is free of cost or chargeable.

    Yes, CCS is available for free for C2000 devices if XDS100 emulator is used.

    4. After installation above link software XDS100 when I open it is not able to open. Again it is asking to install it. Also i am not able to get the PCB layout.

    http://downloads.ti.com/dsps/dsps_registered_sw/sdo_ccstudio/XDS/XDS100v2Schematic(rev2)-Setup.zip

    Regards,

    Gautam

  • 1. What do u mean by converter through.

    2. DIP IC are easy for soldering hence we prefer most . Howe ever we need cost effective solution

    3. Microchip also provides the interfacing module on which we have to mount the chip so that to upload the programm from MPLAB or Keil. after that u can put back into ur PCB. Does Texas provides this kind of interface.

    4. The cost said TMS320F28027 is 3.2/1kU at texas site does it mean it is it is 3.12 dollar for 1000 pieces. As on the element14 website it is showing 544Rs /piece which sounds it is costly IC.

    5.Also suggest any cost effective debugger/emulator for MSP430G2553 along with that please suggest the software for interfacing the chip .

  • 1. What do u mean by converter through.

    https://www.google.co.in/?gfe_rd=ctrl&ei=C8wrU-_7KK3W8gfRz4CYCw&gws_rd=cr#q=soic+to+dip+converter

    2. DIP IC are easy for soldering hence we prefer most . Howe ever we need cost effective solution

    Sorry, but no DIP packages available.

    Always buy from element14 india as they include the cost of duty etc... The $ prices exclude these charges.

    5.Also suggest any cost effective debugger/emulator for MSP430G2553 along with that please suggest the software for interfacing the chip .

    Debugger generally used for MSP430 is http://www.ti.com/tool/msp-fet430uif

    and you can use CCS uniflash along with that for flashing.

    Regards,

    Gautam

  • Dear Gautam

    1.The chips which MSP430G2553 /TMS320F28069 are displayed as $3.12/1KU ( what does it mean)


    2.Please suggest some cheaper option as these chips are above 500Rs

    3. Microchip dosent take any shipping charges ,Moreover chips are at max 200rs

    Please advise

  • Hi,

    $3.12/1KU ( what does it mean)

    Its means 3.12 dollars per unit if 1000 mcus are purchased. You can order samples though!

    2.Please suggest some cheaper option as these chips are above 500Rs

    TMS320F28027 is a cheaper version and come for around $4.5

    3. Microchip dosent take any shipping charges ,Moreover chips are at max 200rs

    Please don't compare Microchip and TI; both of them have their own pros and cons. If you  might've observed TI chips are way more powerful than the equal $ rated microchip IC! 

    I, myself am an expert of 12F/16F/18F/24F PIC series; it was tough to explore the TMS platform at first but once I realized the power C2000 family, there was no looking back :)

    Same is the case with MSP430 family too. So, please don't compare the prices.... Compare their performances!

    Regards,

    Gautam

  • Dear Sir,

    I am using 28069 Piccolo control stick, As per my design requirement I need two control stick to execute two parallel program. I am using Code composer V4 for uploading the programs. However, since I have to upload programs in two separate control stick and make them run. I have thought to one control stick I will upload in flash memory, so that it can run independently, only it needs to be powered, However for other control stick I require grpahs and online control facility of code composer, hence it needs to be connected to PC and code composer permamaently.

    Thus in view of above I request you to suggest how to upload program in flash memory through code composer, so that it cannot be earased if the power to the stick is OFF, Also it will start its operation once the power is up. Moreoevr, if I need to overwirte the programm in flash meomory will it be possible through code composer studio.

    Please guide urgently

  • Hi Ashutosh,

    Thus in view of above I request you to suggest how to upload program in flash memory through code composer, so that it cannot be earased if the power to the stick is OFF, Also it will start its operation once the power is up. Moreoevr, if I need to overwirte the programm in flash meomory will it be possible through code composer studio.

    Yes, you can load your code to flash and here how you can do it:

    5722.Running from Internal Flash.pdf

    Understand the concepts given in the above doc. Here's another easy way of achieving the same:

    Import this project: "flash_f28069"

    C:\ti\controlSUITE\device_support\f2806x\v136\F2806x_examples_ccsv5\flash_f28069

    The linker file (.cmd) in this project is already designed for flash execution.

    Regards,

    Gautam

  • Dear Sir,

    As I am short of time, can u indicate step by step procedures to follow.

    Let me know what are changes that I have to make to my existing program to carry out the job.

    Also suggest me by adding few files of above said example to my project file will it be sufficent.

    Please indicate some easy and fast steps to follow.

  • If you're in a hurry, the above method 2 is the best option:

    Import this project: "flash_f28069"

    C:\ti\controlSUITE\device_support\f2806x\v136\F2806x_examples_ccsv5\flash_f28069

    The linker file (.cmd) in this project is already designed for flash execution.

    Just paste your code in that example.

    Regards,

    Gautam

  • Dear Sir,

    I have gone through that programm.

    If I add these to main programm

       MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd, &RamfuncsRunStart);

    InitFlash();

    and further add the file naming 28069.cmd and delete from project 28069_RAM_ink.cmd

    will it be sufficent to upload the prorgamm in flash

    Also,  After that what are the setting in code-composer to upload proramm in flash (not permamently i.e it can be rewirtten)

  • Yup, the above should do the trick.

    Also,  After that what are the setting in code-composer to upload proramm in flash (not permamently i.e it can be rewirtten)

    You can reprogram, there's no setting as such. You can program to flash multiple times.

    Regards,

    Gautam

  • I added my file to the above said flash pramm with few lines I added in it

    But following errors are comming in it

    line 139: error:
       run placement fails for object ".ebss", size 0x127c (page 1).  Available
       ranges:
       RAML2        size: 0x400        unused: 0x400        max hole: 0x400     
       .ebss               : > RAML2,      PAGE = 1

     undefined      first referenced           
      symbol            in file                
     ---------      ----------------           
     _InitEPwm1Gpio ./Example_2806xEPwmUpAQ.obj
     _InitEPwm2Gpio ./Example_2806xEPwmUpAQ.obj
     _InitEPwm3Gpio ./Example_2806xEPwmUpAQ.obj

    error: unresolved symbols remain

    warning: entry-point symbol other than "_c_int00" specified:  "code_start"

    Please guide me to resolve it

  • Try this cmd file: 3630.F28069.zip

    Regards,

    Gautam

  • file is asking password

  • It is asking password

  • Here's the file and the password is "space" (press the a single space bar)

    3531.F28069.zip

  • Dear Sir

    Again same error is comming

    Files/ti/controlSUITE/device_support/f2806x/v100/F2806x_common/cmd/F28069.cmd", line 139: error:
       run placement fails for object ".ebss", size 0x127c (page 1).  Available
       ranges:
       RAML2        size: 0x400        unused: 0x400        max hole: 0x400     
       .ebss               : > RAML2,      PAGE = 1
    warning: entry-point symbol other than "_c_int00" specified:  "code_start"

    error: errors encountered during linking; "Example_F2806xFlash.out" not built

  • Ashutosh, lets take this in an easier way: please import the flash example project to CCS. Then try replacing your code with the one already present. Don't simple copy and paste but check everything.

    Regards,

    Gautam

  • Dear Gautam

    I had resolved the problem by doing below said changes to cmd file

    RAML2       : origin = 0x008C00, length = 0x001400     /* on-chip RAM block L2 */
       /*RAML3       : origin = 0x009000, length = 0x001000      /* on-chip RAM block L3 */

    As RAML2 was previous only 400 it was exceeding its limit

  • Dear Gautam

    I am now having different problem

    First time when I load the programm in flash it works smoothly

    However, when it is restarted it takes garbage value shows absurd result.

    Also If I use different laptops to upload the prorgamm in control stick ram it dosent work it shows garbage values.

    Why is it sooo

  • However, when it is restarted it takes garbage value shows absurd result.

    Absurd result? If you're talking about the variables having garbage values after restarting then yes they'll have garbage values or if initialized to zero they'll have 0 as initial value. After restarting all the variables and result registers go to their reset values. Only the .out file ie the executable file is stored in flash and the variables values. If you want to store variable values and results in flash then there's a technique called "Emulation of EEPROM in FLASH"

    Regards,

    Gautam 

  • Dear Sir,

    Can I upload directly .out file using code composer

    Please guide me

  • You can use CCS Uniflash to load only the .out file.

  • Dear Sir,

    A have one funny experince with control stick 28069

    I am using code composer V4

    The DSP was working fine and also the DSP was controlled very nicely when I was using my Dextop PC. (program is loaded in RAM)

    However When I uploaded the same programm  the ADC values in result register were showing absurd values. Then I tried with Flash, first time it was working when I controlled from PC, but when the same DSP was made to work independely without code composer control ( as the proramm was loaded in flash) it showed absurd results.

    Can u explain me why it is so.

    Now also if I am operating from same PC it is working fine, with  proramm loaded in ram.

  • That's very odd, Ashutosh! This shouldn't happen; are you sure the program loaded onto your flash is valid one?

    Regards,

    Gautam

  • While loading the programm in flash I am observing error

    Please guide

    C28xx: Flash Programmer: Missing Flash Programming Settings.
    C28xx: Flash Programmer: Error erasing Flash memory.
    C28xx: Flash Programmer: Missing Flash operation option. Operation cancelled.
    C28xx: Trouble Writing Memory Block at 0x3f4a56 on Page 0 of Length 0x29d
    Cannot write to target

  • C28xx: Flash Programmer: Missing Flash Programming Settings.
    C28xx: Flash Programmer: Error erasing Flash memory.
    C28xx: Flash Programmer: Missing Flash operation option. Operation cancelled.
    C28xx: Trouble Writing Memory Block at 0x3f4a56 on Page 0 of Length 0x29d
    Cannot write to target

    This is wrt F28069 or F28027?

  • Ashutosh Pailwan1 said:
    Files/ti/controlSUITE/device_support/f2806x/v100/F2806x_common

    Hello Ashutosh,

    I strongly recommend you to use the latest version of F2806x example (not v100, it is too old as it is first version and be sure many bugs!)

    Please use C:\ti\controlSUITE\device_support\f2806x\v136, and please send again the thread in new thread when you have problem using this version.

    Best regards,

    Maria