-
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?
******** | ||
|
||
The Makerbase MKS CANable V2.0 board features an ARM Cortex-M4 based STM32G431C8 MCU | ||
with a wide range of connectivity support and configurations. |
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.
A range of? Not on this board, so I think that can be removed from the board description.
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.
MCU supports a range of...
. But in terms of board I agree and will update
The stm32g431c8 mcu is the core of MKS CANable V2.0 board and it has 6 GPIO controllers. | ||
These controllers are responsible for pin muxing, input/output, pull-up, etc. |
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 not that important for the board configuration and could be removed.
- rng | ||
- counter |
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.
Have you ran the tests for these?
- pinctrl | ||
- usb_device | ||
- usbd | ||
- watchdog |
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.
Same here?
CONFIG_GPIO=y | ||
CONFIG_ARM_MPU=y | ||
CONFIG_HW_STACK_PROTECTION=y | ||
CONFIG_ENTROPY_GENERATOR=y |
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.
Why is CONFIG_ENTROPY_GENERATOR
enabled?
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.
+-----------+------------+-------------------------------------+ | ||
| GPIO | on-chip | gpio | | ||
+-----------+------------+-------------------------------------+ | ||
| PWM | on-chip | pwm | |
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.
Where is PWM used on this 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.
Planned to use it for PWM LED since i see LEDs on th board as way to bright. But for the current PR it may be removed - agree.
Add Makerbase Co., Ltd. board vendor Signed-off-by: Alexander Kozhinov <[email protected]>
A cheap and affordable stm32g4 based simple CAN and CAN-FD to usb adapter board Reviewed-by: Erwan Gouriou <[email protected]> Signed-off-by: Alexander Kozhinov <[email protected]>
cc505eb
to
9fae0cb
Compare
.. _boards-makerbase: | ||
|
||
Makerbase | ||
################## |
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.
################## | |
######### |
toolchain: | ||
- zephyr | ||
- gnuarmemb | ||
- xtools |
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.
- xtools |
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