Electronics > Projects, Designs, and Technical Stuff
SOLVED: dsPIC33.... Initial Programming
(1/2) > >>
NivagSwerdna:
So I populated my dsPIC33EV256GM006 board and attached a PICKit3 and found it could not read the device ID...

My PGC and PGD are connected to PGEC2 and PGED2 respectively.

I had naively considered that the device would be clever enough to spot PGC and PGD on any of PGEC1,2,3 or PGED1,2,3?

Do I need to program FICD ICD Channel bits before PGEC2,D2 will be functional?  Is the default well known?
voltsandjolts:
With a blank device the defaults are PGEC1 PGED1 - thereafter selectable in configuration bits that are loaded from top of program FLASH.
jaromir:
For programming, all PGEC/PGED pairs are always active.
For debugging, only pair selected by config bits is active.
NivagSwerdna:
I was doubting myself... but kept at it and found my problem was a poor connection on VCAP.

Connecting to MPLAB PICkit 3...

Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.07
Firmware type..............dsPIC33E/24E

Programmer to target power is enabled - VDD = 5.000000 volts.
Target device dsPIC33EV256GM006 found.
Device Revision ID = 4006

That's a relief.

ICD Channel bits can then be programmed.

My limited understanding is that for debugging you might have to change the defaults to be correct but for programming you can get away with it which was my assumption.... and happily it works.
JPortici:
Was already confirmed by others but yeah, program on any pair, debug only on the selected pair.
But don't be a fool and rely on assumptions, read the datasheet and spare yourself some problems..
Navigation
Message Index
Next page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod