Thank you for your help. I managed to add the board package manually, and wrote all steps for myself in a git repo: GitHub - rick3rt/framework-arduino-avr-lgt8f: framework-arduino-avr-lgt8f for WAVGAT board development in PlatformIO .
From the topic you linked I understand that you can automate the installation with the framework-package
configuration in the ini. However, if I create the following ini, this does not work:
[env:wavgatnano]
platform = atmelavr
board = wavgatnano
framework = arduino
framework-package = framework-arduino-avr-lgt8f @ https://github.com/rick3rt/framework-arduino-avr-lgt8f.git
upload_protocol = arduino
If I build a simple blink example, I get the folliwing error:
> Executing task: C:\Users\myusername\.platformio\penv\Scripts\platformio.exe run <
Processing nanowavgat (platform: atmelavr; board: wavgatnano; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error: Traceback (most recent call last):
File "c:\users\myusername\.platformio\penv\lib\site-packages\platformio\__main__.py", line 102, in main
cli() # pylint: disable=no-value-for-parameter
File "c:\users\myusername\.platformio\penv\lib\site-packages\click\core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "c:\users\myusername\.platformio\penv\lib\site-packages\click\core.py", line 717, in main
rv = self.invoke(ctx)
File "c:\users\myusername\.platformio\penv\lib\site-packages\platformio\commands\__init__.py", line 44, in invoke
return super(PlatformioCLI, self).invoke(ctx)
File "c:\users\myusername\.platformio\penv\lib\site-packages\click\core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\myusername\.platformio\penv\lib\site-packages\click\core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\myusername\.platformio\penv\lib\site-packages\click\core.py", line 555, in invoke
return callback(*args, **kwargs)
File "c:\users\myusername\.platformio\penv\lib\site-packages\click\decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "c:\users\myusername\.platformio\penv\lib\site-packages\platformio\commands\run\command.py", line 128, in cli
process_env(
File "c:\users\myusername\.platformio\penv\lib\site-packages\platformio\commands\run\command.py", line 170, in process_env
result = {"env": name, "duration": time(), "succeeded": ep.process()}
File "c:\users\myusername\.platformio\penv\lib\site-packages\platformio\commands\run\processor.py", line 81, in process
result = p.run(build_vars, build_targets, self.silent, self.verbose, self.jobs)
File "c:\users\myusername\.platformio\penv\lib\site-packages\platformio\managers\platform.py", line 398, in run
self.configure_default_packages(options, targets)
File "C:\Users\myusername\.platformio\platforms\atmelavr\platform.py", line 39, in configure_default_packages
self.packages[framework_package]["optional"] = False
KeyError: 'framework-arduino-avr-lgt8f'
============================================================
An unexpected error occurred. Further steps:
* Verify that you have the latest version of PlatformIO using
`pip install -U platformio` command
* Try to find answer in FAQ Troubleshooting section
https://docs.platformio.org/page/faq.html
* Report this problem to the developers
https://github.com/platformio/platformio-core/issues
============================================================
The terminal process terminated with exit code: 1
Terminal will be reused by tasks, press any key to close it.
But if I manually add the package name to .platformio\platforms\atmelavr\platform.json
it will auto clone from git and work.
"packages": {
"framework-arduino-avr": {
"type": "framework",
"optional": true,
"version": "~5.0.0"
},
"framework-arduino-avr-lgt8f": {
"type": "framework",
"optional": true,
"version": "1.0.0"
}
}
Is this intentional?