Page 1 of 1

where is variant_config.json??

Posted: Wed Jul 27, 2022 1:33 pm
by ahsanu
recently i started learn stm32f407vgt6 with arduino core, then i want to try make my own variant, i have read this on manual https://github.com/stm32duino/wiki/wiki ... 28board%29, but on generated variant files section, i don't know how to generate this file, then.
based from this repo https://github.com/RickKimball/vendor, i can generate use python script called
genpinmap_arduino.py
like explained in https://github.com/stm32duino/wiki/wiki/genpinmap, but after searching on google i found that script has change to
stm32variant.py
on https://github.com/stm32duino/Arduino_C ... /CI/update.
then after try to run that script i got this result
Platform is Windows

Cube Mx seems not to be installed or not at the specified location.

Please check the value set for 'CUBEMX_DIRECTORY' in 'variant_config.json' file.
so where i can place
variant_config.json
or how i can use the new script
stm32variant.py
??

thanks for any help

Re: where is variant_config.json??

Posted: Wed Jul 27, 2022 3:19 pm
by fpiSTM
You don 't need ro generate generic files. They are already generated. Look in variant folders.

Re: where is variant_config.json??

Posted: Sat Jul 30, 2022 9:59 am
by ahsanu
i got it, iam newbie sorry for stupid question.
thanks :D

Re: where is variant_config.json??

Posted: Sat Jul 30, 2022 3:11 pm
by fpiSTM
Welcome.
Not a stupid question when we do not know the answer ;)