PSOC 4 CY8CKIT-049 kit, Bootloader reported error 'Packet Length invalid' | Cypress Semiconductor
PSOC 4 CY8CKIT-049 kit, Bootloader reported error 'Packet Length invalid'
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);
if(aVal> 2047) aVal = 2047;
if(aVal<1) aVal = 1;
aVal == aVal/2 +100;