Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 03 Nov 2004 07:17 PM by  mikea@logicpd.com
CPLD update, how to?
 7 Replies
Sort:
You are not authorized to post a reply.
Author Messages
mpinton
New Member
New Member
Posts:


--
01 Nov 2004 02:17 PM
    Hi,
    I read PCN239 and discovered that I need to update to a newer CPLD code base. Our boards are running v3.4 (I guess, booting the board says 0x34). The only version for download is file 1000479.upd. If I place the file on my compact flash and mount the compact flash, how do I update the CPLD?

    I use the "update command"? I tried update /cf/1000479.UPD but that didn't do anything.

    Thanks,
    /michel
    Anonymous
    Posts:


    --
    01 Nov 2004 06:33 PM
    Michel,

    The easiest way to load the .upd file is to use the 'send file' functionality of TeraTerm. In fact I wouldn't try running the .upd file off of the CF card. To do this follow the following steps using TeraTerm.

    1) Type 'update' at the losh> prompt

    2) Go to File | Send File

    3) Navigate to the directory that you have the file 1000479.upd

    4) Make sure the binary box is checked and click 'Open'

    5) Once Lolo says "update done" reset your kit.

    Let me know if this works for you.
    mpinton
    New Member
    New Member
    Posts:


    --
    02 Nov 2004 07:12 AM
    Hi Aaron,
    OK, tried what you suggested. First, I was trying to do the update at BOLO and it just hangs. So I tried it at LOLO, did as you suggest but it failed (miserably). Here is part of the log:

    update
    send update file:Jam STAPL Player Version 2.3
    Copyright (C) 1997-2000 Altera Corporation

    CRC matched: CRC value = D89C
    NOTE "CREATOR" = "Xilinx iMPACT Software"
    NOTE "DATE" = "2004/09/16"
    NOTE "STAPL_VERSION" = "JESD71"
    NOTE "ALG_VERSION" = "1"
    NOTE "DEVICE" = "UNSPECIFIED"
    NOTE "CHECKSUM" = "UNSPECIFIED"
    NOTE "IDCODE" = "UNSPECIFIED"
    NOTE "USERCODE" = "UNSPECIFIED"
    NOTE "TARGET" = "UNSPECIFIED"
    NOTE "STACK_DEPTH" = "4"
    NOTE "MAX_FREQ" = "1000000"
    ints off...
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|File Execution Failure.
    \Exit code = 16... Exiting ISP failure
    programming...
    -/|\-/|\-/|\-/|\-/|\-/|\-/|\-File Execution Failure.
    /Exit code = 16... Exiting ISP failure
    programming...
    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.

    The last 2 lines above continue until I reboot the board:



    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminated.
    Error(1) on line 528: out of memory.
    Program terminateäCPLD_CE_REG_REVISION: 0x34 (rev: b)
    CPLD_CE_REG_MODE : 0xfe
    default screen (86): 6 16bpp
    Initializing display: width: 240 height: 320 bpp: 16 disp: 6

    *****************************************************************
    LogicLoader

    (c) Copyright 2002-2004, Logic Product Development, Inc.
    All Rights Reserved.
    Version 1.4.0-LLH7a400_10 0025
    *****************************************************************

    Available commands:
    load - download a binary image of type 'elf', 'bin', 'raw' or 'srec'
    burn - burns the already-loaded image into flash device 'device'
    erase - erases 'device' from start_address for length bytes
    jump - jump to a loaded image, or [address]
    exec - disable cache & ints, then jump to a loaded OS, or to [addr]
    update - load and install an update image for this CardEngine
    source - execute a series of losh commands stored in <filename>
    w - write memory [of specified width, w is default] at addr
    x - examine memory with [width][format] at an addr for a [len]
    mem-cmp - compare memory from <a> to <b> for <len>
    mem-fill - fill memory at <addr> for <count> with <value> in sizes of [bhw]
    date - display the number of seconds since boot
    info - print information about something
    set - set a symbolic value, with no args prints symbol table
    unset - remove a symbolic value from the symbol table
    help - print help for a single command or a group of commands
    losh>


    So what's going on! Help!
    Thanks,
    /michel

    PS
    Is it possible to get the JEDEC file and we can use the JTAG port on the app board to reprogram the CPLD?
    mpinton
    New Member
    New Member
    Posts:


    --
    02 Nov 2004 07:37 AM
    Aaron,
    The LOLO I am working with is v1.4.0.
    I have an 7A400-10 board rev C.
    The CPLD version (I think, see below post) is 3.4 (is that what x34 means?).
    /michel
    mpinton
    New Member
    New Member
    Posts:


    --
    02 Nov 2004 09:36 AM
    sorry to have so many postings, but here's the latest. I swapped out the CardEngine I had with another we had. I updated it's BOLO/LOLO (orginally 1.2 something) to v1.4.4 then proceeded with the CPLD update...and it worked!

    So I inserted the original CardEngine, updated BOLO/LOLO to v1.4.4 from v1.4.0, then tried the CPLD update. And it failed again, so all I can think is that there is some hardware issue with that particular CardEngine.

    /michel
    Anonymous
    Posts:


    --
    02 Nov 2004 10:23 AM
    mpinton,

    Please email platformsupport@logicpd.com regarding this issue so we can investigate and resolve this.

    Thank you,
    mpinton
    New Member
    New Member
    Posts:


    --
    03 Nov 2004 07:25 AM
    FYI - It turns out that my problem (thanks Aaron for figuring it out) was due to setting having set my default display in LOLO. If you clear it out (video-set-default none) then the update command for the CPLD works.

    /michel
    mikea@logicpd.com
    New Member
    New Member
    Posts:


    --
    03 Nov 2004 07:17 PM
    Just to make things clear, the CPLD JTAG signals are shared with the video-interface. When the video has been initialized, those signals can not be used as GPIO and as such can't be used by the Logic UPDATE command. Setting a default display will automatically launch the video interface on boot, thus prohibiting CPLD updates.

    Thanks,
    Mike A.
    You are not authorized to post a reply.