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 07 Feb 2005 10:00 AM by  robinb@logicpd.com
How to use the Code Flash
 8 Replies
Sort:
You are not authorized to post a reply.
Author Messages
augiedog@comcast.net
New Member
New Member
Posts:


--
02 Feb 2005 09:16 AM
    I can't find any info on burning the code flash. How is this done? I saw a note in another group about the Flash Burner in CodeWarrior not supported by LOGICPD, and the UPDATER utility seems to just want to do the dBUG update which is at a different address. (I tried using the CodeWarrior tool and had all kinds of problems.) How do you do this at LOGICPD?

    Also I saw an indication that there was a version of EVB that didn't handle the code flash addressing properly and needed a hardware change. How can I tell if my board is one of those? The little sticker says REV203.
    Anonymous
    Posts:


    --
    02 Feb 2005 03:48 PM
    augie,

    The easiest way to burn programs into flash memory is by using LoLo's 'burn' command. Please reference the LogicLoader User's manual for more information in this regard.

    You're going to want to contact Freescale regarding the possible issue with your board. If you have a Rev 203 you have one of the pre-release beta systems that Freescale shipped prior to production. You can reference this FAQ to see if your board might have the same issue.

    http://www.logicpd.com/su...q/faq.php?faq_id=107

    Please post back here if you have any more questions or comments regarding this.

    Thank you,
    augiedog@comcast.net
    New Member
    New Member
    Posts:


    --
    03 Feb 2005 08:24 AM
    Where can I find the LogicLoader user's guide? I searched on your site, but when it matched a file, the file seemed to be restricted to me even though I was logged in.

    The command for Burn in the menu seems to use a virtual name for the flash, (i.e. /dev/flash0). Will that manual tell me what I use to direct this to the code flash? Or does it simply use the S-record to determine the target flash base address?

    Thanks
    augiedog@comcast.net
    New Member
    New Member
    Posts:


    --
    03 Feb 2005 09:39 AM
    I have Lolo v 1.5.4 and the CodeWarrior tools v5.1. The resulting elf and S19 files from my app do not seem to work with Lolo. Here is the output from TeraTerm:

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

    (c) Copyright 2002-2004, Logic Product Development, Inc.
    All Rights Reserved.
    Version 1.5.4-MCF5485_10 0001
    *****************************************************************

    Type 'help all' for a list of commands.

    losh> load srec
    loading from stdin:
    load_srec: bad count 81 at record 1
    ignoring rest of file...done
    losh> load elf
    loading from stdin:
    0x00029d98 7f 45 4c 46 fe d8 34 78 46 34 20 28 09 a0 fe fe .ELF..4xF4 (....
    0x00029da8 30 30 d0 80 fe 30 40 40 3c 20 c0 20 c0 24 5d d0 00...0@@< . .$].
    0x00029db8 28 9e 90 fe fe 5c fe 5c fe 5c fe 5c fe 5c fe 5c (....\.\.\.\.\.\
    0x00029dc8 fe 5c fe 5c .\.\
    ELF file must be: 68K, and elf-current:
    load failed

    elf file type : 0x3030
    machine type: d080 version: -30392256
    prog start addr : 0x3c20c020
    num prog headers: 65116
    num sect headers: 65116
    offset : 0x65666175 disk length: 0x00000000 mem len: 0x00000034
    phyaddr: 0x63726565 vaddr : 0x6c742073 dl addr: 0x00000000
    elf load failed.
    ignoring rest of file...done
    losh>

    Do I need a patch or something?
    Thanks
    augiedog@comcast.net
    New Member
    New Member
    Posts:


    --
    03 Feb 2005 09:54 AM
    That first attempt using the ELF format, looked like I needed to send the file in Binary mode. Sorry for the post. It failed also, but because the image is apparently too large to fit in the allotted space.
    Anonymous
    Posts:


    --
    03 Feb 2005 11:47 AM
    augie,

    Have you been able to build and run the Zoom Sample Application on your development kit? This would be a great place to start.

    http://www.logicpd.com/do...sample_app_1_6_2.zip

    Also there is an FAQ that has a bit of information regarding ELF header information. I'm not sure if Codewarrior does the same thing when generating an ELF file but hopefully it will be of use to you.

    http://www.logicpd.com/su...aq/faq.php?faq_id=29


    Regards,
    augiedog@comcast.net
    New Member
    New Member
    Posts:


    --
    04 Feb 2005 07:42 AM
    Aaron;

    I downloaded and installed all the tools, GNU dev., Sample App, Cygwin, etc. The Make doesn't complete because some function in a DLL seems to be missing. I get an error from AS.EXE that says "The Procedure entry point _fcntl64 could not be located n the DLL cygwin1.dll."

    So I can't build an ELF file to try.

    However, I looked at the ELF file coming out of CodeWarrior and there does seem to be a header right away. At least it says .ELF and some binay values afterwards.

    Is there anyway you could send me the ELF file produced from the smple app, just to see if I can get it successfully loaded? There is still the possibility that my board version has the flash addressing problem. I had someone at your shop send me the fix, but it doesn't look like it applies to my layout. Although I have a REV 20x board and the prob seemed to have existed in the REV 30x boards.

    I'm starting to lose the rest of my hair at this point.

    Thanks,
    -Mike

    maugustis@aol.com
    Anonymous
    Posts:


    --
    04 Feb 2005 02:52 PM
    Mike,

    Please reference this thread for an idea of what to do and what's going on. While the explanation contained in my final post has to do with the Rev 30x the information is still relevant to a 20x.

    http://www.logicpd.com/su.../viewtopic.php?t=381

    In fact the issue in question was a bigger problem with the Rev 20x boards than with the Rev 30x boards.

    Regards,
    robinb@logicpd.com
    New Member
    New Member
    Posts:


    --
    07 Feb 2005 10:00 AM
    I have also seen problems with Cygwin after updating from the Cygwin website.
    You can un-install Cygwin by deleting the Cygnus Solution registry keys and your 'cygwin' directory.
    Then install the version of Cygwin available on the LogicPD website.
    After installing Cygwin, you will also need to install the GNU tools (also available on LogicPD website).
    You are not authorized to post a reply.