Add dsPIC33CK support and RK3308 (Rock Pi S etc) host support#26
Open
Grix wants to merge 15 commits intoWallaceIT:masterfrom
Open
Add dsPIC33CK support and RK3308 (Rock Pi S etc) host support#26Grix wants to merge 15 commits intoWallaceIT:masterfrom
Grix wants to merge 15 commits intoWallaceIT:masterfrom
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Modified to fit my needs of programming a dsPIC33CK series chip from a Rock S0.
Tested: dsPIC33CK32MP102 and dsPIC33CK64MC105 devices. Writing and reading flash, erase flash, blank check, dump config registers, device id, using Rock S0 host with default GPIO pins (GPIO2_C0 = PGC, GPIO2_B2 = PGD, GPIO2_A4 = MCLR).
Not tested: Customizing GPIO pins with command line parameters. GUI server stuff. Other microcontrollers of the dsPIC33CK series, but they should be the same as the two tested ones. Other host boards with the RK3308 SoC.
Of note: On one board, MCLR appeared to be pulled low as input by default, preventing the microcontroller from booting or flashing properly. Must set pull-up manually using this command with the default GPIO pin, but this is outside the scope of this pull request:
sudo memtool mw -l 0xff0000c0 0xffffa905