-
-
Notifications
You must be signed in to change notification settings - Fork 730
Added alternate ports 44,45 to make the SWCLK and SWDIO pins available #331
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
Conversation
when no debugger is being used. BTW. The presence of a debugger can be checked via: if (DSU->STATUSB.bit.DBGPRES) ...
@cmaglie @facchinm I hope my patch can be reviewed soon. I love to fix issues and bring enhancements, however my motivation goes to zero when it takes 9 month to review 5 lines. Lets collaborate and bring this forward. Warm regards from the sunny Hannover, Germany. |
Hi @helmut64, First, thank you for submitting this pull request! Is the intent to use the tiny header on the Arduino Zero board or is this for another board? Are you running out of pins that are broken out on the standard Arduino form factor headers? |
Hi Sandeep, this patch is indeed when you run out of pins on the Arduino Zero boards, certainly you need to attach cables to the pins. We developed also a own Arduino Zero board with LoRa and Debugger and Display Interface where we need this additional pins. Of course for our solution we check if the SWD pin is in use with a debugger and don't use it when busy. Here is our board: http://www.radioshuttle.de/en/longra-2/board/ It is a great benefit for our users that they can just specify Arduino Zero in the board manager. |
So for this scenario I would recommend you create your own core/variant, which depends on the official SAMD core: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5-3rd-party-Hardware-specification#referencing-another-core-variant-or-tool |
bords.txt will be overwritten after each update... and "own" core should be maintained/updated after arduino-core update... |
We designed the D21 Board to be compatible with the zero board, the patch applies to the regular Arduino Zero as well to our D21 board. We have done the Zero compatibility by purpose. I feel that the patch enabling the pins should be ok. |
On the original Arduino Zero, the pins I added are available to users on the header J100, this is a good reason to add them for users. |
Danke Cristian. |
Added alternate ports 44,45 to make the SWCLK and SWDIO pins available
when no debugger is being used.
BTW. The presence of a debugger can be checked via:
if (DSU->STATUSB.bit.DBGPRES) ...
@cmaglie it would be great if this patch can be reviewed and merged. Thank you for your help.