picberry icon indicating copy to clipboard operation
picberry copied to clipboard

Add dsPIC33CK support and RK3308 (Rock Pi S etc) host support

Open Grix opened this issue 1 year ago • 0 comments

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

Grix avatar Nov 19 '24 19:11 Grix