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.

TMS320C6455: DSP booting issue

Part Number: TMS320C6455
Other Parts Discussed in Thread: SYSBIOS

HI,

I have a custom board with two 6455 DSP's .

I have configured the DSP as EMIFA boot mode.

When loading my code through emulator,it works fine.

But when the same is converted to hex and loaded into flash. DSP is not booting.

May I know how to debug?

Thanks in advance

Regards,

Rakesh

  • Hi,

    I've notified the RTOS team.

    Please share which processor SDK are you using?

    Best Regards,
    Yordan
  • Hi ,

    I am using SYSBIOS.

    Regards,
    Rakesh
  • Surabhi,

    Please go to TI.com and do a search for "debug boot issues" (no quotes). Some experienced engineers have written good information based on their experiences with this topic.

    Regards,
    RandyP
  • Hi Randy,

    I had been to this site,
    I had tried some of it ,but none of them was solving my problem.

    I have an observation,while including srio code that configures DSP as srio slave ,I am facing the problem while booting.


    May I know the reasons?

    Regards
    Rakesh
  • Rakesh,

    Do you mean that your observation is that when including SRIO configuration the boot fails but if you do not include SRIO configuration then the boot is successful?

    Since you have already gone through the steps mentioned in the "Debugging Boot Issues" Wiki page, please list as much information as possible about the steps you took under each heading and the results you observed. It is easier to help with more information from the helpful steps listed in that article.

    You can also search the forum for other debugging threads; there are many similar discussions of "my boot does not work, why?" and the advice offered and results found in those cases may be good for your situation, too.

    Regards,
    RandyP
  • Hi Randy,

    Yes ,when including SRIO configuration,boot fails.

    I am not loading any gel files.

    While loading symbols ,I have observed that my PC is initialized to main.obj .

    I tried to place breakpoint at few places of my code.But PC is not updating.

    Regards,

    Rakesh

  • Rakesh,

    Do you get anything written to the CCS Console window when you connect to the target?

    When in your application is the SRIO configuration done? Usually, that would be done in main().

    SURABHI RAKESH said:
    While loading symbols ,I have observed that my PC is initialized to main.obj .

    Is your PC at _main or somewhere within the main() function? PC=main.obj is not a valid description.

    Is the PC always at the same place when you halt it after a failure?

    SURABHI RAKESH said:
    I tried to place breakpoint at few places of my code.But PC is not updating.

    As described in the Wiki article, use a hardware breakpoint at _main or main to stop after the code is bootloaded. Observe the difference between the loaded code / initialized data and those for the emulator-loaded version.

    Regards,
    RandyP

  • Hi Randy,

    I am not getting anything printed on console, It is not booting when that SRIO configuration code is included in project folder as a function without calling in main.

    My PC is at _main,it is at the same place always.

    Regards,
    Rakesh
  • Rakesh,

    If your PC is at _main, then it has completed booting. The boot process includes copying all program and initialized data to the correct place and then branching to _cint00. If it ran successfully from _cint00 to _main, then booting is working well.

    You have several suggestions above for steps to take to debug this issue. Whether it is a problem with booting or a problem with the application code, it is a problem to be debugged. Making a clear line between booting and the application code is an important step. You are well on the way.

    Please keep us posted as you continue through the other suggestions in this thread and in the Wiki article.

    Regards,
    RandyP
  • Hi Randy,

    Thanks for replying,
    I am facing the problem of booting when SRIO configuration function as a slave is included in project folder without even calling in main.

    Inclusion in the project is creating that problem.
    By removing that function from the folder ,I am able to boot it.

    Regards,
    Rakesh.
  • Rakesh,

    Compare the memory maps between the two builds, looking at the linker's .map file outputs. These will be in the same folder as the .out file.

    Compare what is loaded through the bootloader to what is loaded through the emulator.

    See how you are building your .hex file, compared with what is in the .map file that is different.

    Regards,
    RandyP
  • Hi Randy,

    I have configured McBSP as UART and added a message to display on the console, every time when function is executed.Even there is an LED which indicates DSP boot status.

    I have created to two separate projects
    a.Project-1: Includes board initialization, uart configuration, [display message to appear on the console(in while(1) loop)].
    b.Project-2: Includes board initialization, uart configuration, [display message to appear on the console,along with some FFT function and magnitude calculation] (in while(1) loop) .

    The procedure followed to create .hex file and the platform used are same for the both.

    I am getting only the display message corresponding to the Project-1 only,when the corresponding .hex file is flashed .
    When I have flashed the .hex file created from Project-2,I am not getting anything displayed on the console.

    I have referred to the link provided by TI(debug boot issues) and Loaded symbols instead of code for the both.
    In both the cases ,My PC is showing the address of main.obj.

    But LED is indicating Booting only in project:1,in project:2 even LED indicates that DSP has not been booted.

    May I know how to debug the issue.

    Regards,
    Rakesh.

  • Rakesh,

    Please see if these similar threads help resolve your issue:

    e2e.ti.com/.../306201
    e2e.ti.com/.../140628
    e2e.ti.com/.../51017
    e2e.ti.com/.../48692
    e2e.ti.com/.../242142
    e2e.ti.com/.../51812

    Also, please refer to the following documentation if you haven't already.
    www.ti.com/.../spruec6g.pdf
    www.ti.com/.../spru266e.pdf

    I hope this helps.