View Single Post
Old 03-07-2015, 02:17 PM   #1752 (permalink)
thingstodo
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 749
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by thingstodo View Post
I think I had the 'erase before programming' checkbox checked .. but I'll do the explicit erase, then reprogram. That's step 1.

I'll report back tomorrow.
Step 1

The log file is below copied from MPLAB IPE v2.30

My comments begin with //

************************************************** ***

Connecting to MPLAB PICkit 3...
Firmware Suite Version.....01.32.09 *
Firmware type..............dsPIC30F

Target voltage detected
Target device dsPIC30F4011 found.
Device ID Revision = 1004

// press the button labeled Blank Check

2015-03-07T12:28:29-0600- Blank checking...

Blank Checking...
program memory
Address: 0 Expected Value: ffffff Received Value: 40100
Blank check complete, device is not blank.
2015-03-07T12:28:31-0600- Blank check failed

// so there IS something programmed in the dsPIC
// so erase it and start again - press Erase button

2015-03-07T12:28:41-0600- Erasing...

Erasing...
Erase successful
2015-03-07T12:28:43-0600- Erase device complete

// load in ACControllerProject.hex file

2015-03-07T12:29:37-0600- Loading hex file. Please wait...
Loading code from C:\Users\lulcm\Downloads\ACControllerProject.hex.. .
2015-03-07T12:29:38-0600- Hex file loaded successfully.

// Press Program button

2015-03-07T12:29:44-0600- Programming...

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x2fff
configuration memory

Device Erased...

// I thought I had that erase before programming box checked ..

Programming...
Programming/Verify complete
2015-03-07T12:29:54-0600- Programming complete
Pass Count: 1

// looks like it worked. Verify it.

2015-03-07T12:32:26-0600- Verifying...

Verifying...
User Id Memory
Address: 8005c2 Expected Value: ffff Received Value: ffffff
Verify failed
2015-03-07T12:32:41-0600- Verify failed

// OK - the program does not verify after the program/verify ran .. ?
// Erase again, repeat the process

2015-03-07T12:33:04-0600- Erasing...

Erasing...
Erase successful
2015-03-07T12:33:08-0600- Erase device complete

// This time we blank check before programming using the Blank Check button
2015-03-07T12:33:58-0600- Blank checking...

Blank Checking...
Blank check complete, device is blank.
2015-03-07T12:34:06-0600- Device is blank

// Excellent - it's blank
// Now program it

2015-03-07T12:34:48-0600- Programming...

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x2fff
configuration memory

Device Erased...
// Oh - should have removed the erase before programming box

Programming...
Programming/Verify complete
2015-03-07T12:34:57-0600- Programming complete
Pass Count: 2

// For the second time, programming/verify is complete and has passed
// and NOT failed

// Now to verify it

2015-03-07T12:36:11-0600- Verifying...

Verifying...
User Id Memory
Address: 8005c2 Expected Value: ffff Received Value: ffffff
Verify failed
2015-03-07T12:36:24-0600- Verify failed

************************************************** ***

Not sure if this value is important - not all parts of the chip were programmed.

Program memory appears to be 0x0 - 0x7FFF
Not sure what is at address 0x8005C2 but I'm hesitant to mess with the
PICkit 3 programming setup.

Serial cable 1 still gives me gibberish on the screen at 115K
and still echoes back everything at 9600 baud

Serial cable 2 does nothing. I suspect that I pulled out the pin for tx or rx
when I was soldering. I'll rebuild that with another 3 pin header

If that doesn't work - off to step 2. Install 8.83
  Reply With Quote
The Following User Says Thank You to thingstodo For This Useful Post:
MPaulHolmes (03-07-2015)