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.

TMS320F2812: how to download code into TMS320F2812

Part Number: TMS320F2812


Hi; 
I am completely new with DSP and I have TMS320F2812 I soldered with 30 Mhz X-tal , and necessary connections, Just to power up, I used Ti's Code Composer Studio 6.2 , and wrote a  C code that builds successfully which should just turn a led connected to GPIOB3, pll I used to so that DSP sys freq is 150MHz. I have no development board just soldered the chip and the power and , I have no idea how to download the code in to DSP so that led or any other code written can be tested and implemented, In other words is it flash programming . then please let me know what I should do to download the code; I have no wires, and no idea how to do it.

Thanks

  • Hi Ahmad,

    To program and run code on the device using CCS you will need a JTAG connection to the device and use a JTAG debug probe. A list of options are provided at the link below, which also mentions flash programming options:

    http://www.ti.com/microcontrollers/c2000-real-time-control-mcus/design-development.html#other-tools

    Any specific reason why you're working with the F2812 and not a newer C2000 device along with a development board (LaunchPad or ControlCARD) to get you started?

    Best,

    Kevin

  • Hi Kevin;

    Thanks for your reply. As for the reason , I just happened to buy  TMS320F2812 3 years ago, but I never used it before, so I started working on it rather than buying others. and Some questions I knew that the processor can be clocked up to 150 MHz, so my 1st question is How many inst. cycle, per sec it does with 150 MHz , is it 150 MIPS or ( i have worked with other dsp's  from Microchip( that would take 4 clock cycles to perform 1 instruction) something lower?

    and the 2nd question is I downloaded from Ti website CCS version 5.4 , so if I have say JTAG XDSv100 2, is it ok that I could load the code into the flash, or still I have to add some flies to  CCS project or once  this jatg (xdsv100 2) is selected for connection CCS will automatically add all necessary files to the project, this is not clear to me , if you could please clarify  me those steps, I could not find them for CCS v5.4 .

    Thanks 

    Ahmad

  • Hi Ahmad,

    OK, I see. Could you provide a picture of your hardware setup?

    Ahmad Alhaque said:
    I knew that the processor can be clocked up to 150 MHz, so my 1st question is How many inst. cycle, per sec it does with 150 MHz , is it 150 MIPS

    It's 1 instruction per cycle, so 150 MIPS is correct.

    Ahmad Alhaque said:
    and the 2nd question is I downloaded from Ti website CCS version 5.4 , so if I have say JTAG XDSv100 2, is it ok that I could load the code into the flash, or still I have to add some flies to  CCS project or once  this jatg (xdsv100 2) is selected for connection CCS will automatically add all necessary files to the project, this is not clear to me , if you could please clarify  me those steps, I could not find them for CCS v5.4 .

    You'll need the proper JTAG hardware connection / signals available for the XDS100v2 to be used with the f2812 device. I'd suggest looking at the eZdspR2812 made by Spectrum Digital to understand the hardware requirements:

    http://c2000.spectrumdigital.com/ezr2812/

    For the software piece I'd recommend starting with the C2000 workshop linked below.

    https://training.ti.com/c2000-f281x-microcontroller-workshop

    Keep in mind that this is an older device. There are newer C2000 devices with updated workshops and evaluation modules available to help you get started.

    Best,

    Kevin

  • Dear Kevin;

    Here is the schematic of the board I will use, DSP_JTAG is for emulator, as much as I understood and Xtal is 30M, with PLL sys clock should be 150M, so 

    the question what will be MIPS for the DSP? also the signals TRET and TCKs are shorted on the header is that how it is allowed?

    I wanted to use this board  as a controller with sampling rate of 250 kHz that is every 4 uS the ADC should read the measured value and then after controlling the PWM outputs are to be used as  for gating the switch in the converter.

    So the question is can this processor read that adc every 4 us sec and do all this job, provided that sys clock is 150 MHz

    Thanks Ahmadmini2812.pdf

  • Hi Ahmad,

    Ahmad Alhaque said:
    the question what will be MIPS for the DSP? also the signals TRET and TCKs are shorted on the header is that how it is allowed?

    It'll be 150 MIPS like I said earlier. Your 14-pin JTAG connector looks correct to me, didn't look over the entire schematic. You'll need a XDS100 debug probe to connect and use with it.

    Ahmad Alhaque said:

    I wanted to use this board  as a controller with sampling rate of 250 kHz that is every 4 uS the ADC should read the measured value and then after controlling the PWM outputs are to be used as  for gating the switch in the converter.

    So the question is can this processor read that adc every 4 us sec and do all this job, provided that sys clock is 150 MHz

    I believe the ADC on the F2812 max conversion times are 12.5 MSPS, so 250 kHz is no issue.

    Best,

    Kevin