ArduinoCore-renesas icon indicating copy to clipboard operation
ArduinoCore-renesas copied to clipboard

Arduino UNO R4 SoftwareSerial missing end()

Open bmitov opened this issue 8 months ago • 5 comments

The SoftwareSerial implementation for Arduino UNO R4 is missing the end() method. Sometimes it is necessary to stop the Serial and start manually controlling the pins.

end() is implemented for all other platforms that I have worked with :frowning:. For example:

  • https://github.com/arduino/ArduinoCore-avr/blob/1.8.6/libraries/SoftwareSerial/src/SoftwareSerial.h#L96
  • https://github.com/arduino/ArduinoCore-megaavr/blob/1.8.8/libraries/SoftwareSerial/src/SoftwareSerial.h#L96

Additional context

Additional requests

  • https://github.com/arduino/ArduinoCore-renesas/issues/463#issuecomment-2832629852
  • https://github.com/arduino/ArduinoCore-renesas/issues/463#issuecomment-2832930786

bmitov avatar Apr 26 '25 20:04 bmitov

Please fix it!

RonsTek avatar Apr 26 '25 21:04 RonsTek

Hope you can get it fixed quick!

finnandreh avatar Apr 27 '25 03:04 finnandreh

Hi @bmitov, I have some difficult to understand the issue and I would like to ask you if you can help me. Can you please explain how you are using the Serial Software and what you are expecting that does not work? I made some naive tests and it seems to me that is possible to configure 2 pins assigned to Serial Software and then use them "manually" as GPIO (without calling any Serial Software end() function, just use pinMode() to configure them) and that seems to work to me, but probably I am missing some context here. Can you please help me to better understand the issue? Thanks

maidnl avatar Apr 28 '25 14:04 maidnl

@bmitov responded to @maidnl's question on a different issue:

I need to be able to enable the serial, use it as serial, then disable, control the pins, and later enable the serial again.

per1234 avatar Apr 28 '25 21:04 per1234

I have copied your response from https://github.com/arduino/ArduinoCore-renesas/issues/464 to this issue @bmitov.

I have unlocked the issue in order to allow you to provide any additional information that might be requested.

However, if the issue becomes the source of "noise" from people making comments that don't add anything of technical value, as happened before, then I will be forced to lock it again. For the interested parties, please refrain from replying unless you have significant and unique information to add. If you only want to express your support for the PR or a comment in the thread, use the "Reactions" feature to add a "👍", etc. "Me too"/"+1" comments are not allowed here.

Everyone who watches the repository receives a notification whenever any reply is made on any of the issues and PRs. It is important for the developers and maintainers of the project to watch the repository to make sure we see the valuable feedback from the contributors. But if the repository becomes the source of a large number of low value notifications we must either waste our time sorting through them instead of doing productive work, or else unwatch the repository.

Unstructured conversations about Arduino-related subjects are always welcome over on Arduino Forum.

per1234 avatar Apr 28 '25 22:04 per1234

@bmitov @finnandreh @RonsTek Did you had the chance to test #465 ?

pennam avatar Jun 10 '25 15:06 pennam