Hey there,
i am running a custom application for an e-bike using Hall signals as well as an ADC input for a Potentiometer.
This is all working great but i want to use UART for a Bluetooth module together with the custom application.
Is there any possibility to start the UART application in the custom application?
Maybe use the UART pins as is and remap the ADC input for the POT to an unused pin?
NextGen FOC High voltage 144v/34s, 30kw (https://vesc-project.com/node/1477)
I think you better copy what's in the the original UART_COMM application, and add it to your custom app (you can have several threads in a customs app).
Alternately, maybe you could just add "app_uartcomm_start();" in the app.c, after the case APP_CUSTOM: , after you start your custom app.
I think the ADC inputs are not shared with the TX or RX pin, so no problem.
I have found the answer. It is possible to start the UART communication by starting the application in the custom thread: app_uartcomm_start();