Hi,
Done a bit more testing, I think I've got some buggy behaviour. (still waiting to find something stupid!)
With an EB006 and FC8 updated. I programmed an 18F1220 with a basic flash file to confirm the basic setup was working.
Chip: PIC18F1220 / EB006 J12,J13,J14: USB / Config: Oscillator - HS
mLoader: Chip Autodetects / sends
LED's flash as Expected. - All GOOD.
Change FC8 program to a 18F2580 and adjust the config settings to suit.
Chip: PIC18F2580 / EB006 J12,J13,J14: USB / Config: Oscillator - HS / Config: Extended CPU Instructions - Disabled
Chip Autodetects / MLoader reports;
Loading file...
File loaded from...
=> Flash_Test_Pic18F2580.hex
File sending...
File sent with 1 warnings:
1: Flash memory not verified - may be due to code protect
To check it was not a duff chip, I then used the MPLAB IPE & PICKIT3
Chip: PIC18F2580 / EB006 J12,J13,J14: ICD2
"Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.51.12
Firmware type..............PIC18F
Target voltage detected
Target device PIC18F2580 found.
Device ID Revision = 4
2018-07-21 11:22:48 +0100 - Programming...
Device Erased...
Programming...
The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x17f
configuration memory
Programming/Verify complete
2018-07-21 11:22:53 +0100 - Programming complete "
Remove PICKT3 to allow PIC to reboot.
LED's flash as Expected. - All GOOD
I've been through this a couple of times but it appears that mLoader is struggling to program the 18F2580 correctly.
Unless i've missed something.
Once the Chip has been loaded with the PICKIT3, mLoader does not throw the error (since the program on chip is correct), however any changes to the FC program and mLoader reverts to previous behaviour.
PP.S. I scoped the pins and the wave forms have good edges, no ringing, sharp transition.
Any feedback or further tests that can be suggested ??
Cheers, J.
EDIT: I mounted the SOIC PIC18F2580 on a adapter board and it fits the 28pin section of the EB006 fine. I did not have a DIP version.
EDIT: Side Issue --> The flash test also seems to produce the wrong Flash rate.. like the crystal freq is incorrect but its using the EB006 19.6 crystal..hmm. But using C code at the beginning to set " OSCCON = 0x76; " and use the internal 8Mhz oscillator, flash rate seems good.