Part Number: LAUNCHXL-CC2640R2
Hello,
I'm using the LAUNCHXL-CC2640R2 to generate a PWM signal on one of its digital ports , the signal should start when I send a message "ACTIVATE_PWM:\r\n" VIA UART ( using dochlight scripting).then I should recieve
like "PWM_ON\r\n" . I am using the example provided in TI resource explorer 'uartecho' . the problem is that I could not empty the buffer from the function described in UART.h in the same project (extern int_fast32_t
UART_read(UART_Handle handle, void *buffer, size_t size); I want to send a message via dochlight followed by carriage return or line feed wich enables a PWM signal and stops the output when I send an other message
"PWM_STOP\r\n"
I managed to trigger a signal on the message sent (returns"PWM_ON" an stops on the other message but i can't get a feed back like "PWM disabled" via UART and the code is messy and not how it should be and i think it's
due to the buffer being full and unable to empty with the new TRAME coming in