Skip to content
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

[Question] What is needed to add support to new boards/mcu/frameworks ? #128

Open
chepo92 opened this issue Nov 13, 2020 · 5 comments
Open
Labels

Comments

@chepo92
Copy link

chepo92 commented Nov 13, 2020

In general, what is needed to add support to new boards/mcu/frameworks ?
So far I've read and see in PR's

Any guideline? I want to work in adding support to SAM4 (and maybe others mcu) but i'm needing some docs

@valeros
Copy link
Member

valeros commented Nov 13, 2020

Hi @chepo92 ! Adding a new MCU is pretty much the same as adding a new board as long as the CPU is ARM-based. The main question is what framework/SDK you plan to use with that MCU?

@chepo92
Copy link
Author

chepo92 commented Nov 13, 2020

thanks @valeros
So I also need (a supported / to port) a framework for that MCU, right? I'm about to try #81, as CMSIS should support SAM4 (correct me if wrong)

My plans are first to have a different IDE (from atmel studio/eclipse) to program SAM4 boards and then to add support in Marlin firmware to SAM4 (Duet boards), I think i would need to write a HAL for that

Any advice would be welcome

@valeros
Copy link
Member

valeros commented Nov 13, 2020

So I also need (a supported / to port) a framework for that MCU, right? I'm about to try #81, as CMSIS should support SAM4 (correct me if wrong)

Well, not necessarily, you can still write some application without any HAL, but with a framework it's significantly easier. As for CMSIS build script, it requires some new re-examination to bring it back to life since a lot has changed since that PR.

@chepo92
Copy link
Author

chepo92 commented Sep 3, 2023

Hi @valeros, i'm reviving this, with more time and budget :D, I pretend to enable the use with Zephyr framework I know it supports the chip (https://docs.zephyrproject.org/latest/boards/arm/sam4e_xpro/doc/index.html), and then with Arduino framework, what are the next steps I should follow? I have started reading some PR that add new boards

@valeros
Copy link
Member

valeros commented Sep 4, 2023

Hi @chepo92, you can take a look at some board manifest that already supports those two frameworks (e.g. https://github.com/platformio/platform-atmelsam/blob/develop/boards/zero.json). AFAIK, there are no Arduino cores that support SAM4, so you're on your own here. As for Zephyr, please note that the latest supported by PlatformIO is 2.7.1, not sure if your target board was available in that release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants