PIC24FJ64GA004 ISP-ext.VDD PROBLEM [cursing]

Topics related to the Dataman 48Pro+
Guest
Posts: 723
Joined: 09 Nov 2011 17:16

PIC24FJ64GA004 ISP-ext.VDD PROBLEM [cursing]

Postby Guest » 10 Nov 2011 16:29

Dear all

i have same problem for reading the HEX file on the PIC in object.
I made the connection in ISP mode see the diagram 1 on the "ISP conenction detail" for my device into the PG4UW v2.66 software (Regulator Enabled Disvreg tied to VSS pin & ISP-ext VDD).

The program always returns me an error 0030 and I can not even read the code resident in the PIC.

Someone has the same problem?

HW connection is OK I think the source of instability is the PIC configuration file that loads the Dataman.
Anyone have a solution??

Thanks

iuz1975

Dataman (Neil Parker)
Posts: 931
Joined: 10 Nov 2011 09:51

Re: PIC24FJ64GA004 ISP-ext.VDD PROBLEM [cursing]

Postby Dataman (Neil Parker) » 01 Mar 2013 13:00

Hello iuz1975,

We provide the following information about working with this device in our software:

General Info:
Before starts any action with device (in target system) make sure, the ISP cable is correctly connected to the target system and to the ISP programmer. Also make sure no device is inserted to ZIF socket on programmer. We strongly recommend you to read Microchip's In-Circuit Serial Programming (ICSP) Guide (http://www.microchip.com, Search for "ICSP guide") before you start using ISP programming.


Address assignment between device and program buffer is described in following tables (example for devices PIC24HJGP506, dsPIC33FJ64GP202). All addresses are hexadecimal numbers.

User program Memory: (24 bit data in device, 8 bit data in buffer)
-------------------------------------------------------------------
Device address Buffer address Not used buffer addresses
-------------------------------------------------------------------
000000 00000 00001 00002 00003
000002 00004 00005 00006 00007
000004 00008 00009 0000A 0000B
000006 0000C 0000D 0000E 0000F
000008 00010 00011 00012 00013
...
00ABFC 157F8 157F9 157FA 157FB
00ABFE 157FC 157FD 157FE 157FF
-------------------------------------------------------------------

At each device address is located 24-bit word.
At each buffer address is located 8-bit word.
Assigment between device Word24 and byte-organised buffer in control program is:

Device word <-> Buffer bytes
---------------------------------------------
MSB LSB MSB LSB
Word24[bit23..bit0] => Byte2:Byte1:Byte0
---------------------------------------------

For each 24-bit device word three bytes from buffer are used.
Every the 4th byte from buffer is "dummy" and it is not used (no matter what data it contains).

MSB - the Most Significant (the highest) bit in the word
LSB - the Least Significant (the lowest) bit in the word

WARNING:
You have selected Internal MCLR and Internal Oscillator in your configuration settings. If your code makes use of port pins that correspond to Clock and Data pins in programming mode, you may not be able to reprogram your device.

When Internal MCLR is used for programming, both Vpp and Vdd are powered together, and then Vpp is pulled high to Vihh to enter programming mode. This means that your code will be running before Vpp goes to Vihh. If that code makes use of port pins that correspond to Clock and Data pins in programming mode, there is a chance their values may not be 0, as necessary to enter programming mode. Therefore, the device could not be reprogrammed.

If Code Protect is ON, then PICmicro checksum is forced to 0000h, according to Microchips requirements.

I hope this helps.

Best regards,

Neil Parker
Dataman Programmers


Return to “Dataman 48Pro+”

Who is online

Users browsing this forum: Ahrefs [Bot] and 6 guests