2008-07-28 05:57:02     standalone application

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-07-28 05:57:02     standalone application

Pranay Upadhyay (INDIA)

Message: 59470   

 

Hello sir,

 

I am compiling using bfin-elf-gcc ,then I am getting this type of error ,what should be possibility for this type of error please tell me something about this type of error.I am not able to find the solution of this .

 

   make

bfin-elf-gcc -c -mcpu=bf561 -g isra.c -o isra.o

In file included from maina.h:4,

                 from isra.c:1:

system.h:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘semaphore_frames_received’

In file included from isra.c:1:

maina.h:38: error: expected ‘)’ before ‘entire_field’

isra.c: In function ‘PPI0_RxIsr’:

isra.c:16: error: ‘semaphore_frames_received’ undeclared (first use in this function)

isra.c:16: error: (Each undeclared identifier is reported only once

isra.c:16: error: for each function it appears in.)

isra.c:16: error: ‘true’ undeclared (first use in this function)

make: *** [isra.o] Error 1

[root@PranayU video]# clear

-Regards

 

Pranay

QuoteReplyEditDelete

 

 

2008-07-28 22:09:37     Re: standalone application

Yi Li (CHINA)

Message: 59500   

 

We cannot guess without seeing source code.

QuoteReplyEditDelete

 

 

2008-07-28 23:54:43     Re: standalone application

Pranay Upadhyay (INDIA)

Message: 59502   

 

Hello sir,

 

  thanks. I am attatchimg the source code from where I am getting error.Please give me some idea about this.

 

-Regards

 

Pranay

 

 

 

system.h

maina.h

isra.c

QuoteReplyEditDelete

 

 

2008-07-29 02:50:07     Re: standalone application

Yi Li (CHINA)

Message: 59507   

 

"

 

extern volatile bool semaphore_frames_received;   

 

 

"

 

gcc does not recongnize the type "bool".

QuoteReplyEditDelete

 

 

2008-07-30 02:40:42     Re: standalone application

Pranay Upadhyay (INDIA)

Message: 59580   

 

Hello sir,

 

Thanks,  I resolved that problem .I am usinf the dual core for viseo in-out without using kernel.After compilatin I am getting following error like

 

[root@PranayU 300708]# make

bfin-elf-gcc -o video -mcpu=bf561 -mmulticore l2_sram.o l3_sdram.o main.o isra.o coreb.o isrb.o i2c.o

coreb.o:(.bss+0x0): multiple definition of `_Set_PACK32'

main.o:/pranay/uClinux-dist/user/elf_file/300708/main.c:28: first defined here

/opt/uClinux/bfin-elf/lib/gcc/bfin-elf/4.1.2/../../../../bfin-elf/bin/ld.real: region MEM_L1_DATA_A is full (video section .bss)

/opt/uClinux/bfin-elf/lib/gcc/bfin-elf/4.1.2/../../../../bfin-elf/bin/ld.real: region MEM_L1_DATA_A is full (video section .bss)

/opt/uClinux/bfin-elf/lib/gcc/bfin-elf/4.1.2/../../../../bfin-elf/bin/ld.real: section .l1.data.A [ff80100c -> ff80100f] overlaps section .bss [ff800888 -> ffb2a8f7]

collect2: ld returned 1 exit status

make: *** [video] Error 1

[root@PranayU 300708]#

 

 

I read the example from

 

uClinux-dist/user/blkfin-apps/corebld/

 

Please explain me what is meaning and difference  of CFLAGS += -Wall   and CFLAGS = -g

 

Can we use that file for running the application code in core B.At the same time we want to use core A.Then how create we makefile for running the code from core A and core B simultaneously.Please guide me.

 

-Regards

 

Pranay

 

 

 

 

QuoteReplyEditDelete

 

 

2008-07-30 03:14:04     Re: standalone application

Mike Frysinger (UNITED STATES)

Message: 59582   

 

you cannot have an application run simultaneously on Core A and Core B

 

the errors you posted are self explanatory ... please actually read these messages instead of just posting the output and asking someone else to read things back to you

QuoteReplyEditDelete

 

 

2008-07-30 03:48:52     Re: standalone application

Pranay Upadhyay (INDIA)

Message: 59583   

 

Hello Mike sir,

 

                 I do not want to run same application simultaneously on both core.My aim is video in from core A and video out from core B.As  in VDSP we can use dual core for video in-out. So I am asking that can we use dual core for video in-out after compiling the code from bfin-elf-gcc compiler.I have tested the application code for audio in-out using single core after compiling from bfin-elf-gcc, this is working properly.

 

            Now I am facing the problem for core B which do video out in my code.If we can not use dual core in linux platform then how video in-out is possible? Please guide me.Thanks.

 

-Regards

 

Pranay

Attachments

Outcomes