beagleboard / am335x_pru_package

332 stars 181 forks source link

error: too few arguments to function 'prussdrv_pru_clear_event' #12

Closed vmayoral closed 10 years ago

vmayoral commented 10 years ago

When making the example_apps i get the following:

make CROSS_COMPILE= 
mkdir -p bin
for dir in  PRU_memAccess_DDR_PRUsharedRAM PRU_memAccessPRUDataRam PRU_PRUtoPRU_Interrupt; do make -C $dir CROSS_COMPILE="" LIBDIR_APP_LOADER="../../app_e
make[1]: Entering directory `/root/pru/am335x_pru_package/pru_sw/example_apps/PRU_memAccess_DDR_PRUsharedRAM'
gcc -Wall -I../../app_loader/include -D__DEBUG -O2 -mtune=cortex-a8 -march=armv7-a -c -o obj/PRU_memAccess_DDR_PRUsharedRAM.o PRU_memAccess_DDR_PRUshared 
PRU_memAccess_DDR_PRUsharedRAM.c: In function 'main':
PRU_memAccess_DDR_PRUsharedRAM.c:162:5: error: too few arguments to function 'prussdrv_pru_clear_event'
../../app_loader/include/prussdrv.h:182:9: note: declared here
make[1]: *** [obj/PRU_memAccess_DDR_PRUsharedRAM.o] Error 1
make[1]: Leaving directory `/root/pru/am335x_pru_package/pru_sw/example_apps/PRU_memAccess_DDR_PRUsharedRAM'
make[1]: Entering directory `/root/pru/am335x_pru_package/pru_sw/example_apps/PRU_memAccessPRUDataRam'
gcc -Wall -I../../app_loader/include -D__DEBUG -O2 -mtune=cortex-a8 -march=armv7-a -c -o obj/PRU_memAccessPRUDataRam.o PRU_memAccessPRUDataRam.c 
PRU_memAccessPRUDataRam.c: In function 'main':
PRU_memAccessPRUDataRam.c:148:5: error: too few arguments to function 'prussdrv_pru_clear_event'
../../app_loader/include/prussdrv.h:182:9: note: declared here
make[1]: *** [obj/PRU_memAccessPRUDataRam.o] Error 1
make[1]: Leaving directory `/root/pru/am335x_pru_package/pru_sw/example_apps/PRU_memAccessPRUDataRam'
make[1]: Entering directory `/root/pru/am335x_pru_package/pru_sw/example_apps/PRU_PRUtoPRU_Interrupt'
gcc -I../../app_loader/include -D__DEBUG -O2 -mtune=cortex-a8 -march=armv7-a -c -o obj/PRU_PRUtoPRU_Interrupt.o PRU_PRUtoPRU_Interrupt.c 
PRU_PRUtoPRU_Interrupt.c: In function 'main':
PRU_PRUtoPRU_Interrupt.c:175:5: error: too few arguments to function 'prussdrv_pru_clear_event'
../../app_loader/include/prussdrv.h:182:9: note: declared here
PRU_PRUtoPRU_Interrupt.c:181:5: error: too few arguments to function 'prussdrv_pru_clear_event'
../../app_loader/include/prussdrv.h:182:9: note: declared here
make[1]: *** [obj/PRU_PRUtoPRU_Interrupt.o] Error 1
make[1]: Leaving directory `/root/pru/am335x_pru_package/pru_sw/example_apps/PRU_PRUtoPRU_Interrupt'
make: *** [all] Error 2

Tried on a BeagleBone (white) running kernel 3.8.13-bone35.2 and using Ubuntu FS. The whole process is described here.

Has anybody experienced this before? is there a workaround? Thanks

olsonse commented 10 years ago

This is due to a fix of the event wait and clear methods. I forgot to propagate the changes to the examples. I'll do that tomorrow. @jadonk will have to merge those fixes back in tomorrow.

vmayoral commented 10 years ago

@olsonse great! Thanks.

jadonk commented 10 years ago

Can you confirm and close this issue?

vmayoral commented 10 years ago

Some errors still remain:

make CROSS_COMPILE=                                   
mkdir -p bin                                                                                                       
for dir in  PRU_memAccess_DDR_PRUsharedRAM PRU_memAccessPRUDataRam PRU_PRUtoPRU_Interrupt; do make -C $dir CROSS_Ce
make[1]: Entering directory `/root/pru/am335x_pru_package/pru_sw/example_apps/PRU_memAccess_DDR_PRUsharedRAM'      
gcc -Wall -I../../app_loader/include -D__DEBUG -O2 -mtune=cortex-a8 -march=armv7-a -c -o obj/PRU_memAccess_DDR_PRU 
gcc -Wall -I../../app_loader/include -D__DEBUG -O2 -mtune=cortex-a8 -march=armv7-a -o ../bin/PRU_memAccess_DDR_PRUd
make[1]: Leaving directory `/root/pru/am335x_pru_package/pru_sw/example_apps/PRU_memAccess_DDR_PRUsharedRAM'       
make[1]: Entering directory `/root/pru/am335x_pru_package/pru_sw/example_apps/PRU_memAccessPRUDataRam'             
gcc -Wall -I../../app_loader/include -D__DEBUG -O2 -mtune=cortex-a8 -march=armv7-a -c -o obj/PRU_memAccessPRUDataR 
gcc -Wall -I../../app_loader/include -D__DEBUG -O2 -mtune=cortex-a8 -march=armv7-a -o ../bin/PRU_memAccessPRUDataRd
make[1]: Leaving directory `/root/pru/am335x_pru_package/pru_sw/example_apps/PRU_memAccessPRUDataRam'              
make[1]: Entering directory `/root/pru/am335x_pru_package/pru_sw/example_apps/PRU_PRUtoPRU_Interrupt'              
gcc -I../../app_loader/include -D__DEBUG -O2 -mtune=cortex-a8 -march=armv7-a -c -o obj/PRU_PRUtoPRU_Interrupt.o PR 
gcc -I../../app_loader/include -D__DEBUG -O2 -mtune=cortex-a8 -march=armv7-a -o ../bin/PRU_PRUtoPRU_Interrupt obj/d
make[1]: Leaving directory `/root/pru/am335x_pru_package/pru_sw/example_apps/PRU_PRUtoPRU_Interrupt'               
for a_file in  PRU_memAccess_DDR_PRUsharedRAM/PRU_memAccess_DDR_PRUsharedRAM.p PRU_memAccessPRUDataRam/PRU_memAcce\
        do \                                                                                                       
          ../utils/pasm_2 -V3 -b $a_file ; \                                                                       
        done ; \                                                                                                   
        mv *.bin bin                                                                                               
/bin/sh: 3: ../utils/pasm_2: not found                                                                             
/bin/sh: 3: ../utils/pasm_2: not found                                                                             
/bin/sh: 3: ../utils/pasm_2: not found                                                                             
/bin/sh: 3: ../utils/pasm_2: not found                                                                             
mv: cannot stat `*.bin': No such file or directory                                                                 
make: *** [all] Error 1                                                                                            
vmayoral commented 10 years ago

Worked for me changing this for (natively compiling on the BB):

PASM?=../utils/pasm

Is this all right?