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.

Flash code and DSP start on TMDSHVMTRPFCKIT and F28335 ControlBoard

Other Parts Discussed in Thread: ISO1050

Hello,

I use the TMDSHVMTRPFCKIT with the F28335 control board.

My IDE is CCS v3.3, and I use automatic code generation with Matlab/Simulink. I use the onboard USB-JTAG debugger.

When I generate the code, compile and download the code in RAM, all works fine.

When I download the code in FLASH, the DSP does not restart automatically when I restart the DSP power (code generation and download is OK because I use the same on another application and that works fine). I think my problem comes from the jumpers configuration on the PCB : I tried different one but didn't find the one that works. I don't think I have to modify the jumpers on the DSP controlboard itself because on another application I didn't modify them and it runs correctly at restart.

I remarked that after having flashed the DSP, when I restart the power, simply connect CCS then clik on "run", the DSP starts correctly.

Do you know how I have to configure the jumpers on the kit's PCB for the DSP to start automatically from FLASH ?

Shall I add any pull-up/pull-down on the JTAG side to force the DSP to start?

Thank you,

Best regards,

Julien

  • Hi Julien,

    Simply refer this document: www.ti.com/.../sprugu7.pdf

    Regards,
    Gautam

  • Hi,
    I already checked this document and applied what's indicated on it, with no success. As I dont use the TI GUI, I'm not sure what is applicable in my case exactly.
    I use the Motor Control Kit PFC v2.1 (yellow board).

    I use following configuration :
    - The DSP ControlBoard is configured as follows : SW1 ON, SW2 all switches ON
    - J5 is un-populated
    - I populate the J9 jumper to be able to connect CCS via the USB-JTAG, then I flash the DSP
    - Once the DSP is flashed, I cut-off the board, un-populate J9, then restart the board
    - Then the DSP does not restart automatically ...

    When flashing exactly the same code on another DSP (a DSP on its "socket" board, configured SW1&2 ON), the DSP restarts correctly.

    Is there anything I forgot to do ?

    Best regards,
    Julien
  • When flashing exactly the same code on another DSP (a DSP on its "socket" board, configured SW1&2 ON), the DSP restarts correctly.

    So is it like when you program the non-working code with flash based file, it programs but doesn't work or it doesn't even program?

    Regards,
    Gautam
  • Hello Gautam,

    To be more precise, here is exactly what I do/get :

    - I populate J9 on the kit (to enable USB-JTAG communication)

    - I apply automatic code generation and compilation with Matlab/Simulink, then DSP is automatically flashed then put in "run" mode : DSP is running (I can check a flashing LED on the DSP control board) and for example CAN communication is working

    - I stop the power

    - I suppress the J9 jumper (to enable Flash mode) and unplugged the USB-cable

    - I restart the power : the DSP seems to be running (the flashing LED is OK), but I have no CAN communication

    - The only way to have the CAN communication working is to re-plug the USB cable, make "connect" under CCS then "run" (no need to re-flash)

    Best regards,

    Julien

  • Hi Julien,

    For this CAN communication you might be using CAN Transceiver right? Is it getting powered ON?

    Regards,
    Gautam
  • If you talk about the "U6" component (ISO1050), yes it is powered ON (3.3V and 5V supplies are OK)
  • That's Odd... can you probe the critical points while with USB cable and other power source? Check for any discrepancies.
  • You mean that I check the power supplies while with and without USB cable? My power source is the one furnished with the kit (15V transformer).
    The fact I have to click on "run" under CCS to launch CAN communication does not help to find what I miss ?
    Best regards,
    Julien
  • Would you have any ideas for other tests I could do?

    Best regards,

    Julien

  • Dejan Julien said:
    - The only way to have the CAN communication working is to re-plug the USB cable, make "connect" under CCS then "run" (no need to re-flash)

    This is a very odd behavior. Something seems to trigger CAN communication once connected to CCS. I'm not aware of such behavior and hence let me direct you to an expert who can guide you accordingly. Be patient!

    Regards,

    Gautam

  • OK, thank you for your help.

    I wait for your news.

    Best regards,

    Julien

  • Hello Gautam,
    Did you have the possibility to contact an expert for this problem ?

    It seems my problem is as follows :

    - after flashing the DSP, and power-down/power-up, the DSP restarts (a control LED is flashing), but the CAN communication does not work

    - I have to connect CCS and make "run" for CAN communication to run correctly


    Thank you,
    Regards,
    Julien

  • Let me re-forward the same.

  • Hello,

    I use the USB connection to flash the DSP (code is located in ramfunc and copied from Flash to RAM at start-up).

    Is it possible that the problem comes from the "TRST" pin? My [M3]-J5 jumper is not populated : shall I populate [M3]-J5 and apply a pull-down on the TRST pin on the external interface for the DSP to start correctly (and so CAN communication to run) ? I dont know much about the external JTAG interface, but saw on different threads that TRST state has an impact on the DSP start-up ...

    Best regards,

    Julien

  • Hi Julien,

    Based on what I've read, this does not seem like a hardware issue.  Instead, I believe it to be some kind of software/linker command file issue.

    Take a look at the below for some guidelines for debugging issues when code works with CCS, but does not work standalone:
    http://processors.wiki.ti.com/index.php/C2000_Flash_Common_Issues/FAQs#Code_Does_Not_Run_Standalone

    Hopefully this helps.


    Thank you,
    Brett

  • Hi Brett,

    Thank you for your feedback.

    I will take a look at your document and keep you informed of my results.

    Best regards,

    Julien

  • Brett,

    We checked all the software, including the command file and made a lot of tests, but we didn't find the problem.

    In attached file you will find our .map file and .cmd file (replace the .jpeg extensions by .cmd and .map).

    Could you please take a look to these files to find what's wrong ?

    Thank you,

    Best regards,

    Julien

  • Hi Julien,

    You didn't attach what you meant to (however I'm not sure how much it would help without the context of the code around it).

    My main thoughts:
    1) Is all your CAN code running from FLASH?  Or are you trying to load some in FLASH and then run it out of RAM?  If the latter make sure you copy the code over before trying to use it
    2) Does CAN communication ever cause the program flow to enter the CAN interrupt?
    3) Are you using optimization in your project?  If so, can you reduce the optimization level and see if that changes what you are seeing?


    Thank you,
    Brett

  • Hello,

    We bought a new TMDSHVMTRPFCKIT, and with this new kit all works perfectly...

    So there is an hardware problem on the first one, that prevents the DSP to start automatically from flash at power up.

    As the DSP starts when I send the "run" command with CCS, I suppose the defective component is located near the USB/JTAG area. Would you have any idea about the component that could have fail ?

    Best regards,