-
Notifications
You must be signed in to change notification settings - Fork 110
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
Atmel Start Framework builder #84
base: develop
Are you sure you want to change the base?
Atmel Start Framework builder #84
Conversation
If you need custom options in platformio.ini for your framework, please use |
Atmel Start - is this a framework or configuration tool? |
Atmel Start is a configuration tool that generates code that uses Atmel's Advanced Software Framework - ASF4. However, the two are tightly coupled. I think of it as Atmel Start generating a custom framework per project. In order to break out ASF4 as an independent framework layer, it would have to include all possible hal/hpl/driver sources. Then the builder would have to select among them as appropriate for a particular board. This would essentially be replicating the work Atmel Start does when it generates the source package. |
How about to name it just |
…ning Also moved atstart file to be relative to project root.
Given the high degree of coupling, I don't see a problem with |
Also moved artifacts into build/env directory and renamed ".downloads" to "atmelstart_downloads"
Atmel Start puts examples and starter project files there that should not be built, like main.c, rtos_start.c, and sleep_manager_main.c.
Hi @frankleonrose, I do not know if there is still interest in this framework, however for the issue of zero clocks in the peripheral_clk_config.h there is a fix: Mivr/atmel-start@5e3b177 as it seems the external frequency should not be set (I will clean it a bit to remove the value before serialization, I have tested the change and it only affects the peripheral_clk_config in my test projects). |
As discussed in #33, here's my proposed Atmel Start builder.
Current issues (can be seen building examples/atmelstart-blink):
atstart_file
option. Is there a way to silence that warning?The packages downloaded are placed in ".pio/.downloads". Is there a better place to put the downloads folder? BUILD_CACHE_DIR? I'm thinking the downloads do NOT need to be removed on "clean", in which case maybe not the build cache. Is there a precedent for how to handle downloaded build artifacts?
The generated file peripheral_clk_config.h sets all clock frequencies to 0. This necessitates including
build_flags
as shown below. I plan to inject#pragma warning
statements into the peripheral_clk_config.h so that users of the framework are warned when they have not successfully overridden frequency values.