-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arch/risc-v/espressif: Remove usb serial workaround for esp32 modules #15920
Conversation
434755e
to
679848a
Compare
@tmedicci @eren-terzioglu, can you review, please? |
Hi, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please copy the PR message as commit message and update the title to
arch/risc-v//espressif: Remove usb serial workaround for esp32 modules
ce9883b
to
0b65d80
Compare
This commit includes a change to the esp_txint function in the arch/risc-v/src/common/espressif/esp_usbserial.c file. The change primarily involves removing an optimization workaround and adding a call to flush the transmit FIFO. After this change the usbserial config is able to work using all optimization levels. Changes in esp_txint function: Removed the __attribute__((optimize("O0"))) workaround. Added a call to usb_serial_jtag_ll_txfifo_flush() at the beginning of the function. Signed-off-by: Felipe Moura <moura.fmo@gmail.com>
0b65d80
to
eb621b5
Compare
This pull request includes a change to the
esp_txint
function in thearch/risc-v/src/common/espressif/esp_usbserial.c
file. The change primarily involves removing an optimization workaround and adding a call to flush the transmit FIFO.After this change the usbserial config is able to work using all optimization levels.
Changes in
esp_txint
function:__attribute__((optimize("O0")))
workaround.usb_serial_jtag_ll_txfifo_flush()
at the beginning of the function.Remove workaround related riscv esp32 modules usbserial driver.Testing
Using esp32c6, apply usbconsole config, build and flash, you will be able to use console by usb.
This PR solve the issue: #15656