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!
03-06-2019 06:27 PM
Hello
I created my own SDSoC platform on the DP-8020 board (XCZU2EG-2SFVA625I). I ran a 32x32 matrix multiply-addition example and it worked fine. But when I use sds_alloc to allocate more than 128KB of memory, although it can compile, but the runtime will report an error.
Is this somewhere wrong when I create the SDSoC platform, or is it limited by tools or chips?
Thank you!
03-17-2019 08:05 PM
后面发现是我的DDR配错了,重新配置过就正常了
03-06-2019 09:38 PM
Hi @lucas_zyq
There is no limitation as such.
1. Have you used sds_free() ?
2. What is the error?
03-06-2019 09:52 PM
Hi, @nutang
the test code:
int main(int argc, char **argv) { ....... printf("----debug-0-----\n"); signed char *sds_ptr = (signed char *)sds_alloc(sizeof(signed char) * 129* 1024); ...... }
Runtime phenomenon:
When I allocate 128×1024 or less, it can run normally. However, when it exceeds 128×1024, it will report an error. Phenomenon: 1. Direct Linux kernel crashes. 2. Output “Internal error: Undefined command: 0 [#1] SMP", the kernel then crashes (when the allocation is far more than 128 × 1024, such as 1024 × 1024)
Thanks!
03-06-2019 09:54 PM
Hi @lucas_zyq
Please use sds_free() then it should not happen.
03-06-2019 10:16 PM
@nutang ,
I did use sds_free() when I no longer need this memory.
By the way, as long as the program runs to this location and the allocated memory is greater than 128*1024, the kernel collapses.
03-06-2019 10:20 PM
The direct cause of the problem is the size of memory allocated by sds_alloc
03-06-2019 10:31 PM
Hi @lucas_zyq
Okay. Got it.
Let me check other possiblities and get back to you.
03-17-2019 08:05 PM
后面发现是我的DDR配错了,重新配置过就正常了