-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
MKS CANable V2.0 #81366
base: main
Are you sure you want to change the base?
MKS CANable V2.0 #81366
Conversation
@henrikbrixandersen You will see an overlay for this board in CANnectivity later. ;) Thus please take a look too. |
ce12700
to
b6f5079
Compare
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.
Board is OK, please fix ordering issue
Thank you for you review. Great to see a feedback from hwv2 guy :) I'll do necessary changes today late night. |
858f91e
to
bbe0276
Compare
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.
Updates need squashing i.e. 2 commits
1bd250e
to
ddf9bfd
Compare
Thank you. It is done now. |
So the second vendor update commit needs squashing into the first vendor update commit and the second board commit needs squashing into the first board commit. Something like this:
Now you should have 2 commits |
Got it. Will do. |
ddf9bfd
to
f66f16a
Compare
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.
Given that upstream threats this as one of multiple board variants (see https://github.com/makerbase-mks/CANable-MKS), I think we might want to do the same (bu renaming the board folder etc.). Support for the V1.0 and the PRO editions can then be added later on. What do you think?
if {[version_compare $current_version "0.12.0"] >= 0} { | ||
# OpenOCD version is 0.12.0 or newer | ||
init | ||
rtt setup 0x20000000 10000 "SEGGER RTT" | ||
rtt start | ||
rtt server start 9090 0 | ||
} else { | ||
# OpenOCD version is older than 0.12.0 | ||
echo "Warn: Segger RTT is not supported for this OpenOCD version: $current_version" | ||
} |
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 looks very generic and should probably not just be set for one board. It could go into a common OpenOCD configuration file.
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.
Do you mean by common
the configuration file delivered with OpenOCD itself?
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 meant boards/common/openocd.board.cmake
. I would suggest submitting this in a separate PR.
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 meant
boards/common/openocd.board.cmake
. I would suggest submitting this in a separate PR.
It is a good advice. Since it wil blow up the current scope and I can not test it for other boards - I would prefer to leave it here first. After merging this PR I would reallocate it to boards/common/openocd.board.cmake file. Or you can fell free to do so. I can support.
cc505eb
to
9fae0cb
Compare
9fae0cb
to
8f5ebcd
Compare
Add Makerbase Co., Ltd. board vendor Signed-off-by: Alexander Kozhinov <[email protected]>
8f5ebcd
to
fe9b827
Compare
A cheap and affordable stm32g4 based simple CAN and CAN-FD to usb adapter board Signed-off-by: Alexander Kozhinov <[email protected]> Reviewed-by: Erwan Gouriou <[email protected]> Reviewed-by: Henrik Brix Andersen <[email protected]>
84b0802
to
ec958c6
Compare
There are a lot of differences betwee each version of the HW. To me their versioning seems more as a tagging of evolution and not of progress. |
add new board MKS CANable V2.0 Please refer to added documentation for more information.
The hardware of the board can be dound under: https://github.com/makerbase-mks/CANable-MKS