-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support for the Makerdiary nRF52840 MDK USB Dongle #45
Comments
Of course, yes (in potentially). In general, the Arduino variants file is simple pin to number mapping file. Fortunately, The configuration for the MDK USB dongle is available. These are needed things to support a new device. By the way, This repository fork from https://github.com/adafruit/Adafruit_nRF52_Arduino/ , and still tracking it. So, It may be a good way to request adafruit's project to support MDK dongle. (I just only added an openthread library and add a few modifications from original one.) |
Thank You for Your reply! |
It looks rather promising now. I have managed to build a new bootloader with Softdevice 140 7.0.1 and flashed it to the MDK Dongle. The example sketch "ot-udp-echo" builds and flashes succesfully on the board. And it works! :) |
While the radio and serial works, it is not possible to use the digital io pins. A blink sketch compiles and uploads fine, but the LED stays dark (while the serial output works). |
https://wiki.makerdiary.com/nrf52840-mdk-usb-dongle/hardware/nrf52840-mdk-usb-dongle-sch_v1_0.pdf At first glance, it seems that the pin-number and GPIO number are the same. It is no need to remap. If work it, apply the changing value to LED_BUILTIN that defined in "variant.h". |
I'm completely lost. I have flashed CircuitPython on the board (officially supported) with Softdevice 140 6.1.1 and everything works - LED's, I2C, DigitalIO. I looked at the pin definitions in CircuitPython and copied it over to the variants.h/cpp file. |
I'd verify this version can work blink example with pca10056. Could you paste a source of your modification? |
This definition makes LED pin is 11,12,13, I think. g_ADigitalPinMap used in digitalWrite, it is converting "printed pin-number" to "real GPIO pin-number".
11th in the table is 22. This board seems the printed pin-number is the same as the GPIO pin number. I think the table should be defined as ... https://wiki.makerdiary.com/nrf52840-mdk-usb-dongle/assets/images/nrf52840-mdk-usb-dongle-pinout.png (Padding unused pin values is mightbe a good idea. |
@soburi Thank You very much! |
@soburi |
@Brezensalzer It is useful for not only my openthread enabled arduino. (In actual, I maintain this project with mainly merge upstream updates only. It will keep world peace if you push to upstream project. :-) I wrote any I noticed to the PR review. |
Hello,
Thank You for this excellent package/library!
Would it be possible to add support for the nRF52840 MDK USB dongle?
I have looked at the variants.h files but don't know how the Arduino packages work.
Best regards
The text was updated successfully, but these errors were encountered: