none
After adding the subproject - OS design problem RRS feed

  • Question

  • Hi,

    I create the OS design for the windows compact 7, and can build successfully.

    Then, I check the debug folder (C:\WINCE700\OSDesigns\OSDesign_20130409_1154\OSDesign_20130409_1154\RelDir\CeWin_x86_Debug)

    and find the Nk.nb0.

    And then, I add the subproject into the original one, and Build current BSP and subproject, and find the updated "nk.nb0" file.


    I start the Nk.nb0 by uploader, and start the cerhost.exe.

    Enter the CE environment, but I cannot find the "PLX9052_ce" via the redit.exe file, it is empty.



    Wednesday, April 10, 2013 5:46 AM

All replies

  • The subproject is wince7plx, see picture from dropbox: https://www.dropbox.com/s/q2s24m7y7cbe8hq/project.jpg

    The CE environment, see picture: https://www.dropbox.com/s/3svc8az8rdyppsa/cerhost.jpg

    Wednesday, April 10, 2013 5:46 AM
  • Hi James,

    Just give a try with "Rebuild Current BSP and Subprojects".

    Have you tried this?

    With Regards

    nadini

    Wednesday, April 10, 2013 6:00 AM
  • Yes, i have tried. But it is same result.
    Wednesday, April 10, 2013 6:08 AM
  • The log file is on the dropbox:

    https://www.dropbox.com/s/tngrbdto6ecww5i/build.log

    Wednesday, April 10, 2013 6:10 AM
  • Is your newly added application is building successfully?

    First just build the application then try with "Build Current BSP and Subprojects" or "Rebuild Current BSP and Subprojects"

    Wednesday, April 10, 2013 6:15 AM
  • Yes, see: https://www.dropbox.com/s/f51r0j5qbg5dmq1/build.jpg

    but I still cannot see any thing in the Local Device\HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PCI\Template

    Wednesday, April 10, 2013 6:26 AM
  • ok.

    Any specific reason to use debug mode?

    Just try with Release configuration.To try it with release mode first change the Debug mode to Release mode in configuration Manager.Then give "Rebuild Current BSP and Subprojects".

    In debug mode as all debug prints are enable the size of Nk will be more than in the release.In debug also it should work but not getting what's going wrong..

    The image you will get in the following path,

    C:\WINCE700\OSDesigns\OSDesign_20130409_1154\OSDesign_20130409_1154\RelDir\CeWin_x86_Release\nk.bin

    • Edited by nadini Wednesday, April 10, 2013 6:57 AM Added information
    Wednesday, April 10, 2013 6:55 AM
  • oh, there are some errors when I use released mode

    BUILD: [00:0000000000:ERRORI] Failed to initialize from CECONFIG.H. {log="C:\WINCE700\build.log(61)"}
    BUILD: [00:0000000000:ERRORI] Failed to initialize from CECONFIG.H. {log="C:\WINCE700\build.log(81)"}
    BUILD: [00:0000000000:ERRORI] Failed to initialize from CECONFIG.H. {log="C:\WINCE700\build.log(102)"}
    BLDDEMO: ERROR: Error(s) in makeimg phase. See C:\WINCE700\build.log for details. {log="C:\WINCE700\build.log(555)"}

    The log file: https://www.dropbox.com/s/tngrbdto6ecww5i/build.log

    Wednesday, April 10, 2013 7:03 AM
  • Well James...

    I'd like to share something which I faced with "Subproject" in Windows CE 6.0. I added my driver code as a Subproject in my OSDesign and built the OSDesign (which also builds the Subproject i.e. driver). Now I got the NK.bin and loaded it to my machine. The Windows CE desktop came up but the driver did not load. The registry entries too did not get created either! Doing further investigation, I got to know that the NK.bin did not contain the driver file i.e. the dll. I built the OSDesign again and the same issue came up.

    I'd suggest you to check the contents of your NK.nb0 file. You can open using "File->Open->File" and in the "Type of File" drop-down, select "Windows CE images". If your driver is not there, you might need to add your driver (dll) to your OSDesign using the project.bib and project.reg files.

    Hope this helps...


    Please remember to mark the replies as helpful if they help and mark as Answers if they answer your query.

    Wednesday, April 10, 2013 7:08 AM
  • Try with sysgen or Clean Sysgen.

    First make that your image will boot successfully(WinCE desktop) on your board.

    Then next step we can see about the running of application.

    Wednesday, April 10, 2013 7:28 AM
  • It is strange that I new a new project and also add the existing subproject(wince7plx), and then I use Build and Sysgen.

    It is succeeded in the debug mode. But I cannot find the nk.nb0 file in the debug folder, just find the nk.bin file.

    So, I don't how to use the uploader because there is not nk.nb0 file.

    Wednesday, April 10, 2013 7:40 AM
  • If I use the release mode, it cannot build successfully.

    Wednesday, April 10, 2013 8:06 AM
  • Well James...

    I'd like to share something which I faced with "Subproject" in Windows CE 6.0. I added my driver code as a Subproject in my OSDesign and built the OSDesign (which also builds the Subproject i.e. driver). Now I got the NK.bin and loaded it to my machine. The Windows CE desktop came up but the driver did not load. The registry entries too did not get created either! Doing further investigation, I got to know that the NK.bin did not contain the driver file i.e. the dll. I built the OSDesign again and the same issue came up.

    I'd suggest you to check the contents of your NK.nb0 file. You can open using "File->Open->File" and in the "Type of File" drop-down, select "Windows CE images". If your driver is not there, you might need to add your driver (dll) to your OSDesign using the project.bib and project.reg files.

    Hope this helps...


    Please remember to mark the replies as helpful if they help and mark as Answers if they answer your query.

    To deepak,

    The PLX9052.bib and PLX9052.reg is already in by OS design. (picture: https://www.dropbox.com/s/1kj73mfc13e51dd/driver.jpg)

    Now,I feel confused what can I do to see the redit information in the WinCE

    Wednesday, April 10, 2013 8:22 AM
  • Refer the image,

    http://social.msdn.microsoft.com/Forums/getfile/269744

    I told you to try Sysgen or Clean Sysgen these are First two options in the image.

    If by mistake you have tried  third(Build and Sysgen) or fourth(Rebuild and Clean Sysgen) then that is wrong.We never use these options because they may corrupt the wince installation.

    I suggested you the sysgen because when ever will create a new OS design first build should be Sysgen or Clean Sysgen.

    Wednesday, April 10, 2013 9:13 AM
  • James,

    What I really meant was "building the driver as an independent entity" and adding up the driver(.dll file) to the OSDesign so that when you "Make a Run Time Image", your NK.nb0 will have your driver.

    Have you checked the contents of your NK.nb0 file whether it contains your driver.dll or not??


    Please remember to mark the replies as helpful if they help and mark as Answers if they answer your query.

    Wednesday, April 10, 2013 9:42 AM