none
[SOLVED] How to confirm and test the functionality of PRU in WINCE7? RRS feed

All replies

  • I have created a dll based project under SRC\Driver\PRU\ce_pru_driver and under this I have

    .def

    sources

    makefile

    .vcproj

    and Obj folder

    and in .def file I have the following functionality to give access to the required functions as:

    LIBRARY prudrvr
    EXPORTS 
            PRU_Init
            PRU_Deinit
            PRU_Open
            PRU_Close
            PRU_Read
            PRU_Write
            PRU_Seek
            PRU_PowerUp
            PRU_PowerDown
            PRU_IOControl
    

    and in the sources file I am including the pru based library that is generated from CSP\COMMON_TI_VI\AM33x\PRU folder as

    !if 0
    Copyright (c) MPC Data Limited 2011.  All rights reserved.
    !endif
    
    !IF "$(BSP_PRU)" != "1"
    SKIPBUILD=1
    !ENDIF
    
    TARGETNAME=prudrvr
    RELEASETYPE=PLATFORM
    TARGETTYPE=DYNLINK
    SYNCHRONIZE_DRAIN=1
    CDEFINES=$(CDEFINES) -D__GNUC__
    DEFFILE=prudrvr.def
    DLLENTRY=DllEntry
    
    SOURCELIBS= \
        $(_PLATCOMMONLIB)\$(_CPUINDPATH)\pru_ce_driver.lib \
    	$(_PLATCOMMONLIB)\$(_CPUINDPATH)\pru_hal_uart.lib \
    	$(_PLATCOMMONLIB)\$(_CPUINDPATH)\pru_hal_common.lib \
    
    TARGETLIBS=\
        $(SG_OUTPUT_ROOT)\sdk\lib\$(_CPUINDPATH)\coredll.lib \
        $(_PLATLIB)\$(_CPUDEPPATH)\ceddk.lib \
        
    
    SOURCES=
    
    

    I have seen that the library is existing in the platcommonlib folders but when I compile the code i got the compilation error as: 

    BUILD: [00:0000000635:PROGC ] Building EXPLIB Pass in C:\WINCE700\platform\AM335xPhytec\SRC\DRIVERS\TOUCH\STMPE811\ directory.
    BUILD: [00:0000000644:PROGC ] Building EXPLIB Pass in C:\WINCE700\platform\AM335xPhytec\SRC\DRIVERS\TOUCH\EP0700\ directory.
    BUILD: [00:0000000646:WARNN ] Warning(s) in directory "C:\WINCE700\platform\AM335xPhytec\SRC\DRIVERS\PRU\ce_pru_driver\".
    BUILD: [00:0000000647:WARNN ] C:\WINCE700\platform\AM335xPhytec\SRC\DRIVERS\PRU\ce_pru_driver\: Missing source file: C:\WINCE700\OSDesigns\KT\KT\Wince700\AM335xPhytec_ARMV7_Retail\cesysgen\platcomm\AM335xPhytec\lib\ARMV7\retail\pru_ce_driver.lib.
    BUILD: [00:0000000648:WARNN ] C:\WINCE700\platform\AM335xPhytec\SRC\DRIVERS\PRU\ce_pru_driver\: Missing source file: C:\WINCE700\OSDesigns\KT\KT\Wince700\AM335xPhytec_ARMV7_Retail\cesysgen\platcomm\AM335xPhytec\lib\ARMV7\retail\pru_hal_uart.lib.
    BUILD: [00:0000000649:WARNN ] C:\WINCE700\platform\AM335xPhytec\SRC\DRIVERS\PRU\ce_pru_driver\: Missing source file: C:\WINCE700\OSDesigns\KT\KT\Wince700\AM335xPhytec_ARMV7_Retail\cesysgen\platcomm\AM335xPhytec\lib\ARMV7\retail\pru_hal_common.lib.
    BUILD: [00:0000000650:PROGC ] Building EXPLIB Pass in C:\WINCE700\platform\AM335xPhytec\SRC\DRIVERS\PRU\ce_pru_driver\ directory.
    BUILD: [00:0000000671:PROGC ] Building EXPLIB Pass in C:\WINCE700\platform\AM335xPhytec\SRC\DRIVERS\NLED\ directory.
    BUILD: [00:0000000676:PROGC ] Building EXPLIB Pass in C:\WINCE700\platform\AM335xPhytec\SRC\DRIVERS\DCAN\ directory.
    BUILD: [01:0000000706:ERRORE] Error(s) in directory "C:\WINCE700\platform\AM335xPhytec\SRC\DRIVERS\PRU\ce_pru_driver\".
    BUILD: [01:0000000707:ERRORE] NMAKE : fatal error U1073: don't know how to make 'C:\WINCE700\OSDesigns\KT\KT\Wince700\AM335xPhytec_ARMV7_Retail\cesysgen\platcomm\AM335xPhytec\lib\ARMV7\retail\pru_ce_driver.lib'
    BUILD: [01:0000000709:ERRORE] TargetExpLibFiles  -nologo BUILDMSG=Stop.  BUILDROOT=C:\WINCE700\platform\AM335xPhytec LINKONLY=1 NOPASS0=1 failed - rc = 2.

    How to confirm the cause of the error?????

    Wednesday, January 6, 2016 6:55 AM
  • Whether pru_ce_driver.lib file is being generated in C:\WINCE700\OSDesigns\KT\KT\Wince700\AM335xPhytec_ARMV7_Retail\cesysgen\platcomm\AM335xPhytec\lib\ARMV7\retail\         ? 
    • Edited by Keshava GN Wednesday, January 6, 2016 7:04 AM
    Wednesday, January 6, 2016 7:03 AM
  • Hi GNKeshava,

    Thanks for reply. 

    I have already mentioned that the corresponding library is generated in the desired locationhttps://social.msdn.microsoft.com/Forums/getfile/776046

    Wednesday, January 6, 2016 7:13 AM
  • Hi Partap,

    Can you please mark the solution by selecting "Answer" from below the solution response?  Placing the word "SOLVED" in the title does not indicate which answer actually solved the problem.

    Sincere thanks,

    IoTGirl

    Wednesday, January 6, 2016 5:38 PM
    Moderator
  • Dear Developers,

    Greetings!!!

    None of the above solve the issue.

    Thursday, January 7, 2016 4:46 AM