This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

About DM8127 program re-running.

Genius 3400 points

Hi all,

         In IPNC DM8127 project, when debug our modified program, now  the only way that we can do is power off and the power on again, we have no way to end the running program and run the new program.  It's very discommodious to debug.

        Anybody can give me good idea?

  • you can run these commands

    killall -2 Appro_avi_save
    killall -2 wis-streamer
    sleep 2
    killall -9 wis-streamer
    killall -9 boa
    killall -2 ipnc_rdk_mcfw.out
    killall -9 system_server

    After this, you can start the way you like via script

    Regards,

    Raghu

  • Thank .

    I run the commands:

    killall -2 Appro_avi_save
    killall -2 wis-streamer
    sleep 2
    killall -9 wis-streamer
    killall -9 boa
    killall -2 ipnc_rdk_mcfw.out
    killall -9 system_server

    But It can not kill ipnc_rdk_mcfw.out. Run ps command to see the process, The result as follows:

    Why can not kill ipnc_rdk_mcfw.out?

    Thanks a lot!

  • Hi,

    when you run killall -2 ipnc_rdk_mcfw.out, there will signal sent to UI_signalHandler function in mcfw_ipnc_main.c

    You can prints there and further debug this issue?

    Regards,

    Raghu

  • Thank Raghu Kudva:
    UI_signalHandler function code as follows:
       //gUI_mcfw_config.demoCfg.stopDemo = TRUE;
    //gUI_mcfw_config.demoCfg.unloadDemo = TRUE;
    //gUI_mcfw_config.demoCfg.delImgTune = TRUE;
    gUI_mcfw_config.demoCfg.exitDemo = TRUE;
    It never stops ipnc_rdk_mcfw.out.
    I modify the code as follows:
    gUI_mcfw_config.demoCfg.stopDemo = TRUE;
    gUI_mcfw_config.demoCfg.unloadDemo = TRUE;
    gUI_mcfw_config.demoCfg.delImgTune = TRUE;
    gUI_mcfw_config.demoCfg.exitDemo = TRUE;
    When run killall -2 ipnc_rdk_mcfw.out,It trys to stop ipnc_rdk_mcfw.out,
    but App_stopDemo()->Venc_stop()function can not return. 
    So ipnc_rdk_mcfw.out is still running.
    Why? 
    Thanks a lot!
  • Anybody know why? or give us some advice?

  • We dont see this?can you giveuse somr more inputs on where it stops on M3.

    Regards,

    Raghu

  • We update to latest version of IPNC 2.8,  It can re-running through killall the program.

    Thanks a lot.