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

Encountered strange issues while debugging the serial port with the C6 ULP core (IDFGH-13650) #14530

Closed
3 tasks done
Tinyu-Zhao opened this issue Sep 9, 2024 · 5 comments
Closed
3 tasks done
Assignees
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally

Comments

@Tinyu-Zhao
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

I encountered a strange problem when using the ULP core to debug with the serial port, the same code, but the placement is different, there is no other information in the middle, one line is indeed normal output information 'safe_power 125 ccc', the other line is garbled saæ�}ÿpo�W�. �ª�, and the result of multiple attempts is the same.

image
@espressif-bot espressif-bot added the Status: Opened Issue is new label Sep 9, 2024
@github-actions github-actions bot changed the title Encountered strange issues while debugging the serial port with the C6 ULP core Encountered strange issues while debugging the serial port with the C6 ULP core (IDFGH-13650) Sep 9, 2024
@SoucheSouche
Copy link
Collaborator

Hi @Tinyu-Zhao,
This is strange indeed. We will take a look and come back to you.

@Tinyu-Zhao
Copy link
Author

Hi @Tinyu-Zhao, This is strange indeed. We will take a look and come back to you.

Thank you and I will be happy to provide more information.
Current IDF Version is :ESP-IDF v5.4-dev-2620-g6673376297-dirty

@sudeep-mohanty
Copy link
Collaborator

Hi @Tinyu-Zhao,
What you are observing is likely an issue with the lp_uart driver which does not wait for the UART Tx FIFO to flush out before printing the next string/character. Could you please apply the following patch and let us know if it resolves the issue?

lp_uart.patch

@Tinyu-Zhao
Copy link
Author

Hi @Tinyu-Zhao, What you are observing is likely an issue with the lp_uart driver which does not wait for the UART Tx FIFO to flush out before printing the next string/character. Could you please apply the following patch and let us know if it resolves the issue?

lp_uart.patch

Thank you for the quick response, it worked properly!
image

@espressif-bot espressif-bot added Status: In Progress Work is in progress and removed Status: Opened Issue is new labels Sep 10, 2024
@sudeep-mohanty
Copy link
Collaborator

Thanks for the confirmation @Tinyu-Zhao. I shall do some more tests and make a change.

@espressif-bot espressif-bot added Status: Reviewing Issue is being reviewed Status: Done Issue is done internally Resolution: NA Issue resolution is unavailable and removed Status: In Progress Work is in progress Status: Reviewing Issue is being reviewed labels Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

4 participants