Hello.
How can i program a PIC32MX.
I've tried to program the controller (using latest JLINK v7.94g), but i always get a error message: "Writing target memory failed."
Is it even possible to program a pic32mx with the segger jlink, or can you just delete it?
Here the commands:
C:JLink.exe -device PIC32MX -if ICSP -speed 1000 -autoconnect 1 -CommanderScript pic32S.jlink
The sript file is:
The output is:
###########################################################
J-Link Command File read successfully.
Processing script file...
J-Link>ERASE
J-Link connection not established yet but required for command.
Connecting to J-Link via USB...O.K.
Firmware: J-Link Pro V4 compiled Sep 22 2022 15:00:37
Hardware version: V4.00
J-Link uptime (since boot): N/A (Not supported by this model)
S/N: 17???????
License(s): RDI, FlashBP, FlashDL, JFlash, GDB
IP-Addr: DHCP (no addr. received yet)
VTref=3.324V
Target connection not established yet but required for command.
Device "PIC32MX" selected.
Connecting to target via ICSP
TotalIRLen = 5, IRPrint = 0x01
JTAG chain detection found 1 devices:
#0 Id: 0x26A00053, IRLen: 05, Microchip MTAP
Found PIC32 device with MIPS M4K core.
CPU supports 6 code & 2 data breakpoints
Memory zones:
Zone: "Default" Description: Default access mode
MIPS M4K identified.
No address range specified, 'Erase Chip' will be executed
'erase': Performing implicit reset & halt of MCU.
PIC32 (2-wire-JTAG): Connection lost after reset. Entering ICSP mode to regain control over device.
Erasing device...
Erasing done.
J-Link>LoadFile D:\SEGGER\Software\BPS191.hex
'loadfile': Performing implicit reset & halt of MCU.
PIC32 (2-wire-JTAG): Connection lost after reset. Entering ICSP mode to regain control over device.
Downloading file [D:\SEGGER\Software\BPS191.hex]...
Writing target memory failed.
J-Link>EXIT
Script processing completed.
############################################
How can i program a PIC32MX.
I've tried to program the controller (using latest JLINK v7.94g), but i always get a error message: "Writing target memory failed."
Is it even possible to program a pic32mx with the segger jlink, or can you just delete it?
Here the commands:
C:JLink.exe -device PIC32MX -if ICSP -speed 1000 -autoconnect 1 -CommanderScript pic32S.jlink
The sript file is:
The output is:
###########################################################
J-Link Command File read successfully.
Processing script file...
J-Link>ERASE
J-Link connection not established yet but required for command.
Connecting to J-Link via USB...O.K.
Firmware: J-Link Pro V4 compiled Sep 22 2022 15:00:37
Hardware version: V4.00
J-Link uptime (since boot): N/A (Not supported by this model)
S/N: 17???????
License(s): RDI, FlashBP, FlashDL, JFlash, GDB
IP-Addr: DHCP (no addr. received yet)
VTref=3.324V
Target connection not established yet but required for command.
Device "PIC32MX" selected.
Connecting to target via ICSP
TotalIRLen = 5, IRPrint = 0x01
JTAG chain detection found 1 devices:
#0 Id: 0x26A00053, IRLen: 05, Microchip MTAP
Found PIC32 device with MIPS M4K core.
CPU supports 6 code & 2 data breakpoints
Memory zones:
Zone: "Default" Description: Default access mode
MIPS M4K identified.
No address range specified, 'Erase Chip' will be executed
'erase': Performing implicit reset & halt of MCU.
PIC32 (2-wire-JTAG): Connection lost after reset. Entering ICSP mode to regain control over device.
Erasing device...
Erasing done.
J-Link>LoadFile D:\SEGGER\Software\BPS191.hex
'loadfile': Performing implicit reset & halt of MCU.
PIC32 (2-wire-JTAG): Connection lost after reset. Entering ICSP mode to regain control over device.
Downloading file [D:\SEGGER\Software\BPS191.hex]...
Writing target memory failed.
J-Link>EXIT
Script processing completed.
############################################
The post was edited 2 times, last by Forster ().