Skip to content

pickit4_mplab_jtag does not work with Xmega chips #2136

Description

@MCUdude

@MX682X have we ever tested the PICkit MPLAB implementation against Xmega chips using JTAG? I'm able to write to some memories, but not all. Tested with my PICkit, an ATxmega128a1 and ATxmega256a3bu.

$ ./test8 -r3 pickit4_mplab_jtag atxmega128a1
Target successfully erased
Reading 141886 bytes for multiple memories from input file bak-pickit4_mplab_jtag-atxmega128a1.hex
Writing 2048 bytes to eeprom
Writing | ################################################## | 100% 0.70 s 
Reading | ################################################## | 100% 0.32 s 
2048 bytes of eeprom verified
Writing 139264 bytes to flash
Writing | ################################################## | 100% 9.32 s 
Reading | ################################################## | 100% 6.35 s 
Warning: flash verification mismatch
  device 0xff != input 0x20 at addr 0x20000 (error)
Error: flash verification mismatch
Writing 131072 bytes to application
Writing | ################################################## | 100% 8.93 s 
Reading | ################################################## | 100% 5.97 s 
Warning: application verification mismatch
  device 0x00 != input 0xfb at addr 0x0000 (error)
Error: application verification mismatch
Writing 8192 bytes to apptable
Writing | ################################################## | 100% 0.56 s 
Reading | ################################################## | 100% 0.38 s 
8192 bytes of apptable verified
Writing 8192 bytes to boot
Writing | ################################################## | 100% 0.39 s 
Reading | ################################################## | 100% 0.37 s 
Warning: boot verification mismatch
  device 0xff != input 0x20 at addr 0x0000 (error)
Error: boot verification mismatch
Writing 6 bytes to fuses, 6 bytes written
Warning: fuses verification mismatch
  device 0x00 != input 0xff at addr 0x0003 (error)
Error: fuses verification mismatch
Writing 1 byte (0xFF) to fuse0, 1 byte written, 1 verified
Writing 1 byte (0x00) to fuse1, 1 byte written, 1 verified
Writing 1 byte (0xFF) to fuse2, 1 byte written, 1 verified
Writing 1 byte (0xFE) to fuse4, 1 byte written, 1 verified
Writing 1 byte (0xFF) to fuse5, 1 byte written, 1 verified
Writing 1 byte (0xFF) to lock, 1 byte written, 1 verified
Writing 512 bytes to usersig
Writing | ################################################## | 100% 0.04 s 
Reading | ################################################## | 100% 0.03 s 
Warning: usersig verification mismatch
  device 0x00 != input 0x40 at addr 0x0000 (error)
Error: usersig verification mismatch

Avrdude done.  Thank you.
test8: atxmega128a1 initialised

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions