-
Notifications
You must be signed in to change notification settings - Fork 93
User button doesn't work #14
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
Comments
I am also confused by whether the single button on the 52840 USB dongle is actually a user programmable button, or if it is purely reset/bootloader button. I haven't been able to get the button working. I hope @caizelin can respond! |
Hi, Pls check if you have undefined the marco CONFIG_GPIO_AS_PINRESET in your application's makefile. If you want to restore the default settings, you can erase the pselreset by flashing this example: https://github.com/makerdiary/nrf52840-mdk-usb-dongle/tree/master/examples/nrf5-sdk/pselreset_erase |
That did the trick! Thank you! Is there a reason why the MDK52840 USB dongle version of the MDK has its examples based on the 15.0 version of the SDK, while the regular MDK52840 has it based on the 15.2 version? Is there a plan to update the MDKs so they use the latest 16.0 version of the Nordic SDK? |
@aeozyalcin Yes. These boards should all work with 16.0, and we will update the wiki as soon as possible. |
Hi,
I also flashed the firmware you gave a link above, just in case. And then flashed my program from the topic. However, still no success. Could you give me a workable example of the user button applying |
@ananasn hi. i found that the default button definition didn't work for me when i tried to run
@caizelin is there a reason the button definition in the repo is not P0.18? |
You can try this example to test the button: https://wiki.makerdiary.com/nrf52840-mdk-usb-dongle/guides/ncs/samples/button/ |
I've struggled to get the user button on the dongle to work for the last few days. Still no success. I took the blinky example and modify it a little bit with gpio calls. Looks like the statement nrf_gpio_pin_read(BUTTON_1) in the code always equals 1 regardless I push the button or not. What am I doing wrong?
The text was updated successfully, but these errors were encountered: