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.

AM335x Starter Kit

Other Parts Discussed in Thread: AM3358

I am somewhat new to programming so I could really use some help with the following problem.

I purchased a AM335x Starter Kit and I am having difficulty connecting to the target and debugging sample code provided in the StarterWare package because I would like to use the device without an OS.

I have downloaded and installed Code Composer Studio 6.0  (CCS6).

I have downloaded and installed the StarterWare package AM335X_StarterWare_02_00_00_07.

In CCS6, I have created a new target definition using the following:

1) Basic: Texas Instruments XDS100v2 USB Emulator

2) Basic: Board: SK_AM3358

3) Advanced: In the "CortexA8" connection added the gel file:

ti\AM335X_StarterWare_02_00_00_0\/tools\gel\AM335x_SK_1.1.gel

I powered up the starter kit without an SD card and attached to the computer using the USB cable.

In code composer I loaded one of the examples: rasterDisplay.

After importing the project, I seemed to be able to build the project with no problem.

However, when I tried to debug the project, I get the following message:

M3_wakeupSS_0: Error connecting to the target: (Error -1266 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 5.1.450.0)

What am I doing wrong?

  • Moving this to the CCS forum.

  • Ben Dumas said:
    However, when I tried to debug the project, I get the following message:

    M3_wakeupSS_0: Error connecting to the target: (Error -1266 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 5.1.450.0)

    The AM3358 has a Cortex-A8 core and a Cortex-M3 core, where the Cortex-M3 core has to be released from reset by the Cortex-A8.

    StarterWare is designed to run on the Cortex-A8, but from the error message CCS is trying to load the program to the Cortex-M3 core which fails.

    When launching the debug session did you get the following dialogue and leave the M3_wakeupSS selected a CPU to load the program on?

    For StarterWare you only want to load the program onto the Cortex A8.

  • Chester, Thanks for your reply. I did not see this dialog when I tried to debug. Where in CCS6 can I see this dialog? Ben
  • Ben Dumas said:
    I did not see this dialog when I tried to debug. Where in CCS6 can I see this dialog?

    That dialog only appears the first time you debug a project when the CPU(s) to load the project on haven't been specified. To be honest, after starting the initial debug I haven't found out how to get that exact dialog displayed again.

    The other thing to check is to use Run -> Debug Configurations and display the Main tab for the project. E.g.:

    For a StarterWare project only the CortexA8 should be ticked.

  • Chester,

    Thanks very much for your answer.

    However, after adjusting the Debug Configuration to only select the CortexA8 core, I still could not connect to the target.

    I deleted the Target Configuration, and then rebuilt a new one.

    This did not help either.

    Any other suggestions?

    Ben

  • Ben Dumas said:
    However, after adjusting the Debug Configuration to only select the CortexA8 core, I still could not connect to the target.

    At the moment I can't think of any other debug configuration option which could cause the debugger to try and access the CortexM3 core. My only other suggestion for now is to enable http://processors.wiki.ti.com/index.php/Troubleshooting_CCSv6#Debug_Server_Logging and post the log after a failed attempt.

    I will try and repeat the problem with CCS v6 [but won't have access to the AM3358 StarterKit for a few days]

  • Chester,

    I working on getting that log file for you.  Slow internet connection makes it difficult.

    However, after reading through the forums, I think that I have narrowed down the problem.

    I believe that even though I do not have an SD card installed into the AM335X Starter Kit, that upon power up it is trying to boot off of the SD card.

    Doesn't the Starterware .gel file fix this issue?

    Ben

  • Ben Dumas said:
    I working on getting that log file for you.  Slow internet connection makes it difficult.

    As an alternative can you post the output from the CCS console when the debug fails?

    [which may give a clue about at what point the failure occurs]

    Ben Dumas said:
    I believe that even though I do not have an SD card installed into the AM335X Starter Kit, that upon power up it is trying to boot off of the SD card.

    Doesn't the Starterware .gel file fix this issue?

    At reset the ROM boot loader in the AM335x will try booting from different sources, of which one possible boot source is the SD card. The StarterWare .gel file configures the hardware, such as the clock and DDR memory interface, to allow CCS to download a program.

  • Chester,

    Thanks for all your help.

    I was finally able to connect and debug the AM335X Starter Kit using one of the projects provided with the Starterware package.

    To connect I had to do the following:

    1) Delete and re-install the StarterWare package.  This in of it self did not fix the problem, but I think it was necessary.

    2) The example project from StarterWare that I was trying to run was rasterDisplay.  Apparently, that particular example does not use the M3 core.  Therefore, in the Target Configuration, I had to "bypass" the M3 processor.

    3) As you stated, in the Debug Configuration, only the A8 processor should be checked.

    4) StarterWare has two different .gel files for the AM335x Starterkit: AM335x_SK_1.1 and AM335x_SK_1.2.  I had tried both of the .gel files in previous attempts to connect, but after I did the above changes, I was able to connect and debug using the second file: AM335x_SK_1.2.

    These steps enabled me to connect and debug the project rasterDisplay.  When I tried a different project, however, I was not able to connect.  I appears to me that each of the various project examples in StarterWare may need to have their associated Target Configuration adjusted.  It seems very trial and error to me.

    But, at least I know that I can connect and finally do some programming.

    Again, Chester thanks for your help.

    Ben