For a school project I a got HC-05 bluetooth module and MikroE Clicker2 with STM32 (ARM).
When I connect and use module with Arduino, 9600 BAUD rate and all other settings used with SoftwareSerial work and module properly communicates with my Android device.
Once I connect HC-05 with clicker, on some of UART ports(there are 4 on my board), communication works but data is corrupted. Actually data is always composed of same values (exact value is 192).
Both sending and receiving work, module is properly connected rx/tx tx/rx, but data is always equal to same value.
Any idea what can cause said data corruption? Since it works on Arduino I am sure its not between module and android device.
SoftwareSerial BTserial(2, 3); BTserial.begin(9600);Clicker2(MikroC)
UART3_Init_Advanced(9600, _UART_8_BIT_DATA, _UART_NOPARITY, _UART_ONE_STOPBIT, &_GPIO_MODULE_USART3_PD89);HC-05:
AT+UART?returns 9600,0,0 \$\endgroup\$