I am using the UCANS32K146 development board to read UART and then transmit that data in CAN messages.
I have had to develop two different applications, because there are two versions of UART packets sent by the devices sending the UART data
I was hoping to use a switch on a digital input that selects which application is used when the UCANS32K146 is powered up/reset.
Is there a way to switch between applications based on the state of a digital switch input ?
The reason for having two applications is shown below. Differences include the number of UART bytes, the data and datatypes within the UART packet and the packing of the UART data into CAN messages.
Application 1 reads and processes 10 bytes or UART data...
Application 2 reads and processes 22 bytes or UART data...