cancel
Showing results for 
Search instead for 
Did you mean: 
Observer
Observer
431 Views
Registered: ‎03-26-2019

Kernel Linking Error [--sp tag applied to invalid kernel instance]

Jump to solution

Hi, so I started with an example program (apply watermark to an image) and changed it to my encryption/decryption algorithm's logic. It works perfectly in Emulation - SW, but doesn't build in Emulation - HW. I think the problem is the build tool is trying to link the (now, non-existent) example kernel to a port instead of linking the new encryption/decryption kernels to the port. How do I specify to link the ports to the correct kernels?

BTW I changed my HW function name to "AES" and the 2 kernels within that hw function to "encrypt" and "decrypt" as you can see below in the build error message.

Creating apsys_0.xml
INFO: [CFGEN 83-0] Kernel Specs:
INFO: [CFGEN 83-0] kernel: decrypt, num: 1 {decrypt_1}
INFO: [CFGEN 83-0] kernel: encrypt, num: 1 {encrypt_1}
INFO: [CFGEN 83-0] Port Specs:
INFO: [CFGEN 83-0] kernel: apply_watermark_1, k_port: m_axi_gmem0, sptag: DDR[0]
INFO: [CFGEN 83-0] kernel: apply_watermark_1, k_port: m_axi_gmem1, sptag: DDR[1]
ERROR: [CFGEN 83-2291] --sp tag applied to invalid kernel instance: apply_watermark_1
ERROR: [CFGEN 83-2291] --sp tag applied to invalid kernel instance: apply_watermark_1
ERROR: [CFGEN 83-2298] Exiting due to previous error
Error generating design file for apsys_0.xml
command: /tools/Xilinx/SDx/2018.3/bin/cfgen -nk decrypt:1:decrypt_1 -nk encrypt:1:encrypt_1 -sp apply_watermark_1.m_axi_gmem0:DDR\[0\] -sp apply_watermark_1.m_axi_gmem1:DDR\[1\] -r /home/kasi/workspace/study_3/Emulation-HW/AES/link/sys_link/_sds/.cdb/xd_ip_db.xml -o apsys_0.xml
Error creating intermediate design file, exiting
ERROR: [XOCC 60-398] sdx_link failed
ERROR: [XOCC 60-626] Kernel link failed to complete
ERROR: [XOCC 60-703] Failed to finish linking
makefile:92: recipe for target 'AES.xclbin' failed
make: *** [AES.xclbin] Error 1

thanks,
Kasi

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Xilinx Employee
Xilinx Employee
351 Views
Registered: ‎07-16-2008

Re: Kernel Linking Error [--sp tag applied to invalid kernel instance]

Jump to solution

Please refer to UG1023, pg30, XOCC Linking and Compilation Options.

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

0 Kudos
4 Replies
Highlighted
Xilinx Employee
Xilinx Employee
399 Views
Registered: ‎03-24-2010

回复: Kernel Linking Error [--sp tag applied to invalid kernel instance]

Jump to solution

As the message and you pointed out, you need to change the link option, in the makefile or other scripts you use.

Regards,
brucey
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
388 Views
Registered: ‎06-04-2018

回复: Kernel Linking Error [--sp tag applied to invalid kernel instance]

Jump to solution

Hi @kasimanikumar,

Looks like there is some problem with your link options(--sp flag) in Makefile.

Can you check the m_axi_gmem mapping in kernel and Makefile if there are properly assigned.

@kasimanikumar , if you can share the kernel and makefile code, we can debug and find the fix.

 

Regards,
Vishnu
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

0 Kudos
Highlighted
Observer
Observer
368 Views
Registered: ‎03-26-2019

Re: Kernel Linking Error [--sp tag applied to invalid kernel instance]

Jump to solution

Hi,

I'm currently using the SDaccel IDE (GUI). Whenever I modify the makefile and build it through the IDE it creates a new makefile and uses that, instead of my corrected one. How can I change this linking configuration through the IDE?

thanks,
Kasi

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
352 Views
Registered: ‎07-16-2008

Re: Kernel Linking Error [--sp tag applied to invalid kernel instance]

Jump to solution

Please refer to UG1023, pg30, XOCC Linking and Compilation Options.

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

0 Kudos