Error code : -9 (USB Pipe Error)

I try to build my code In PLUS - c code using change kl520_demo_customize_inf_multiple_models.c refer to kl630_demo_customize_inf_multiple_models.c

but I faced Error code -9, and occured kernel panic in KL630 but other PLUS example well performed.


so I want to know how to fix this Error code and how to debug my code

please.. Could you tell me some advice? thank you!!



Comments

  • Hi Seongyun,

    Have you verified that your NEF model works? Also, the code you've provided is the KL630 firmware code. Could you provide your KL630 Kneron PLUS code as well so we could look into it? Thanks!

    You could check if the firmware you are using is correct, because there's a warning that the firmware on the KL630 device doesn't correspond to Kneron PLUS. Besides that, you could also check if the data you're inferencing has the correct format.

  • edited January 8

    @Maria Chen

    Dear Maria Chen

    Thank you for your support

    our Combined NEF is well performed. already checked with using customized kneron PLUS - python in one KL630 Device

    and customized PLUS-C code using kl520_demo_customize_inf_multiple_models.c example

    To help your inspect my problem I remained my firmware.tar,NEF file,PLUS_C code, firmware code.


    +PLUS, I want to know any problems if my code has gramma problem, logic bug etc... Could you tell me how to debug my firmware code and plus-c code like visual studio debug! it just can know 'printf'?

    I am always grateful for your support. Thank you sincerely.


  • Hi seongyunpark,

    After reviewing the code you provided, we noticed some misunderstandings in your process of porting a custom model to the KL630.

    Please refer to the documentation in the link below for clarification. Thank you.

    https://doc.kneron.com/docs/#plus_c/feature_guide/customized_api/create_kl630_single_model_example/

  • @Nick Wang

    Hello

    Unfortunately, Follow your advice, but I don't understand your explain, sorry... Could you tell me more explain? what means misunderstandings?

    Thank you for your support.

  • Hi Seongyun,

    The misunderstanding is that you might have used the KL520 firmware for KL630. The firmware for KL520 and KL630 are very different; you could refer to the documentation link Nick sent above. Do you have the KL630 SDK?

  • @Maria Chen

    Hi Maria chen,

    Sorry for reply, and Thank you for your support!

    I tried to develop kl630 firmware code with using kl520_demo_multiple example code fit to my kl630 sdk environment.

    Can I try it this way?

  • Hi Seongyun,

    I'm sorry to tell you this, but unfortunately, no. KL520 SDK and KL630 SDK are very different, so if you don't have the KL630 SDK (the SDK has the firmware code), you will need to contact our sales representative who you purchased the KL630 from for permission. After that, you can refer to the documentation Nick sent in his reply to devleop KL630 firmware code: Create Single Model Example for KL630 - Document Center


  • @Maria Chen

    Hi Deer Maria Chen.

    Thank you always for your help.

    Fortunately, I managed to resolve the basic issue.

    However, it seems that the execution stops inside the VMF_NNM_Inference_App_Execute function.

    Could you please guide me on how to fix this error?

    I believe the configuration is set up correctly. However, I am encountering an error with SIGNAL 11 and error code 121.

    PLUS -C code is same above zip file. just only changed my firmware code

    Thank you




  • Hi Seongyun,

    The error seems to be caused by the firmware code; there might be parts that are incomplete. Please make sure that you've written a postprocess callback in the firmware.


    If the problem is still not resolved, you could also provide us with your firmware inference app .c and .h codes so we could check them. Thanks!

  • @Maria Chen

    Hi Maria Chen

    Thank you for your support

    Thanks to your help, I successfully completed the detection.

    Now I will try fix NPU’s landmark result

    I do not setting pre_proc_func and post_proc_function,

    so my result have problems.


    could you give me some advice about pre_proc_func and post_proc_func development advice? My model is HRNET

  • Hi Seongyun,

    I'm glad you completed the detection successfully.

    For preprocess and postprocess development, you could refer to the link Nick replied to you. It should be at the bottom of the page:

    We can help when users encounter errors using Kneron PLUS and KL630 SDK, but users are responsible with understanding what their model does and writing their own preprocess and postprocess, since the preprocess and postprocess are different depending on the models. If you didn't set up a pre_proc_func, the firmware would use the below data to automatically preprocess your input:


  • edited January 17

    @Maria Chen

    Thank you for your support!

    I know what are you talking about means

    I try to develop pre proc and post proc.

    Later, If I face errors, I will open discussion.

    I really thank you for your help(Chen and Nick and Kneron Engineers)

    Thank you

The discussion has been closed due to inactivity. To continue with the topic, please feel free to post a new discussion.