I have done some software projects with CoDeveloper,I have found these errors as blow:
1.HW_STREAM_WRITE HW_STREAM_READ:
such as: HW_STREAM_WRITE(test_producer,red_pixels_out,pBitMap[i++]); ( in the EdgeDetect_2 of Toturials)
the compiler of edk show erros blow:
/cygdrive/c/G/gc19861210/EdgeDetect_2/EDK/code/EdgeDetect_sw.c:128: error: expected ':' or ')' before 'p_test_producer_red_pixels_out'
2. creat_stream creat_process failed
it shows that "malloc failed!" ,and I figure out it is the problem of creat_stream() creat_process ()
And it's so strange that I have not encount these probloems in other projects .
Can you tell me why? how to solve them? Thanks a lot!
ERRORS of CoDeveloper
Started by gc19861210, Jul 20 2008 05:15 PM
3 replies to this topic
#1
Posted 20 July 2008 - 05:15 PM
#2
Posted 20 July 2008 - 06:35 PM
Hi,
You are you using the APU correct? If so, are you including "apu_if.h" which gets exported as part of the driver?
How big is your heap? You can set the heap size using the linker script.
Ed
QUOTE (gc19861210 @ Jul 20 2008, 07:14 PM) <{POST_SNAPBACK}>
I have done some software projects with CoDeveloper,I have found these errors as blow:
1.HW_STREAM_WRITE HW_STREAM_READ:
such as: HW_STREAM_WRITE(test_producer,red_pixels_out,pBitMap[i++]); ( in the EdgeDetect_2 of Toturials)
the compiler of edk show erros blow:
/cygdrive/c/G/gc19861210/EdgeDetect_2/EDK/code/EdgeDetect_sw.c:128: error: expected ':' or ')' before 'p_test_producer_red_pixels_out'
1.HW_STREAM_WRITE HW_STREAM_READ:
such as: HW_STREAM_WRITE(test_producer,red_pixels_out,pBitMap[i++]); ( in the EdgeDetect_2 of Toturials)
the compiler of edk show erros blow:
/cygdrive/c/G/gc19861210/EdgeDetect_2/EDK/code/EdgeDetect_sw.c:128: error: expected ':' or ')' before 'p_test_producer_red_pixels_out'
You are you using the APU correct? If so, are you including "apu_if.h" which gets exported as part of the driver?
QUOTE
2. creat_stream creat_process failed
it shows that "malloc failed!" ,and I figure out it is the problem of creat_stream() creat_process ()
And it's so strange that I have not encount these probloems in other projects .
Can you tell me why? how to solve them? Thanks a lot!
it shows that "malloc failed!" ,and I figure out it is the problem of creat_stream() creat_process ()
And it's so strange that I have not encount these probloems in other projects .
Can you tell me why? how to solve them? Thanks a lot!
How big is your heap? You can set the heap size using the linker script.
Ed
Ed Trexel
Impulse Accelerated Technologies, Inc.
Impulse Accelerated Technologies, Inc.
#3
Posted 20 July 2008 - 09:59 PM
QUOTE (etrexel @ Jul 20 2008, 06:35 PM) <{POST_SNAPBACK}>
Hi,
You are you using the APU correct? If so, are you including "apu_if.h" which gets exported as part of the driver?
How big is your heap? You can set the heap size using the linker script.
Ed
You are you using the APU correct? If so, are you including "apu_if.h" which gets exported as part of the driver?
How big is your heap? You can set the heap size using the linker script.
Ed
apu? sorry, I use mocoblaze in my system , It seems that there is no apu . And ,Why I have not these problems in other project? Thanks
#4
Posted 21 July 2008 - 09:31 AM
QUOTE (gc19861210 @ Jul 20 2008, 11:59 PM) <{POST_SNAPBACK}>
apu? sorry, I use mocoblaze in my system , It seems that there is no apu . And ,Why I have not these problems in other project? Thanks
Hi,
What other projects and in what version(s) of CoDeveloper? Your projects or examples? And all MicroBlaze?
For the compile error, it is a matter of names. Check to make sure the names match what is in the generated "fsl_if.h" file (I am assuming your are using FSL with MicroBlaze given the error which would be similar to PPC-APU).
For the "malloc failed!" error, there is a long known error with Xilinx's implementation of malloc() (do a search on the forums here or Xilinx's site for more information) for for the MicroBlaze such as the heap does not get automatically free'd at reset causing memory to "leak".
Ed
Ed Trexel
Impulse Accelerated Technologies, Inc.
Impulse Accelerated Technologies, Inc.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












