You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2020/05/06 19:42:20 UTC
[GitHub] [mynewt-newt] NilsMinor opened a new issue #399: Question on how to follow mynewt development process the right way.
NilsMinor opened a new issue #399:
URL: https://github.com/apache/mynewt-newt/issues/399
Hi,
I want to use Mynewt and nimble an a project using a custom created board powered by an NRF52832 chip. I have some questions in order to follow the your development process.
I started testing Mynewt by creating an example project for the nrf52 DK. The core and nimble repos are downloaded to my app. I have some questions on carry on.
- What is the correct way to create a bsp for my own board? I think I should copy an example bsp and change the values to fit my board (add pwm, set io's ...), correct?
- How to maintain my project? newt downloads the a specific version to my repo, should I apply changes to this repo? I normally fork projects form Github, crate my own branch and apply changes to it in order to update to latest master when required. But I do not really understand how to correctly develop code for newt/nimble.
Sorry for the nooby questions, I hope I did not miss anything in the documentations but I want to follow the development flow correctly.
Best regards,
Nils
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [mynewt-newt] NilsMinor commented on issue #399: Question on how to follow mynewt development process the right way.
Posted by GitBox <gi...@apache.org>.
NilsMinor commented on issue #399:
URL: https://github.com/apache/mynewt-newt/issues/399#issuecomment-625442865
Thanks @ccollins476ad this fixed my knowledge gap!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [mynewt-newt] ccollins476ad commented on issue #399: Question on how to follow mynewt development process the right way.
Posted by GitBox <gi...@apache.org>.
ccollins476ad commented on issue #399:
URL: https://github.com/apache/mynewt-newt/issues/399#issuecomment-624887989
> What is the correct way to create a bsp for my own board? I think I should copy an example bsp and change the values to fit my board (add pwm, set io's ...), correct?
You might find this helpful: http://mynewt.apache.org/latest/os/core_os/porting/port_bsp.html. Copying an existing BSP is also a reasonable way to go about doing this.
> How to maintain my project? newt downloads the a specific version to my repo, should I apply changes to this repo? I normally fork projects form Github, crate my own branch and apply changes to it in order to update to latest master when required. But I do not really understand how to correctly develop code for newt/nimble.
Creating a fork+branch is a good way to do it. Then modify your project.yml file so that it specifies your fork+branch. For example:
```
repository.apache-mynewt-nimble:
type: git
vers: '<branch-name>-commit'
url: "git@github.com:NilsMinor/mynewt-nimble.git"
```
When you run `newt upgrade`, newt will checkout the specified branch from your nimble fork.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org