-
Notifications
You must be signed in to change notification settings - Fork 26
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
Please add support for Nucleo-8S207K8 board #34
Comments
Hey, do you have the board to test? Sadly the board isn't supported by the underlying SDuino Arduino core implementation (for 8S200 series, only a S208MB board is supported), but SPL should still work. To test SPL support, please copy the project files from https://github.com/platformio/platform-ststm8/tree/develop/examples/spl-blink and
{
"build": {
"core": "sduino",
"extra_flags": "-DSTM8S_207K8 -DSTM8S207",
"f_cpu": "16000000L",
"cpu": "stm8",
"mcu": "stm8s207k8t6",
"variant": "mb208"
},
"frameworks": [
"arduino",
"spl"
],
"upload": {
"maximum_ram_size": 6144,
"maximum_size": 65536,
"protocol": "stlinkv2",
"protocols": [
"stlinkv2",
"serial"
]
},
"name": "NUCLEO-8S207K8",
"url": "https://www.st.com/en/evaluation-tools/nucleo-8s207k8.html",
"vendor": "STMicroelectronics"
}
[env:nucleo_8s207k8]
platform = ststm8
board = nucleo_8s207k8
framework = spl
upload_protocol = stlinkv2
upload_command = $PROJECT_PACKAGES_DIR/tool-stm8tools/stm8flash -p stm8s207k8 -c $UPLOAD_PROTOCOL -s flash -w $SOURCE
#define LED_GPIO_PORT (GPIOC)
#define LED_GPIO_PINS (GPIO_PIN_5) (since the green LD3 is connected there) Build should result in
And upload should trigger a
..which hopefully works. I don't have the hardware to test. |
:-) worked right out of the box. Thanks a lot! Will this be added to the list of boards now - though "only" with SPL support? If yes, would you please also consider adding the other Nucleo-8S207K8 board...? Thanks in advance! PS: or is the right way to clone the repo, add the changes and create a pull request...? |
Great to hear that it works (and the LED seem to be blinking yeah?).
But this is already the 82S207K8 board, I think you mean #33? Yep, shouldn't be hard to have basic SPL supoprt there to, again sadly no Arduino integration (yet). Though I might also look into that quickly, because all a variant is is one header file defining the Arduino pin mapping, standard pins and some info regarding timers. Thus maybe also a different variant works that has 32-pin package (?). Not sure about that and without hardware to test dangerous to test fully and PR, so I might just get one of these boards.
Exactly, I'd have to cleanup the board JSON file(s), modify some python code so that the |
Resolved in #38 |
please consider adding support for the Nucleo-8S207K8 development board by STM. Thanks a lot in advance!
https://www.st.com/en/evaluation-tools/nucleo-8s207k8.html
The text was updated successfully, but these errors were encountered: