Skip to content
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

DTS file for the esp32 #14261

Closed
Michael2196 opened this issue Mar 11, 2019 · 1 comment
Closed

DTS file for the esp32 #14261

Michael2196 opened this issue Mar 11, 2019 · 1 comment
Labels
area: UART Universal Asynchronous Receiver-Transmitter bug The issue is a bug, or the PR is fixing a bug

Comments

@Michael2196
Copy link

Describe the bug
I'm working on developing the device tree for the esp32 (gpio). To do so, I'm trying to understand the Uart example already developed under the esp32 device tree. However, I'm having trouble understanding some basic concepts. In the esp32.dts file, under &uart0, I modified the current speed from 115200 to 9600. To my surprise, after flashing the esp32 the baud rate is still at 115200.

To Reproduce
Steps to reproduce the behavior:

  1. cd /samples/helloworld/
    2.mkdir build; cd build
  2. cmake -GNinja -DESP_IDF_PATH=$ESP_IDF_PATH -DBOARD=esp32 ..
  3. ninja && west flash -d ./ --skip-rebuild --esp-device /dev/ttyACM0'
  4. minicom -D /dev/ttyUSB0 -b 9600

Expected behavior
Hello World on the console

Impact
Can't work on the device tree

Environment (please complete the following information):

  • OS: (Linux)
  • Toolchain (Zephyr SDK, espressif ...)

Additional context
I'm still trying to understand the concept of device tree. This would be a big help.
Thank you

@Michael2196 Michael2196 added the bug The issue is a bug, or the PR is fixing a bug label Mar 11, 2019
@galak
Copy link
Collaborator

galak commented Mar 11, 2019

This is because the driver doesn't support setting the baud rate at all. Take a look at drivers/serial/uart_esp32.c

@galak galak added the area: UART Universal Asynchronous Receiver-Transmitter label Mar 11, 2019
@galak galak closed this as completed Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: UART Universal Asynchronous Receiver-Transmitter bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

2 participants