none
wince6_imx35_build_error RRS feed

  • Question

  • Hi all,

    I am trying to build one new bsp for imx35 board.

    While building I am getting one error.

    error log details are:-

    BUILD: [00:0000002727:PROGC ] Building LINK Pass in E:\WINCE600\PLATFORM\nok\SRC\DRIVERS\BLOCK\NANDFMD\ directory.
    BUILD: [01:0000002738:PROGC ] Linking E:\WINCE600\platform\nok\target\ARMV4I\retail\flashpdd_nand.dll
    BUILD: [01:0000002758:ERRORE] fmdwrapperpdd_common_fsl_v2_pdk1_5.lib(FmdWrapperPdd.obj) : error LNK2019: unresolved external symbol BSPNAND_GetNANDImageCfg referenced in function "public: long __cdecl FmdWrapperPdd::UpdateSplashScreen(unsigned char *,unsigned long)" (?UpdateSplashScreen@FmdWrapperPdd@@QAAJPAEK@Z)
    BUILD: [01:0000002759:ERRORE] E:\WINCE600\platform\nok\target\ARMV4I\retail\flashpdd_nand.dll : fatal error LNK1120: 1 unresolved externals
    BUILD: [00:0000002765:PROGC ]                        Files  Warnings  Errors
    BUILD: [00:0000002766:PROGC ] Midl                       0         0       0
    BUILD: [00:0000002767:PROGC ] Message                    0         0       0
    BUILD: [00:0000002768:PROGC ] Precomp Header             0         0       0
    BUILD: [00:0000002769:PROGC ] Resource                   0         0       0
    BUILD: [00:0000002770:PROGC ] MASM                       0         0       0
    BUILD: [00:0000002771:PROGC ] SHASM                      0         0       0
    BUILD: [00:0000002772:PROGC ] ARMASM                     3         0       0
    BUILD: [00:0000002773:PROGC ] MIPSASM                    0         0       0
    BUILD: [00:0000002774:PROGC ] C++                       28         0       0
    BUILD: [00:0000002775:PROGC ] C                         61         0       0
    BUILD: [00:0000002776:PROGC ] Static Libraries          23         0       0
    BUILD: [00:0000002777:PROGC ] Exe's                      0         0       0
    BUILD: [00:0000002778:PROGC ] Dll's                     26         0       2
    BUILD: [00:0000002779:PROGC ] Preprocess deffile         1         0       0
    BUILD: [00:0000002780:PROGC ] Resx                       0         0       0
    BUILD: [00:0000002781:PROGC ] CSharp Compile             0         0       0
    BUILD: [00:0000002782:PROGC ] Other                      0         3       1
    BUILD: [00:0000002783:PROGC ]
    BUILD: [00:0000002784:PROGC ] Total                    142         3       3
    BUILD: [00:0000002785:PROGC ]
    BUILD: [00:0000002786:PROGC ] 3 Warnings,  3 Errors
    BUILD: [00:0000002787:PROGC ] GetSystemTimes (seconds): Idle: 69    Kernel: 92    User: 27   
    BUILD: [00:0000002788:PROGC ] Elapsed  time  (seconds): 59  

    *****************************************************************************

    I found "BSPNAND_GetNANDImageCfg" function in E:\WINCE600\PLATFORM\COMMON\SRC\SOC\COMMON_FSL_V2_PDK1_5\NAND\FMDWRAPPERPDD\BIG_SECTOR_INTERLEAVE\FmdWrapperPdd.cpp file.But the function is not defined.I saw in msdn that   BSPNAND_GetNANDImageCfg is not defined thats why this error.Please let me know how I can resolve it.

    Thanks

    rohith
    Tuesday, May 21, 2013 11:13 AM

