Programming 16F1827 on EB006 multiprogrammer board

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Programming 16F1827 on EB006 multiprogrammer board

Post by medelec35 »

PPP don't want to program these devices. 1st message is about pic micro not erased, this is usually 1st tell tale sign that programming is going fail. Keep getting error
Programming failed: <config2>
The only difference between this and other devices, is microchip decided in their ultimate wisdom to have max Vpp of these devices at 9V. Maybe it will work if put a 270R resistor in series with psu for programming only?
Not sure is that will cause programming to about due to low voltage detected?
Any ideas please?
Martin

User avatar
Steve
Matrix Staff
Posts: 3418
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Post by Steve »

We're working on an update to PPP that allows programming of a load more chips. I think we've got this one working, but we're currently struggling with the 16F727. Ben may be able to post a temporary solution for the 16F1827 though.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Post by Benj »

Hello,

Yes I have got this device working with PPP and the EB006. If you extract the contents of the attached file into your "Flowcode v4/tools/ppp" directory then programming from Flowcode should then work correctly.
PPP.zip
(89.57 KiB) Downloaded 421 times
Let me know how you get on.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Post by medelec35 »

Thanks for updated ppp files. Unfortunately still unable to program chip. If I click on Autodetect still says Could not ID the onboard chip.
Martin

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Post by Benj »

Hi Medelec,

Hm thats odd. Right I have now packaged up all the PPP files into a zip. My copy here is autodetecting the 16F1827 correctly so hopefully we can get yours to do that too.
PPP.zip
(1.19 MiB) Downloaded 427 times
There may be two copies of PPP on your machine.

1) Used by Flowcode 4 is in the "Flowcode v4/Tools/PPP" folder

2) Referenced from the start menu is in the "matrix multimedia/common/PPPv3" folder

You shoul dbe ok to update the files in both folders with the files from the attachment, you may want to make backups of your files first just incase I have broken anything.

Let me know how you get on.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Post by medelec35 »

Thanks Ben and Steve.
Chip auto detects OK, but still fails to program.

Code: Select all

Launching the compiler...

C:\Program Files (x86)\HI-TECH Software\PICC\9.80\Free Version\bin\picc.exe --CHIP=16F1827 -N48 HRV1AWDTON16F1827V4_ICD.c



..........

Return code = 0



Launching the linker/assembler...

C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\Tools\DoNothing\DoNothing.exe 



Return code = 0



Launching the programmer...

C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\Tools\PPP\PPPv3.exe -cs 2 -chip PIC16F1827 -nogui "HRV1AWDTON16F1827V4_ICD.hex"

Sending program...

Erasing the PICmicro

NOTE: EEPROM data will also be erased!

Writing program memory



...................................................................



Writing configuration memory

Programming failed: <config2>

That took 20.529 seconds



Return code = 0



FINISHED
I also done a silly thing,so anyone reading this:
Warning "Please don't do this at home :P"
Do not accidentally wire 13V psu to the 5V (+v) otherwise you will require a new programmer like I do right now!
In my defence, I was stressed with other things at the the time.
On the bright side, I do have a spare EB006, but like to keep Two. (one at work and one at home).
@Matrix Multimedia, do you offer a repair service, of have I got to buy a new one?
Martin

User avatar
Steve
Matrix Staff
Posts: 3418
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Post by Steve »

medelec35 wrote:I also done a silly thing,so anyone reading this:
Warning "Please don't do this at home :P"
Do not accidentally wire 13V psu to the 5V (+v) otherwise you will require a new programmer like I do right now!
In my defence, I was stressed with other things at the the time.
On the bright side, I do have a spare EB006, but like to keep Two. (one at work and one at home).
@Matrix Multimedia, do you offer a repair service, of have I got to buy a new one?
I can offer a better service for you - I'll send you a new one free-of-charge! Treat this as a "thank you" for the massive contribution you make to this forum. I think we're due to send you a dsPIC/PIC24 programming E-block sometime next week, so I'll put one in there too.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Post by medelec35 »

Steve wrote:I can offer a better service for you - I'll send you a new one free-of-charge! Treat this as a "thank you" for the massive contribution you make to this forum. I think we're due to send you a dsPIC/PIC24 programming E-block sometime next week, so I'll put one in there too.
Wow!! 8) , Thats brillant!. Thank you for making my day!
Martin

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Post by Benj »

Sounds like something I would do :mrgreen:

I spent 2 days making an AVR board at home and then in about 2 minutes of using it I had disabled the SPI configuration on the AVR device making the board non reprogrammable and effectivly useless. Doh. Good news is I won't be doing that again in a hurry :lol:

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Post by medelec35 »

16F1827 appears to be getting more popular.
Is there any progress on a fix for programming these devices with PPP please?
Martin

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Post by medelec35 »

Sorry Ben.
It does program chip OK.
I thought as it said

Code: Select all

Writing program memory
Writing configuration memory
Programming failed: <config2>
But I was wrong.
Martin

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Post by Benj »

Hi Martin,

No problems :mrgreen: .

To confirm, are you saying:

A) you get the config failed message when you try to program but it works or
B) you thought you saw the error but then next time it was ok or
C) you get the error and the config is not being programmed correctly

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Post by medelec35 »

A)
I program chip, get the warning message every time, but program is sent to chip OK and chip works as expected.
Ah I can see why you are asking, I left a few words off at the end.

Should of read:
Sorry Ben.
It does program chip OK.

I thought as it said
Writing program memory
Writing configuration memory
Programming failed: <config2>
It would not have sent program to chip......
But I was wrong.
I did not test chip after..I should of done really.
Martin

Sean Danaher
Posts: 13
Joined: Thu Oct 15, 2009 9:16 am
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Post by Sean Danaher »

Hi
I do not have an EB006 board but a more vintage V2.1 board run from a parallel port. (well actually I have about 30 of these so hope I can get things to run).
I am using PPPV3
I have downloaded various patches for the 16F1827 and the programmer sees the 1827 fine under autodetect.
The read PIC code option also seems to work as the pic returns sensible values mainly 3FFF for all the program eeprom
However erase pic fails (it tries 10 times to do this) as does write/program.

I am aware the programmers are now long in the tooth but wonder if anyone has any ideas.
Many thanks for looking.

Sean

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Post by Benj »


Post Reply