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.

Error_1266 AM3359 ICE

Other Parts Discussed in Thread: AM3359, SYSBIOS, SYSBIOSSDK-IND-SITARA

Dear Madame or Sir,

Unfortunately, I try to run the Hello World for the AM3359 ICE development board. I receive the following error message:

M3_wakeupSS: 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 signal on the pins B15, A10, B5 are fine. So, there shouldn’t be any hardware problems. I read in the forum about this problem, but no one provides any solution.

- What do you recommend to do?

- Is there a way to reset the whole board with any memory to the fabrication settings e.g. fabrication status?

Thanks a lot for your support.

Kind regards,

Marco Matulic

  • Marco,

    just connect to the Cortex-A8 core instead of the M3. The M3 is not used in our examples at all.

    Regards,

  • ... I tried that before, but than the following errors occure:

    CortxA8: File Loader: Data verification failed at address 0x80000001 Please verify target memory and memory map.
    CortxA8: Unable to terminate memory download: NULL buffer pointer at 0x3a9f
    CortxA8: GEL: File: C:\Users\Marco Matulic\workspace_v6_0\hello_ICE_AM3359_CortexA\Debug\hello_ICE_AM3359_CortexA.out: a data verification error occurred, file load failed.

    Interesting is that at the beginning the debug worked, also when I have chosen both cores. But I recieved many errors because of unknown files (I set than the absolute paths).

    I installed any programm with the default path C:\ti


    Thanks

    Marco

  • Yes I read the user guide and did it step by step.

    I loaded the following gel file:

    C:\ti\ccsv6\ccs_base\emulation\boards\ice_am3359\gel\TMDXICE3359.gel

    The initialization seems to work:

    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 ******************

    But when I try to run the programm... I get this:

    I also tried to shut down the avast antivirus.


    Thanks and Gruesse aus Bern ;)

    Marco

  • Marco,

    Are you using ICEv1 or ICEv2? The above mentioned GEL file would only work for ICEv1.

    Also, please check the "Notes" section of http://processors.wiki.ti.com/index.php/AM335x_SYSBIOS_Industrial_SDK_Getting_Started_Guide#Launching_and_Debugging_application_in_CCS

    Regards,
    Vinesh

  • ... yes I use ICEv2 and the demo programm is stil on.

    Where can I find the gel file for v2?

    Where is the demo saved? NOR or Flash?


    Thanks,

    Marco

  • Marco,

    You have to use Industrial SDK for example applications. Please find more details here - http://www.ti.com/tool/sysbiossdk-ind-sitara

    Regards,
    Vinesh

  • .. I use that and the hello world example. But with the four provided links (import, build, emulate and debug) it doesn't function. That's why I have to do it manually.


    Thanks,

    Marco

  • Marco,

    Please use the GEL file - sdk/tools/gel/ICE/TMDXICE3359_v2_1A.gel for ICEv2

    Regards,
    Vinesh

  • ... unfortunataly that didn't help. I receive still the same error message.

    In the SDK user guide is the following hint:

    f there is a valid application in SPI or NOR flash(in their corresponding boot modes), on "System Reset" the application loads right away. This might cause issues on the application you load via JTAG. To avoid this, put a hardware breakpoint at 0x402f_0400(in case of SPI boot mode) or 0x08000000(in case of NOR boot mode) and then do a "System Reset". You can continue with Step 4 after this


    So my board is new and the demo is still running, but I was not able to find out, where the demo program is saved. NOR or SPI Flash!. 2nd I can not set the required breakpoints. Can you help me?


    Thanks

    Marco

  • Marco,

    The demo application is stored in SPI flash.

    Please go through the Getting Started Guide/User Guide. You can find more info on the boot modes here - http://processors.wiki.ti.com/index.php/AM335x_SYSBIOS_Industrial_SDK_Getting_Started_Guide#AM335x_ICE_V2_.C2.A0

    Regards,
    Vinesh

  • ... I read it very carefully. I'm still wondering, why the examples and the four links to get it run quickly do not work. But anyway, I'm now on the A8 core and can debug the hello world. But after the second step I receive the following error:

    Can't find a source file at "/db/ztree/library/trees/xdctargets/xdctargets-h20x/src/gnu/targets/arm/rtsv7A/syscalls.c"

    Unfortunatly, I can't find syscalls.c ...

    Thanks,

    Marco

  • File search on my machine:

    c:\TI\xdctools_3_25_04_88\packages\gnu\targets\arm\rtsv7A\syscalls.c

    Pre-compiled BIOS libs do contain the full path of build machine. open the file manually and you should have basic debug capabilitites. Anyway that should not be needed for 'Hello world' :-)

    Regards,

  • ... why does CCS ask, if it is  not needed?

    I just recognized that I installed a newer version of the xdctools, might that be a problem?

    As you can see in the image, the path you found does not exist on my machine. I installed everything per default, so I din't change any path.


    Thanks

    Marco

  • Marco,

    I just took an example. I have many versions of BIOS and XDC on my machine.

    However it seems you are using newer ones than what is recommended for 1.1.0.4 IA-SDK (see release notes). That can cause issues.

    regards,

  • ...ok, it was really a version problem!

    I use now the following versions:

    5.5.077 CCS

    6.35.04.50 SYSBIOS

    3.25.03.72 XDCtools

    2.22.3.20 NDK

    1.3.1.08 UIA

    Is there are configuration that works with the newest CCS?

    Thanks for all the tips!

    Marco