-
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
Unable to compile for STM8AF52xx #55
Comments
I solved the flash target with setting for the define flag I went with the following: build_mcu = board_config.get("build.mcu")[:9].upper()
if build_mcu[5] == 'S':
build_mcu = build_mcu[:8]
else:
build_mcu += 'x'
command = [
env.subst("$CC"), "-m%s" % board_config.get("build.cpu"),
"-D%s" % build_mcu,
"-I.", "-I", "%s" % env.subst("$PROJECT_SRC_DIR"),
"-Wp-MM", "-E", "stm8s.h"
] |
techolga
added a commit
to techolga/platform-ststm8
that referenced
this issue
May 13, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I tried to get a custom Board running when I realized that I am not able to compile for targets with longer label than 8 characters.
platform-ststm8/builder/frameworks/spl.py
Line 46 in 00bed19
I tried to use
board_build.mcu = stm8af52ax
in platform.ini and the SPL needs to have STM8AF52Ax to be defined. There are several targets that have a different definition schema.A similar problem could appear with the arduino framework.
platform-ststm8/builder/frameworks/arduino.py
Line 72 in 00bed19
Also I found the stm8flash target to not fit
platform-ststm8/builder/main.py
Line 163 in 00bed19
correct target would be
stm8af52a?
according to https://github.com/vdudouyt/stm8flashThe text was updated successfully, but these errors were encountered: