-
Notifications
You must be signed in to change notification settings - Fork 2.1k
pic32-wifire: add support for flashing with pic32prog #9259
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
d852ca2
pic32prog: add pic32prog programming tool
cladmi afdddfd
pic32prog.inc.mk: add support for pic32prog flasher
cladmi 773419e
pic32-wifire: add serial configuration
cladmi 4eeda21
pic32-wifire: add flasher using pic32prog
cladmi be4569e
pic32prog.inc.mk: add udev rule for pic32 programmer
cladmi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| pic32prog | ||
| bin/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| PKG_NAME = pic32prog | ||
| PKG_URL = https://github.com/sergev/pic32prog | ||
| PKG_VERSION = b9f8db3b352804392b02b42475fc42874ac8bf04 | ||
| PKG_LICENSE = GPL-2 | ||
| PKG_BUILDDIR = bin | ||
|
|
||
| # Building it requires some dependencies, on ubuntu: | ||
| # | ||
| # sudo apt-get install libusb-dev libusb-1.0-0-dev libudev-dev | ||
|
|
||
| all: git-download | ||
| @echo "[INFO] compiling pic32prog from source now" | ||
| @env -i PATH=$(PATH) TERM=$(TERM) make -C $(PKG_BUILDDIR) | ||
| @mv $(PKG_BUILDDIR)/pic32prog pic32prog | ||
|
|
||
| distclean:: | ||
| @rm -f pic32prog | ||
|
|
||
| include $(RIOTBASE)/pkg/pkg.mk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| # pic32prog flasher | ||
| # ================= | ||
| # | ||
| # https://github.com/sergev/pic32prog | ||
| # | ||
| # Allow flashing pic32 boards using: | ||
| # * Microchip PICkit2 | ||
| # * Microchip PICkit3 with script firmware | ||
| # | ||
| # | ||
| # PICkit-3 | ||
| # -------- | ||
| # | ||
| # This requires changing the firmware to 'scripting mode' | ||
| # Should be done from a Windows computer/virtual machine as described here | ||
| # | ||
| # https://github.com/RIOT-OS/RIOT/blob/master/dist/tools/pic32prog/doc.md | ||
| # | ||
| # | ||
| # Udev rule | ||
| # --------- | ||
| # | ||
| # Add yourself to the `plugdev` group, add the following `udev` rule to | ||
| # `/etc/udev/rules.d/26-microchip.rules` and reboot. | ||
| # | ||
| # ``` | ||
| # # Adapted from http://en.microstickplus.com/mplabx-on-linux | ||
| # ATTR{idVendor}=="04d8", MODE="664", GROUP="plugdev" | ||
| # ``` | ||
|
|
||
| RIOT_PIC32PROG = $(RIOTTOOLS)/pic32prog/pic32prog | ||
| PIC32PROG ?= $(RIOT_PIC32PROG) | ||
|
|
||
| FLASHFILE ?= $(HEXFILE) | ||
|
|
||
| FLASHER ?= $(PIC32PROG) | ||
| FFLAGS ?= $(FLASHFILE) | ||
|
|
||
| # No reset command, but the board resets on terminal open | ||
| RESET ?= | ||
| RESET_FLAGS ?= | ||
|
|
||
| # Compile pic32prog if using the one provided in RIOT | ||
| ifeq ($(PIC32PROG),$(RIOT_PIC32PROG)) | ||
| FLASHDEPS += $(RIOT_PIC32PROG) | ||
| endif | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Maybe add a reference to your tutorial somewhere in here instead?
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.
I did not put a reference here as the documentation was not merged. But I could wait for the documentation and update this.