-
Notifications
You must be signed in to change notification settings - Fork 2k
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
boards/hifive1: fix hifive1 reset #11040
Conversation
@kenrabold can you maybe take a look? |
The reboot code using the watchdog timer works for me. Looks good. |
dist/tools/openocd/openocd.sh
Outdated
@@ -323,7 +323,7 @@ do_reset() { | |||
-c 'telnet_port 0' \ | |||
-c 'gdb_port 0' \ | |||
-c 'init' \ | |||
-c 'reset run' \ | |||
-c "${OPENOCD_CMD_RESET_RUN:-reset run}" \ |
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.
This is a new variable in the script. It should be documented at the beginning like the rest.
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.
Yes, done.
@jcarrano could you take another look? |
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.
I tried to flash a pba-whatever (the yellow board) and got a small issue. Otherwise it's fine since it seems to work for people with the hifive board.
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.
I tested that it still works with other boards. Needs squash.
Co-Authored-By: jcarrano <juan@carrano.com.ar>
1162bdb
to
847dc3d
Compare
Contribution description
pm_reset()
was not implemented, andmake reset
was non-functional on hifive1.This PR fixes both.
Without this PR, "make test" is broken.
Testing procedure
Issues/PRs references
none