1 Reply Latest reply on Aug 10, 2020 1:20 AM by GaneshD_41

    CYBLE-416045-02 app1 does not start

    AnCi_2234676

      I am trying to write a DFU application. I am calling Cy_DFU_ExecuteApp(1), but my App0 keeps restarting in a loop.

      I have built a simple project that a simple project that reproduces the issue. At the end of the App1 build, both build outputs get merged into one. Then I program the merged output to my psoc 6. Then, in debug without programming, I change the value of switchToApp1 to 1 to call  Cy_DFU_ExecuteApp(1), but I get back in App0.

       

      What am I doing wrong?

       

      Thanks

        • 1. Re: CYBLE-416045-02 app1 does not start
          GaneshD_41

          Hi,

           

          You have missed the following function in main.c of CM0+ core:

           

          /*******************************************************************************

          * Function Name: Cy_OnResetUser

          ********************************************************************************

          *

          * Summary:

          *  This function is called at the start of Reset_Handler(). It is a weak

          *  function that may be redefined by user code.

          *  The DFU SDK requires this function to call Cy_DFU_OnResetApp0() in app#0

          *  core0.

          *

          * Parameters:

          *  None

          *

          * Return:

          *  None

          *

          *******************************************************************************/

          void Cy_OnResetUser(void)

          {

              Cy_DFU_OnResetApp0();

          }

           

          Please include this in your applicaion and check once. Also, please refer code examples on DFU for PSoC 6 in PSoC Creator.

           

          Thanks

          Ganesh