The waveshark RP2040 module and the HM-17 BLE module images are provided in the screenshots.
To implement the UART connection between the two modules, i have connected the GP0 (UART0 TX) and GP1 (UART0 RX) pins of the rp2040 tiny module to the HM-17 pins 4 (UART_RX) and 2 (UART_TX) respectively. the circuit connections are exactly to the datasheet schematic provided in the image. the Tx and Rx traces are connected via 1k resistors. The BLE module powers ON and is in working condition after testing with the nRF app on a mobile phone. Although the UART communication with the rp2040 module doesnt work. what could be the reason?
Show the complete schematic. You have RTS and CTS pins to contend with as well. Show all of your code.
Code, wiring or power, most likely.
Baud rate mismatch.
Similar and different baud rates were tested, so cannot be the problem with the baud rate
Where is the rest of the schematic and what power sources are you using. Post links to the hardware devices giving technical information. The caps you used do not match the HM-17 schematic, why? What else is in the system.
The power is provided to the RP2040 tiny via laptop using the serial wire which is connected to a type-c connector. The caps used are commercially available at the moment.
RP2040 tiny product:
https://www.waveshare.com/wiki/RP2040-Tiny?srsltid=AfmBOopJfA3_zTOKuhJmzhmHeV1vrnHLm6abxZLXs6_opo3a0pDVJgY6
HM-17 Bluetooth module product:
DSD-TECH-HM-17-CC2640_EN (1).pdf (279.0 KB)
The problem was solved ![]()
![]()
The communication failure between your RP2040 Tiny and the HM-17 module was primarily caused by a combination of physical signal degradation and a persistent software logic error. High-resistance 1kΩ series resistors distorted the digital logic levels, while a floating CTS pin (Pin 3) triggered the module's hardware flow control, effectively silencing its output. This was further complicated by the RP2040 becoming stuck in an internal loopback mode, a state where the microcontroller redirects its own transmitted data back to its input buffer internally, causing it to ignore all physical signals from the HM-17. The solution involved bypassing the resistors to restore signal integrity, grounding the CTS pin to disable flow control, and forcing a hardware re-initialization of the UART peripheral to disable the internal loopback and ensure the physical pins were active.
Thank you everyone for you support





