UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
212 Views
Registered: ‎11-27-2018

about hls

hi ,

i am getting errors while using opencv only..

now i changed code hls_opencv freiendly functions...

i got the below error anyone can please help me..

Capture.PNG

 

thanks in advance,

kotra sharmila

0 Kudos
3 Replies
Scholar u4223374
Scholar
175 Views
Registered: ‎04-26-2015

Re: about hls

This is a segmentation fault, normally a result of allocating too much stuff on the stack. The simple approach is to make all of your big arrays (eg. image_in, image_out) static. This (a) moves them to a different section of RAM with more space available, and (b) better mimics how HLS will build these arrays in hardware.

0 Kudos
138 Views
Registered: ‎11-27-2018

Re: about hls

can you please tell me how can i make it static 

regards,

k sharmila

0 Kudos
Scholar u4223374
Scholar
126 Views
Registered: ‎04-26-2015

Re: about hls

@sharmilakotra123 It's very easy: just add "static" to the declaration:

 

static uint8_t image_in[1080*1920];
static uint8_t image_out[1080*1920];
0 Kudos