Skip to content
This repository has been archived by the owner on Sep 29, 2019. It is now read-only.

IndexError: string index out of range #10

Open
D-Alex opened this issue Sep 5, 2017 · 0 comments
Open

IndexError: string index out of range #10

D-Alex opened this issue Sep 5, 2017 · 0 comments

Comments

@D-Alex
Copy link

D-Alex commented Sep 5, 2017

The error happens because the mcu.Name set by stm32cubemx is less than 14 characters:

project.ioc

...
Mcu.Name=STM32F030K6Tx
....

Error message on the console:

File "/usr/local/lib/python2.7/site-packages/cubemx2cmake/command_line.py", line 80, in _main
print(mcu_username[:9]+"x"+cube_config["mcu.name"][13])
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant