GithubHelp home page GithubHelp logo

ESP32-S3 RDM issues with UART0 about esp_dmx HOT 5 CLOSED

lft8 avatar lft8 commented on September 25, 2024
ESP32-S3 RDM issues with UART0

from esp_dmx.

Comments (5)

lft8 avatar lft8 commented on September 25, 2024 1

Platform is Arduino and USB CDC is disabled btw

from esp_dmx.

someweisguy avatar someweisguy commented on September 25, 2024 1

Are you comfortable editing library code? If so, I'd like you to try something for me. I think it would be faster than me trying to determine how to test this.

I think I may have an if-statement in the UART initialization code that is causing the problem for you. It can be found here. Currently, the code looks like this:

  if (dmx_num != 0) {  // Default UART port for console
#if SOC_UART_REQUIRE_CORE_RESET
    // ESP32C3 workaround to prevent UART outputting garbage data
    uart_ll_set_reset_core(uart->dev, true);
    periph_module_reset(uart_periph_signal[dmx_num].module);
    uart_ll_set_reset_core(uart->dev, false);
#else
    periph_module_reset(uart_periph_signal[dmx_num].module);
#endif
  }

I believe the if (dmx_num != 0) needs to be edited. If you are comfortable doing so, try changing it to if (true) so that the if-statement is always executed. I think this may solve your problem until I am able to patch this.

from esp_dmx.

someweisguy avatar someweisguy commented on September 25, 2024

Thanks for the kind words!

This is a great question. It is possible that there is a hardware limitation with UART0 on the S3. I may be able to patch it if this is the case. I will investigate!

from esp_dmx.

lft8 avatar lft8 commented on September 25, 2024

Yes absolutely, I’m more than happy to modify the library and test it. It’ll be a couple of days before I can undertake testing but as soon as I do I’ll let you know how it goes.
Many thanks!

from esp_dmx.

lft8 avatar lft8 commented on September 25, 2024

I've managed to test this today but it still has the same issue I'm afraid.
I assume its related to the ESP32-S3 having on-board USB serial debug for USB attached to this UART (even though I have disabled it) so I doubt there is much else that can be done unfortunately.
Many thanks for looking into this though!

from esp_dmx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.