Skip to content

Fixing device IDs in rppj #1

@inkblotter

Description

@inkblotter

Per errata pdfs the following changes are necessary to actually recognize the respective chips.
I notice that you have moved on to wider vistas with picberry.

diff --git a/rppj.c b/rppj.c
index e12a50c..133fcee 100644
--- a/rppj.c
+++ b/rppj.c
@@ -60,18 +60,18 @@ const struct picmicro pic18f44j50 = {0x4C60, "PIC18F44J50", 0x2000, {0xEF,0xFF
const struct picmicro pic18f45j50 = {0x4C80, "PIC18F45J50", 0x4000, {0xEF,0xFF,0xDF,0xFF,0xFF,0xF9,0xFF,0xF1} };
const struct picmicro pic18f46j50 = {0x4CA0, "PIC18F46J50", 0x8000, {0xEF,0xFF,0xDF,0xFF,0xFF,0xF9,0xFF,0xF1} };

-const struct picmicro pic18f26j13 = {0x5920, "PIC18F26J13", 0x8000, {0xFF,0xFC,0xFF,0xFF,0xFF,0xFF,0xBF,0xF3} };
-const struct picmicro pic18f46j13 = {0x59A0, "PIC18F46J13", 0x8000, {0xFF,0xFC,0xFF,0xFF,0xFF,0xFF,0xBF,0xF3} };
+const struct picmicro pic18f26j13 = {0x2C90, "PIC18F26J13", 0x8000, {0xFF,0xFC,0xFF,0xFF,0xFF,0xFF,0xBF,0xF3} };
+const struct picmicro pic18f46j13 = {0x2Cd0, "PIC18F46J13", 0x8000, {0xFF,0xFC,0xFF,0xFF,0xFF,0xFF,0xBF,0xF3} };

-const struct picmicro pic18f26j53 = {0x5820, "PIC18F26J53", 0x8000, {0xFF,0xFF,0xFF,0xFF,0xFF,0xFB,0xBF,0xFB} };
-const struct picmicro pic18f46j53 = {0x58A0, "PIC18F46J53", 0x8000, {0xFF,0xFF,0xFF,0xFF,0xFF,0xFB,0xBF,0xFB} };
+const struct picmicro pic18f26j53 = {0x2C10, "PIC18F26J53", 0x8000, {0xFF,0xFF,0xFF,0xFF,0xFF,0xFB,0xBF,0xFB} };
+const struct picmicro pic18f46j53 = {0x2C50, "PIC18F46J53", 0x8000, {0xFF,0xFF,0xFF,0xFF,0xFF,0xFB,0xBF,0xFB} };

//
-const struct picmicro pic18f27j13 = {0x5960, "PIC18F27J13", 0x10000, {0xFF,0xFC,0xFF,0xFF,0xFF,0xFF,0xFF,0xF3} };
-const struct picmicro pic18f47j13 = {0x59E0, "PIC18F47J13", 0x10000, {0xFF,0xFC,0xFF,0xFF,0xFF,0xFF,0xFF,0xF3} };
+const struct picmicro pic18f27j13 = {0x20D0, "PIC18F27J13", 0x10000, {0xFF,0xFC,0xFF,0xFF,0xFF,0xFF,0xFF,0xF3} };
+const struct picmicro pic18f47j13 = {02CF0, "PIC18F47J13", 0x10000, {0xFF,0xFC,0xFF,0xFF,0xFF,0xFF,0xFF,0xF3} };

-const struct picmicro pic18f27j53 = {0x5860, "PIC18F27J53", 0x10000, {0xFF,0xFF,0xFF,0xFF,0xFF,0xFB,0xFF,0xFB} };
-const struct picmicro pic18f47j53 = {0x58E0, "PIC18F47J53", 0x10000, {0xFF,0xFF,0xFF,0xFF,0xFF,0xFB,0xFF,0xFB} };
+const struct picmicro pic18f27j53 = {0x2C30, "PIC18F27J53", 0x10000, {0xFF,0xFF,0xFF,0xFF,0xFF,0xFB,0xFF,0xFB} };
+const struct picmicro pic18f47j53 = {0x2C70, "PIC18F47J53", 0x10000, {0xFF,0xFF,0xFF,0xFF,0xFF,0xFB,0xFF,0xFB} };

const struct picmicro *piclist[] = {&pic18f44j10, &pic18f45j10, &pic18f24j11, &pic18f25j11, &pic18f26j11, &pic18f44j11, &pic18f45j11, &pic18f46j11, &pic18f24j50, &pic18f25j50, &pic18f26j50, &pic18f44j50, &pic18f45j50, &pic18f46j50, &pic18f26j13, &pic18f46j13, &pic18f26j53, &pic18f46j53, &pic18f27j13, &pic18f47j13, &pic18f47j13, &pic18f47j53, NULL};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions