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 12 Oct 2004 01:49 PM by  mikee@logicpd.com
Generating a ".rel" file, how?
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages
mpinton
New Member
New Member
Posts:


--
06 Oct 2004 06:36 AM
    Hi,
    I have a number of DLLs that are for installable ISRs. From the WinCE documentation and also per comments in newsgroups in my .bib file I tried

    myiisrtdll.dll $(_FLATRELEASEDIR)\myiisrtdll.dll nk shk

    however, during build I get the following error:

    Error: Module myiisrtdll.dll reqested kernel fixup and couldn't find required
    .rel file
    Fatal error hit, exiting...

    How do I get the .rel file to be built? Are there linker options I need to select?

    Thanks,
    /michel
    Anonymous
    Posts:


    --
    06 Oct 2004 08:46 AM
    Michel,

    This might be a bit simplistic but have you done a clean and a rebuild? We're going to look in to this, I'll post back to this thread when I have something for you.

    Thanks,
    mpinton
    New Member
    New Member
    Posts:


    --
    06 Oct 2004 12:20 PM
    Hi Aaron,
    A little more news. I can get a ".rel" file created but ONLY if I do a command line build (sysgen, build -c)!! Can't get one from the IDE.

    However, during the platform build process, I am still getting the error about the missing .rel file. It's as if during the build process it's not copying the .rel file over to the flatreleasedir.

    Hopefully you'll have more insight.
    Thanks,
    /michel
    mpinton
    New Member
    New Member
    Posts:


    --
    07 Oct 2004 12:07 PM
    Success (somewhat).

    I figured out what I needed to do in the PB IDE to get the .rel file generated, I had to add the following to the list of link options:

    /savebaserelocations:"LOCE_A400_REL_101Dbg\GoStatusIRQ.rel"

    (A similar option added for the release version, just modifying the location.)

    However, I am still getting the missing .rel file problem specified earlier. I now know what that is about too, but am struggling on how to solve it:
    The .rel file is not copied over to the flatreleasedir during the build process.

    I see that the dll and and another file (can remember which) get copied over to flatreleasedir but I can't figure out the source of that action. [color=red:2w11u4p4]How can I get the .rel file automatically copied over?

    Thanks,
    /michel
    mikee@logicpd.com
    New Member
    New Member
    Posts:


    --
    12 Oct 2004 01:49 PM
    michel,

    You are basically finding out how terrible the Windows CE build process is.

    To get around it, I do the following:

    Create a batch file in each driver's directory.
    In all sources files, set RELEASETYPE=LOCAL. This will make built files reside in a subdirectory of the driver (.\obj\debug).
    In the driver's CEC file, build the code during the BSP phase, then call the batch file during the BuildRel phase.
    Have the batch file copy over everything that you need.

    Take a look at the lpd_drivers directory and you'll see what I mean. About using the batch file to copy things correctly. Those are binary drivers, so you are missing the build instruction during the BSP phase, but you should be able to figure it out.

    --mikee
    You are not authorized to post a reply.