-
Notifications
You must be signed in to change notification settings - Fork 290
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
add new board - nRF52840 MDK USB Dongle #6
Conversation
Signed-off-by: Yihui Xiong <[email protected]>
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @xiongyihui for this pull-request, and glad to hear that you're porting OpenSK to another board :) I left a few technical comments on the code.
However, our goal is to upstream as much as possible of the patches/
directory to Tock itself (we already have pull-requests in review - tock/tock#1556 & tock/tock#1467), so the best to move forward would be for you to send a pull-request to add support for the nRF52840 MDK directly in https://github.com/tock/tock. That way we can make sure that this board is properly supported by Tock.
Once that is merged on upstream Tock, we can update the git submodule in third_party/tock
to get support for it.
In the meantime, let's keep this pull-request open so that people can experiment with OpenSK on the nRF52840 MDK.
+/// Software reset using the ARM System Control Block | ||
+pub unsafe fn set_vector_table_offset(offset: u32) { | ||
+ SCB.vtor.set(offset); | ||
+} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will definitely need to be discussed upstream.
@gendx Thanks for the comments. I also think adding the board to tock is better, will try that. |
To experiment with OpenSK on the nRF52840 MDK USB Dongle with a builtin bootloader , some changes are required:
|
85c56e2
to
84ca214
Compare
I have applied the SCB.vtor as well as the linker script change for the original nordic nrf52840-dongle, because i wanted to install without Segger JLink, but with nRF Connect programmer. Thus I created a hex file, out of the elf file: Unfortunately it seems the device does not boot-up. What is the expected behaviour after boot-up? Should the device show up as a ttyUSB? |
I'd recommend discussing kernel support for more boards directly on Tock's repository (https://github.com/tock/tock) for greater visibility. That said, another way to check whether your flashing method works would be to:
Can you confirm that this works? That'd be helpful to know whether your issue is due to your flashing method (or your board), or specific to OpenSK.
When plugged on a Linux machine, the OpenSK key should show up in |
Closing this pull-request as I integrated all your changes as part of a bigger effort to support Thanks a lot @xiongyihui for having done the work of upstreaming the required change and thanks Denis for your work on prototyping flashing over DFU. This made #78 possible and clearly helped improving OpenSK! |
support a new nRF52840 board - nRF52840 MDK USB Dongle #3
The board has a builtin bootloader, so the start address of Tock OS is changed to
0x1000