Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Arduino_H7_Video: handling errors at initialization time#1015

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
leonardocavagnis merged 2 commits intoarduino:mainfromdmazzella:patch-1
Jan 17, 2025
Merged

Arduino_H7_Video: handling errors at initialization time#1015

leonardocavagnis merged 2 commits intoarduino:mainfromdmazzella:patch-1
Jan 17, 2025

Conversation

@dmazzella
Copy link
Contributor

handling errors at initialization time with added retry counter to avoid infinite wait on anx7625_wait_hpd_event

…etry counter to avoid infinite wait on anx7625_wait_hpd_event
@CLAassistant
Copy link

CLAassistant commentedJan 10, 2025
edited
Loading

CLA assistant check
All committers have signed the CLA.

@dmazzella
Copy link
ContributorAuthor

dmazzella commentedJan 15, 2025
edited
Loading

the motivation for this pr is to be able to reboot the board in case the display (USBCVideo) does not turn on for some reason, unfortunately it often happens that after a reset (ota firmware update) of the board the display does not turn on again and a reset fixes this, the problem is that in my specific case it happens on “remote” machines and not being physically there to reset it this is a problem.

// Initialize displayint display_ec = Display.begin();if (display_ec !=0) {NVIC_SystemReset();  }

for copleteness i use theUSB-C to HDMI Adapter from Arduino store

@dmazzella
Copy link
ContributorAuthor

@leonardocavagnis please take a look at it and let me know.

Copy link
Member

@leonardocavagnisleonardocavagnis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Sounds good!
Just a small fix: theDisplay.begin() function returns0 on success or a value>0 if it fails.

0: Success
1: Unknown error
2: Insufficient drawing memory buffer
(NEW) 3: Video controller initialization failure

Co-authored-by: Leonardo Cavagnis <45899760+leonardocavagnis@users.noreply.github.com>
@leonardocavagnisleonardocavagnis merged commitd9e1757 intoarduino:mainJan 17, 2025
11 checks passed
@iabdalkader
Copy link
Contributor

Changes in this PR break the USB-C display for me (also see#1075 which might be related). I think the main issue isanx7625_dp_get_edid fails for some displays, and thenanx7625_dp_start never gets called. However, because the examples don't handlebegin failing, they proceed to call other functions normally which somehow results in a hardfault. The same goes for waiting for HPD event. If you connect the board to a PC instead, and just wait, it hard-faults after a while.
I suggest we revert some of these changes, maybe keep thedp_start check, and fix the examples to handlebegin failing. Note that callingbegin multiple times, if it fails, does not work.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@leonardocavagnisleonardocavagnisleonardocavagnis requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@dmazzella@CLAassistant@iabdalkader@leonardocavagnis

[8]ページ先頭

©2009-2025 Movatter.jp