Programming 16F1827 on EB006 multiprogrammer board

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

Moderators: Benj, Mods

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8617
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2480 times
Been thanked: 3566 times
Contact:

Programming 16F1827 on EB006 multiprogrammer board

Postby medelec35 » Mon Jan 31, 2011 8:40 pm

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

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

User avatar
Steve
Matrix Staff
Posts: 3111
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 89 times
Been thanked: 398 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Postby Steve » Tue Feb 01, 2011 8:40 am

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: 14677
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4660 times
Been thanked: 4287 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Postby Benj » Tue Feb 01, 2011 10:12 am

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 254 times


Let me know how you get on.

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8617
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2480 times
Been thanked: 3566 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Postby medelec35 » Tue Feb 01, 2011 12:04 pm

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

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

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

Re: Programming 16F1827 on EB006 multiprogrammer board

Postby Benj » Tue Feb 01, 2011 12:40 pm

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 259 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.

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8617
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2480 times
Been thanked: 3566 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Postby medelec35 » Tue Feb 01, 2011 10:06 pm

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

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

User avatar
Steve
Matrix Staff
Posts: 3111
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 89 times
Been thanked: 398 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Postby Steve » Wed Feb 02, 2011 1:59 pm

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.
These users thanked the author Steve for the post (total 2):
medelec35 (Wed Feb 02, 2011 2:37 pm) • Spanish_dude (Wed Feb 02, 2011 5:06 pm)
Rating: 10%
 

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8617
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2480 times
Been thanked: 3566 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Postby medelec35 » Wed Feb 02, 2011 2:18 pm

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

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

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

Re: Programming 16F1827 on EB006 multiprogrammer board

Postby Benj » Wed Feb 02, 2011 4:16 pm

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:

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8617
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2480 times
Been thanked: 3566 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Postby medelec35 » Wed Feb 23, 2011 12:59 pm

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

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8617
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2480 times
Been thanked: 3566 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Postby medelec35 » Wed Feb 23, 2011 3:49 pm

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

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

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

Re: Programming 16F1827 on EB006 multiprogrammer board

Postby Benj » Wed Feb 23, 2011 5:12 pm

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

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8617
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2480 times
Been thanked: 3566 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Postby medelec35 » Wed Feb 23, 2011 5:17 pm

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

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

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

Postby Sean Danaher » Mon Apr 04, 2011 4:22 pm

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: 14677
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4660 times
Been thanked: 4287 times
Contact:

Re: Programming 16F1827 on EB006 multiprogrammer board

Postby Benj » Tue Apr 05, 2011 2:48 pm

Hello,

Answer available from here:
viewtopic.php?f=7&t=8260&p=23678#p23678