Skip to content
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-8S208RB board #33

Closed
gicking opened this issue Mar 6, 2021 · 1 comment · Fixed by #38
Closed

Please add support for Nucleo-8S208RB board #33

gicking opened this issue Mar 6, 2021 · 1 comment · Fixed by #38

Comments

@gicking
Copy link

gicking commented Mar 6, 2021

please consider adding support for the Nucleo-8S208RB development board by STM. Thanks a lot in advance!

https://www.st.com/en/evaluation-tools/nucleo-8s208rb.html

@maxgerhardt
Copy link
Contributor

maxgerhardt commented Mar 7, 2021

Hey, do you also have a board to test?

Please again execute the steps at #34 but with the modifications to
2. Create a new file nucleo_8s208rb.json in boards/
3. Fill it with the content

{
    "build": {
      "core": "sduino",
      "extra_flags": "-DSTM8S_208RB -DSTM8S208",
      "f_cpu": "16000000L",
      "cpu": "stm8",
      "mcu": "stm8s208rbt6",
      "variant": "mb208"
    }, 
    "frameworks": [
      "arduino",
      "spl"
    ],
    "upload": {
      "maximum_ram_size": 6144,
      "maximum_size": 131072,
      "protocol": "stlinkv2",
      "protocols": [
        "stlinkv2",
        "serial"
      ]
    },
    "name": "NUCLEO-8S208RB",
    "url": "https://www.st.com/en/evaluation-tools/nucleo-8s208rb.html",
    "vendor": "STMicroelectronics"
  }
  1. platformio.ini
[env:nucleo_8s208rb]
platform = ststm8
board = nucleo_8s208rb
framework = spl
; no upload_command needed, automatically derives -p stm8s208?b which is correct

(may also be added to the existing platformio.ini, but then make sure to use the project and environment switcher to get the right environment)

The rest is the same (e.g. regarding the LED on pin PC5). Try to compile and uplaod and see if that works :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants