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.

Problems Running and Debugging a Sys/Bios Application for ICE V2 in CCS

Other Parts Discussed in Thread: TMDSICE3359, AM3359, SYSBIOS

Hi there,

I have a TMDSICE3359 EVM and I am trying to compile and run some Sys/Bios applications for this board.

I am using CCS  Version: 6.0.1.00040 and Sys/Bios 6.41.0.26.

As conncetion, I am using XDS100v2 USB Debug Probe. I tested the connection and it seems to work.

Compiler is TI v5.1.9, and XDCtools version is 3.30.5.60_core.

Target is ICE_AM3359.

I tried to compile and run "hello_ICE_AM3359_CortexA".

The compile run went with no issues, but when it came to loading the code, I received an error.

Below is the log file:

CortxA8: Output: **** AM3359_ICE Initialization is in progress ..........
CortxA8: Output: **** AM335x ALL PLL Config for OPP == OPP100 is in progress .........
CortxA8: Output: Input Clock Read from SYSBOOT[15:14]: 24MHz
CortxA8: Output: **** Going to Bypass...
CortxA8: Output: **** Bypassed, changing values...
CortxA8: Output: **** Locking ARM PLL
CortxA8: Output: **** Core Bypassed
CortxA8: Output: **** Now locking Core...
CortxA8: Output: **** Core locked
CortxA8: Output: **** DDR DPLL Bypassed
CortxA8: Output: **** DDR DPLL Locked
CortxA8: Output: **** PER DPLL Bypassed
CortxA8: Output: **** PER DPLL Locked
CortxA8: Output: **** DISP PLL Config is in progress ..........
CortxA8: Output: **** DISP PLL Config is DONE ..........
CortxA8: Output: **** AM335x ALL ADPLL Config for OPP == OPP100 is Done .........
CortxA8: Output: **** AM335x DDR2 EMIF and PHY configuration is in progress...
CortxA8: Output: EMIF PRCM is in progress .......
CortxA8: Output: EMIF PRCM Done
CortxA8: Output: DDR PHY Configuration in progress
CortxA8: Output: Waiting for VTP Ready .......
CortxA8: Output: VTP is Ready!
CortxA8: Output: DDR PHY CMD0 Register configuration is in progress .......
CortxA8: Output: DDR PHY CMD1 Register configuration is in progress .......
CortxA8: Output: DDR PHY CMD2 Register configuration is in progress .......
CortxA8: Output: DDR PHY DATA0 Register configuration is in progress .......
CortxA8: Output: DDR PHY DATA1 Register configuration is in progress .......
CortxA8: Output: Setting IO control registers.......
CortxA8: Output: EMIF Timing register configuration is in progress .......
CortxA8: Output: EMIF Timing register configuration is done .......
CortxA8: Output: PHY is READY!!
CortxA8: Output: DDR PHY Configuration done
CortxA8: Output: **** AM3359_ICE Initialization is Done ******************


CortxA8: File Loader: Data verification failed at address 0x80000000 Please verify target memory and memory map.
CortxA8: GEL: File: C:\Users\usd28415\workspace_v6_0\hello_ICE_AM3359_CortexA\Debug\hello_ICE_AM3359_CortexA.out: a data verification error occurred, file load failed.

What am I doing wrong here?

Are there any other parameters that need to be set? Any jumpers on the board?

Another question I have, is regarding the Sys/Bios SDK. What is the difference using the SDK to what I have tried to do above?

I installed the SDK and tried to compile some of the example files, however they won't even compile because there are some links missing to the include files.

For example, when compiling "uartecho", I get:

"../uart_echo.c", line 14: fatal error #1965: cannot open source file "soc_AM335x.h"
1 catastrophic error detected in the compilation of "../uart_echo.c".

I tried to add the missing links to the include files by hand, but that didn't work either.

It also does not explain why these examples aren't linked properly right out of the box.

Some help appreciated,

Arne

  • Hello,

    Where did you get the application "hello_ICE_AM3359_CortexA" from?

    The build errors could be because you checked "Copy projects into workspace" while importing. The examples in Industrial SDK use a environment variable IA_SDK_HOME to set all relative paths.

    Regards,
    Vinesh
  • Hi Vinesh,

    I used the TI Resource Explorer.

    Packages: Sys/Bios

    Devices: ARM > AM33x- Cortex A8 > ICE_AM3359 > Cortex A [ARM] > TI Target Examples > Generic Examples > Hello Example

    I didn't check "Copy projects into workspace". All files are still in  C:\ti\am335x_sysbios_ind_sdk_1.1.0.5\sdk\examples\

    Is the environment variable IA_SDK_HOME set in Windows? And if so, which value should it have?

    Regards,

    Arne

  • Hello Arne,

    IA_SDK_HOME is set as an environment variable during SDK installation. It should be set to C:\ti\am335x_sysbios_ind_sdk_1.1.0.5\sdk (in your case)

    Regards,
    Vinesh
  • Hi Vinesh,

    I could confirm that the variable IA_SDK_HOME is set to "C:\ti\am335x_sysbios_ind_sdk_1.1.0.5\sdk"

    So this does not explain the issue with importing the examples.

    Regards,

    Arne

  • Arne,
    the 'Hello World' example is not part of he IA-SDK at all. So it is also not tested on ICEv2.
    It is a generic Sys/Bios example that has only BIOS dependencies.Regards,
  • Thanks Frank,
    This will narrow it down to the question why the SDK examples don' run. Meaning, why the include files cannot be found by the compiler.
    I would think that all dependencies are set with respect to the environmental variable IA_SDK_HOME.
    Since this variable is present shouldn't the include files be found?
    When I search for them using Windows, they all seem to be there.
    Regards,
    Arne
  • Arne,

    In case of ICEv2, the issue you came up while executing the GEL script could be because you are using the wrong GEL file. Please use this - \sdk\tools\gel\ICE\TMDXICE3359_v2_1A.gel

    On the build issues, can you post the CCS console logs?

    Regards,
    Vinesh
  • Hi Vinesh,

    How do I get to the linked GEL file?

    The Wiki says to go  'Tools->GEL Files', but there is no "Tools" menu in CCS 6.

    Regards,

    Arne

  • I wouldn't agree to that. CCS6 does have a "Tools" menu, and the GEL Files options comes up once you have launched the target config and selected A8.

    Regards,
    Vinesh
  • Hi Vinesh,

    I finally found the "Tools" menu: I had to switch from the "Edit" to the "Debug" perspective.

    However, there is no option "Gel File" under the "Tools" menu available.

    Available options are:

    Pin Connect, Port Connect, Save Memory, Load Memory, Fill Memory, RTOS Object View, RTOS Analyzer, System Analyzer, Hardware Trace Analyzer, Graph, Image Analyzer, Profile, XDAIS Tools, RTSC Tools.

    When I open up my Target Configuration, I have menu items:

    General Setup, Advanced Setup, Save Configuration , Test Connection, Alternate Communication.

    There are two additional taps: Advanced and Source.

    I have not seen any option to select "A8" here.

    I would send you a screen shot, but I can't make attachments to this posting.

    Regards,

    Arne