All replies

  • Check whether "E:\WINCE600\PLATFORM\COMMON\SRC\SOC\COMMON_FSL_V2_PDK1_5" folder is build and the necessary library are created.

    Check the dir file in the "E:\WINCE600\PLATFORM\COMMON\SRC\SOC" directory to check what are the folder is included in the build if you found "COMMON_FSL_V2_PDK1_5" already included, try with Sysgen (or rebuild current BSP and subprojects)


    Jeslin Paul

    Tuesday, May 21, 2013 11:49 AM

  • Hi jeslin,

    E:\WINCE600\PLATFORM\COMMON\SRC\SOC\COMMON_FSL_V2_PDK1_5" folder is build and the necessary library are created.

    in the "E:\WINCE600\PLATFORM\COMMON\SRC\SOC" dir file COMMON_FSL_V2_PDK1_5

    included

    I did one sysgen but still getting the same error.

    thanks

    rohith
    Tuesday, May 21, 2013 2:09 PM
  • Can you share the source file of "E:\WINCE600\PLATFORM\nok\SRC\DRIVERS\BLOCK\NANDFMD"

    Did you verify that you are linking the library from correct path and with correct library name?


    Jeslin Paul

    Tuesday, May 21, 2013 2:46 PM
  • Hi Jeslin,

    the source file of "E:\WINCE600\PLATFORM\nok\SRC\DRIVERS\BLOCK\NANDFMD" is below

    !IF "$(BSP_NAND_FMD)" == ""

    SKIPBUILD=1
    !ENDIF    


    TARGETNAME=flashpdd_nand
    TARGETTYPE=DYNLINK
    RELEASETYPE=PLATFORM
    DEFFILE=$(_PLATFORMROOT)\common\src\soc\$(_COMMONSOCDIR)\NAND\FMDWRAPPERPDD\flashpdd.def


    SOURCELIBS= \
        $(_COMMONOAKROOT)\lib\$(_CPUINDPATH)\fmdhooklib.lib \
        $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\nandfmd_lib.lib \
        $(_PLATCOMMONLIB)\$(_CPUINDPATH)\nand_$(_SOCDIR).lib \
        $(_PLATCOMMONLIB)\$(_CPUINDPATH)\nand_$(_COMMONSOCDIR).lib \
        $(_PLATCOMMONLIB)\$(_CPUINDPATH)\fmdwrapperpdd_$(_COMMONSOCDIR).lib

    TARGETLIBS= \
        $(_SYSGENSDKROOT)\lib\$(_CPUINDPATH)\coredll.lib \
        $(_SYSGENOAKROOT)\lib\$(_CPUINDPATH)\ceddk.lib \
        $(_TARGETPLATROOT)\lib\$(_CPUDEPPATH)\cspddk.lib

    Please help me to solve this.

    Thanks

    rohith

         
    Wednesday, May 22, 2013 4:42 AM
  • The function "BSPNAND_GetNANDImageCfg" should defined in "WINCE600\PLATFORM\nok\SRC\COMMON\NANDFMD" in nandbsp.cpp file.  Check your platform Library directory "WINCE600\PLATFORM\nok\lib\ARMV4I\retail" "nandfmd_lib.lib" is there.


    Jeslin Paul

    Wednesday, May 22, 2013 6:15 AM
  • Hi Jeslin,

    nandfmd_lib.lib is present in the WINCE600\PLATFORM\nok\lib\ARMV4I\retail folder.

    BSPNAND_GetNANDImageCfg is defined in common_nandfmd.h in 

    E:\WINCE600\PLATFORM\COMMON\SRC\SOC\COMMON_FSL_V2_PDK1_5\INC folder.

    by

    rohith

    Wednesday, May 22, 2013 11:38 AM
  • Which means you doesn't found the function definition(function body) in the "WINCE600\PLATFORM\nok\SRC\COMMON\NANDFMD" in nandbsp.cpp file?

    Jeslin Paul

    Wednesday, May 22, 2013 12:03 PM
  • Hi Jeslin,

    Thanks for your support.

    I resolved the error by given one proper function definition(function body) .

    But Now I am facing one another error.

    error log is:-

    PROGC ] Building LINK Pass in E:\WINCE600\PLATFORM\nok\SRC\DRIVERS\BACKLIGHT\CTLPNL\ directory.
    BUILD: [01:0000000585:PROGC ] Linking E:\WINCE600\platform\nok\target\ARMV4I\retail\AdvBacklight.dll
    BUILD: [00:0000000618:PROGC ] Building LINK Pass in E:\WINCE600\PLATFORM\nok\SRC\DRIVERS\BACKLIGHT\MC13892\ directory.
    BUILD: [00:0000000631:PROGC ] Building LINK Pass in E:\WINCE600\PLATFORM\nok\SRC\DRIVERS\FAKEBATTDRV\ directory.
    BUILD: [01:0000000641:ERRORE] NMAKE :  U1073: don't know how to make 'E:\WINCE600\platform\nok\lib\ARMV4I\retail\pmicSdk_mc13892.lib'
    BUILD: [01:0000000643:ERRORE] NMAKE.EXE TargetExeFiles  -i -c BUILDMSG=Stop.  BUILDROOT=E:\WINCE600\PLATFORM\nok LINKONLY=1 NOPASS0=1MAKEDLL=1 failed - rc = 2
    BUILD: [00:0000000644:PROGC ]                        Files  Warnings  Errors
    BUILD: [00:0000000645:PROGC ] Midl                       0         0       0
    BUILD: [00:0000000646:PROGC ] Message                    0         0       0
    BUILD: [00:0000000647:PROGC ] Precomp Header             0         0       0
    BUILD: [00:0000000648:PROGC ] Resource                   0         0       0
    BUILD: [00:0000000649:PROGC ] MASM                       0         0       0
    BUILD: [00:0000000650:PROGC ] SHASM                      0         0       0
    BUILD: [00:0000000651:PROGC ] ARMASM                     0         0       0
    BUILD: [00:0000000652:PROGC ] MIPSASM                    0         0       0
    BUILD: [00:0000000653:PROGC ] C++                        2         0       0
    BUILD: [00:0000000654:PROGC ] C                          0         0       0
    BUILD: [00:0000000655:PROGC ] Static Libraries           0         0       0
    BUILD: [00:0000000656:PROGC ] Exe's                      0         0       0
    BUILD: [00:0000000657:PROGC ] Dll's                      6         0       0
    BUILD: [00:0000000658:PROGC ] Preprocess deffile         0         0       0
    BUILD: [00:0000000659:PROGC ] Resx                       0         0       0
    BUILD: [00:0000000660:PROGC ] CSharp Compile             0         0       0
    BUILD: [00:0000000661:PROGC ] Other                      0         3       2
    BUILD: [00:0000000662:PROGC ] 
    BUILD: [00:0000000663:PROGC ] Total                      8         3       2
    BUILD: [00:0000000664:PROGC ] 
    BUILD: [00:0000000665:PROGC ] 3 Warnings,  2 Errors

    Please help me to solve this

    • Edited by Rohith_88 Thursday, May 23, 2013 4:59 AM
    Wednesday, May 22, 2013 1:48 PM
  • I think your BSP source have some issues, For current issue Check your "BSP_PMIC_MC13892" variable is set in your BSP. "pmicSdk_mc13892.lib" this library is not builded. the source for this PMIC will be available under "WINCE600\PLATFORM\nok \SRC\DRIVERS\PMIC\MC13892\SDK". Check your catalog item whether all necessary drivers and components are selected properly.

    Jeslin Paul

    Thursday, May 23, 2013 5:56 AM
  • Hi jeslin,

    I saw BSP_PMIC_MC13892 in platform.bib file.In catalog items device drivers/dvfc/MC13892 is not selected.
    in platform.reg only mentioned about pmicpdk_mc13892.dll
    the source for this PMIC is not available under "WINCE600\PLATFORM\nok \SRC\DRIVERS\PMIC\MC13892\SDK folder..

    So what I can do for solve this issue.

    Thanks

    rohith

    • Edited by Rohith_88 Thursday, May 23, 2013 7:09 AM
    Thursday, May 23, 2013 6:50 AM
  • Hi Rohith,

    Just for my information : You need the PMIC driver with your BSP?

    The source files are missing so the compiler is not able to create the pmicpdk_mc13892.dll.

    If you don't need the PMIC driver then you can remove  it from the BSP.

    • To remove the driver check whether BSP_PMIC_MC13892 is added in environment variable.

    If you need the driver then add the source files which will create the pmicpdk_mc13892.dll.

    Hope this will help.

    Correct me if I am wrong.

    With Regards

    nadini

    Thursday, May 23, 2013 8:54 AM
  • In Addition to nadini reply,

    1. If you need PMIC and PMIC releated drivers (FAKEBATTDRV in this case) you need to enable the PMIC in catalog item and rebuild the BSP again.

    2. If you don't want PMIC and its remove the PMIC (already removed in your case) and remove all the PMIC dependent driver (FAKEBATTDRV in this case) and rebuild the BSP again.

    Still if you face more issues, its better to contact the BSP provider (who develop the BSP for you) for more assistance.


    Jeslin Paul

    Thursday, May 23, 2013 10:01 AM