11 Replies Latest reply on Jun 14, 2017 10:04 AM by user_1377889

    PSOC 4 CY8CKIT-049 kit, Bootloader reported error 'Packet Length invalid'

    royarchana44_1805711

      I am new to PSoC and using  PSoC4 CY8CKIT-049 kit. I tested it with LED blink program and its working fine. Now I tried to see result for ADC but I am getting error- Bootloader reported error 'Packet data invalid': The packet sent to the bootloader does not conform to the required packet format.

         

      The program I wrote is a simple one. Programm inside for loop is:

         

      aVal  = ADC_GetResult16(0);

         

      LED_Write(!LED_Read());

         

      if(aVal> 2047) aVal = 2047;

         

      if(aVal<1) aVal = 1;

         

      aVal == aVal/2 +100;

         

      CyDelay(aVal);