Topics Topics Edit Profile Profile Help/Instructions Help Member List Member List  
Search Last 1|3|7 Days Search Search Tree View Tree View  

Programmable Christmas Star Dec 2008

:: EPE Chat Zone ­:: ­Radio Bygones Message Board :: » EPE Chat Zone » Archive through 15 February, 2010 » Programmable Christmas Star Dec 2008 « Previous Next »

  Thread Last Poster Posts Pages Last Post
  ClosedClosed: New threads not accepted on this page        

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

sidney
Just joined
Username: sidney

Post Number: 1
Registered: 01-2010

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 27 January, 2010 - 10:42 am:   Edit Post Delete Post Print Post

I am interested in the possibilities of PIC microcontrollers and in Dec 2008 constructed the Christmas Star using a pre-programmed PIC. This Christmas my daughter expressed an interest and I decided to make one for her. Having downloaded the files from the EPE website and loaded into MPLABIDE to assemble I received the following error "Directive only allowed when generating an object file". I then read back the code from the pre-programmed PIC and then attempted to write to a new PIC using Velleman PIC Programmer and that also failed. Whereas I have some rudimentary knowledge about PIC's I am at a loss with this and would very much appreciate some clues. Regards, Sidney}
Top of pagePrevious messageNext messageBottom of page Link to this message

zeitghost
Frequent Contributor
Username: zeitghost

Post Number: 1422
Registered: 01-2006

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 27 January, 2010 - 10:49 am:   Edit Post Delete Post Print Post

Which line was it complaining about?
Top of pagePrevious messageNext messageBottom of page Link to this message

sidney
Just joined
Username: sidney

Post Number: 3
Registered: 01-2010

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 27 January, 2010 - 11:02 am:   Edit Post Delete Post Print Post

The lines were:-
GENVAR UDATA
SHVAR UDATA_SHR
RESET CODE
INTRPT CODE
MAIN CODE
SUBS CODE
LEDTBL CODE
PAT1 CODE
PAT2 CODE
PAT3 CODE
PAT4 CODE
EEPROM CODE
Top of pagePrevious messageNext messageBottom of page Link to this message

violin
Regular Contributor
Username: violin

Post Number: 23
Registered: 11-2008

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 27 January, 2010 - 10:45 pm:   Edit Post Delete Post Print Post

Hi. The program was written in relocatable mode against absolute mode. This means that the said devices linker script must be include within the project for it to successfully build. When written for absolute mode the devices linker script can be omitted. Regards
Top of pagePrevious messageNext messageBottom of page Link to this message

zeitghost
Frequent Contributor
Username: zeitghost

Post Number: 1426
Registered: 01-2006

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, 28 January, 2010 - 08:33 am:   Edit Post Delete Post Print Post

And how do you do that?
Top of pagePrevious messageNext messageBottom of page Link to this message

violin
Regular Contributor
Username: violin

Post Number: 25
Registered: 11-2008

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, 28 January, 2010 - 10:18 am:   Edit Post Delete Post Print Post

Hi. You need to go to first to <Program Files> (where I keep MPLAB IDE) <Microchip> <MPASM Suite> <LKR> then click on the linker in question and added it to the project. Or simply go to the project window and click/go on/to the Linker Script icon then right click <add files> and follow the same formula as above Hope that helps. Regards

(Message edited by violin on 28 January, 2010)
Top of pagePrevious messageNext messageBottom of page Link to this message

zeitghost
Frequent Contributor
Username: zeitghost

Post Number: 1427
Registered: 01-2006

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, 29 January, 2010 - 08:17 am:   Edit Post Delete Post Print Post

thanks.
Top of pagePrevious messageNext messageBottom of page Link to this message

sidney
Just joined
Username: sidney

Post Number: 4
Registered: 01-2010

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, 29 January, 2010 - 10:32 am:   Edit Post Delete Post Print Post

Hi, Thanks for your help so far but I am afraid that I can not find any Linker Script icon anywhere.
Top of pagePrevious messageNext messageBottom of page Link to this message

alexr
Frequent Contributor
Username: alexr

Post Number: 100
Registered: 02-2008

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, 29 January, 2010 - 11:16 am:   Edit Post Delete Post Print Post


Alex
Top of pagePrevious messageNext messageBottom of page Link to this message

sidney
Just joined
Username: sidney

Post Number: 5
Registered: 01-2010

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, 29 January, 2010 - 01:39 pm:   Edit Post Delete Post Print Post

Hi, Perhaps I have been retired too long or I have started with PIC's too late but I am still having problems. I have created a project with the download file and I can now see the linker script facility but I am unable to get any further. I'm sorry but I think I need a simple path to follow. I am determined to solve this.
Regards, Sidney
Top of pagePrevious messageNext messageBottom of page Link to this message

alexr
Frequent Contributor
Username: alexr

Post Number: 101
Registered: 02-2008

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, 29 January, 2010 - 02:50 pm:   Edit Post Delete Post Print Post

Sidney:

Right click on the "Linker Script" folder.

You will get a drop-down list saying "Add files.., create subfolder..., Filter...".

Select "Add Files"

The add files dialogue box will come up.

Navigate to your "program files" folder and then to the Microchip sub-folder.

On my PC the file you are after is in;
Program Files\Microchip\MPASM Suite\LKR\12f683.lkr

Add this file to the linker script folder of MPLAB.

Now the program will compile correctly (at least it did for me just now).

(Message edited by Alexr on 29 January, 2010)
Alex
Top of pagePrevious messageNext messageBottom of page Link to this message

sidney
Member
Username: sidney

Post Number: 6
Registered: 01-2010

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, 30 January, 2010 - 12:00 pm:   Edit Post Delete Post Print Post

Hi Alex, Thanks for that I now have the program compiled. However, when I come to download it into the PIC via my Velleman Programmer I receive an error message saying:
Verify failed at Adr:0004, File:00FA, Read:3FFF
which I do not understand.
As you can tell I am a novice at this although I have had some success during the last 6 months with a 16F84 and a 16F819.
Regards, Sidney
Top of pagePrevious messageNext messageBottom of page Link to this message

alexr
Frequent Contributor
Username: alexr

Post Number: 102
Registered: 02-2008

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, 30 January, 2010 - 01:42 pm:   Edit Post Delete Post Print Post

That could be either a faulty 12F683 chip or a programmer issue.

The error report is saying that at memory address 0004 it programmed a hex value of 00FA but when it reads it back it sees value 3FFF which is the value that a blank un-programmed memory location normally has. In other words it failed to program location 0004.

Normally I would go for a faulty chip as the most likely cause but I have heard of other people having problems with the Velleman programmer, especially when trying to program some of the newer chips, so it would not greatly surprise me if it was a programmer issue.

I guess the way to find out would be to try it with another 12F683 chip. If it works OK then you had a faulty chip but if it comes up with the same error then your programmer has problems with that chip type.
Alex
Top of pagePrevious messageNext messageBottom of page Link to this message

sidney
Member
Username: sidney

Post Number: 7
Registered: 01-2010

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, 30 January, 2010 - 01:50 pm:   Edit Post Delete Post Print Post

Hi Alex, I already tried another PIC but the result was just the same. I shall buy another programmer and continue the task. Thanks again for all your time and effort.
Regards, Sidney
Top of pagePrevious messageNext messageBottom of page Link to this message

violin
Regular Contributor
Username: violin

Post Number: 26
Registered: 11-2008

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, 30 January, 2010 - 05:22 pm:   Edit Post Delete Post Print Post

Hi. The Velleman (K8048 I assume) programmer is a viable programmer as long as it has been constructed properly. However, it is limited support which doesn’t include 12f683 part in its support, - so it won’t be possible to use in connection with it. - PICkit2 (not PICkit3 yet) is a reasonably price programmer which would be your best option for this part. Regards
Top of pagePrevious messageNext messageBottom of page Link to this message

alexr
Frequent Contributor
Username: alexr

Post Number: 103
Registered: 02-2008

Rating: N/A
Votes: 0 (Vote!)

Posted on Sunday, 31 January, 2010 - 03:19 am:   Edit Post Delete Post Print Post

Both PICkit2 and PICkit3 are quite nice programmers with PICkit2 being marginally more versatile at the moment as it supports logic analyser and serial comms analyser software whereas the PICkit3 does not.

I understand that analyser software for the PICkit3 is in the pipeline which will make PICkit3 just as good or better (since it has a more powerful processor) than the PICkit2.

The problem with PICkit2 is that Microchip have ceased support for it and all new chip types will only be supported by PICKit3.
Alex
Top of pagePrevious messageNext messageBottom of page Link to this message

violin
Regular Contributor
Username: violin

Post Number: 27
Registered: 11-2008

Rating: N/A
Votes: 0 (Vote!)

Posted on Sunday, 31 January, 2010 - 10:09 am:   Edit Post Delete Post Print Post

Sorry, but this not correct. PICkit3 will be a nice programmer but there is still a little work that needs still to be down with it before it can be fully market as a fully operational programmer and so, without the little hiccups that it still occurrs with a number of device operations and while I agree with you that it will/does support the newer devices that PICkit2 won’t, in my opinion if PICkit2 supports your intended devices now it will be best to purchase this one as a fully robust programmer until the hiccups with PICkit3 have been sorted. Regards

(Message edited by violin on 31 January, 2010)
Top of pagePrevious messageNext messageBottom of page Link to this message

alexr
Frequent Contributor
Username: alexr

Post Number: 104
Registered: 02-2008

Rating: N/A
Votes: 0 (Vote!)

Posted on Sunday, 31 January, 2010 - 11:33 am:   Edit Post Delete Post Print Post

violin:

Just which "hiccups" and which "device operations" are you referring to??????????

The only features it lacks (analyser software and the stand-alone driver software) can be added on without any hardware upgrades.

It just seems stupid to buy a new piece of kit that is obsolete and no longer supported by the manufacturer.
Alex
Top of pagePrevious messageNext messageBottom of page Link to this message

joe
:::: Super User ::::
Username: joe

Post Number: 733
Registered: 05-2005

Rating: N/A
Votes: 0 (Vote!)

Posted on Sunday, 31 January, 2010 - 11:59 am:   Edit Post Delete Post Print Post

The Microchip forum was full of people complaining about the PICKIT3. You had to load different software into the PICKIT3 depending on the family of PIC you were programming.

Apparently, sometimes during this process the internal PIC would become corrupted and then the unit was bricked. The only way around the problem was to reprogram the PIC manually (needs another PIC programmer/cable etc) or return the unit for exchange.

I don't know of these issues are fixed yet.

Joe
Read my ramblings - www.techbites.com/joe-farr
Top of pagePrevious messageNext messageBottom of page Link to this message

alexr
Frequent Contributor
Username: alexr

Post Number: 105
Registered: 02-2008

Rating: N/A
Votes: 0 (Vote!)

Posted on Sunday, 31 January, 2010 - 12:16 pm:   Edit Post Delete Post Print Post

I agree that the PICkit3 was released before development had been completed but most of the issues seem to have been resolved now.
I've only had mine for about 2 weeks but its been rock solid so far. I guess only time will tell.
In any case if the choice is between an obsolete programmer that is no longer supported and a new one that may need a software upgrade to bring it up to scratch I'll go for the new one every time.
Alex
Top of pagePrevious messageNext messageBottom of page Link to this message

joe
:::: Super User ::::
Username: joe

Post Number: 734
Registered: 05-2005

Rating: N/A
Votes: 0 (Vote!)

Posted on Sunday, 31 January, 2010 - 12:22 pm:   Edit Post Delete Post Print Post

As long as that firmware reloading issue has been fixed, and you don't need any currently missing features if any, then I couldn't agree more.

Unless you can get a PICKIT2 for a complete bargin price that is; it's still a fantastic piece of kit.

I should mention that the PICKIT2 & 3 are capable of upgrading their own firmware, so as and when Microchip do release new PICKIT firmware, you don't need another programmer; its' all controlled via the PC.

All very clever really.

Joe
Read my ramblings - www.techbites.com/joe-farr
Top of pagePrevious messageNext messageBottom of page Link to this message

sidney
Member
Username: sidney

Post Number: 8
Registered: 01-2010

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, 02 February, 2010 - 03:13 pm:   Edit Post Delete Post Print Post

Hi all, Sorry I have not responded sooner but I have been away for the weekend. Yes I did forget to check whether my Velleman would support the 12F683 which it clearly does not. I will therefore have to purchase a Pickit programmer. Since I have not seen one I assume it will be as easy to use as the Velleman. Thank you all for your contributions.
Sidney
Top of pagePrevious messageNext messageBottom of page Link to this message

violin
Regular Contributor
Username: violin

Post Number: 28
Registered: 11-2008

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 03 February, 2010 - 10:20 am:   Edit Post Delete Post Print Post

Hi. The PICkit2/3 programmers are ICSP connections only, so you must understand the fundamentals of ICSP first. It operates exactly as the same way as to your ICSP connecter that is situated within your Velleman dev/programmer board. Regards
Top of pagePrevious messageNext messageBottom of page Link to this message

violin
Regular Contributor
Username: violin

Post Number: 29
Registered: 11-2008

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, 03 February, 2010 - 01:44 pm:   Edit Post Delete Post Print Post

Sorry. I realised I should have explained what ICSP was if you didn’t know, --- = In-Circuit-Serial-Programming, - but because it was more than 30 minutes ago the forum software wouldn't allow me to edit my post.
Top of pagePrevious messageNext messageBottom of page Link to this message

sidney
Member
Username: sidney

Post Number: 9
Registered: 01-2010

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, 05 February, 2010 - 10:32 am:   Edit Post Delete Post Print Post

Hi Violin, Searching for information on Pickit2/3 it would appear that it can only be used to program PIC's in circuit. Does this mean that somehow I have to install an ICSP connection to the Christmas Star or can I create a development board with the ICSP connector and only the PIC? I hope this is not too stupid a question.
Regards, Sidney
Top of pagePrevious messageNext messageBottom of page Link to this message

violin
Regular Contributor
Username: violin

Post Number: 33
Registered: 11-2008

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, 05 February, 2010 - 01:32 pm:   Edit Post Delete Post Print Post

Hi. Yes, you can make your own development board for ICSP with PICkit2/3, then slot in the programmed device to your Christmas star board if wish.

On a further note of PICkit2 and PICkit3 My personal opinion is still strongly that PICkit3 is not the way to go at the moment as there is still much that needs to be done to it at the moment before it is a viable programmer worth purchasing. Regards

(Message edited by violin on 05 February, 2010)
Top of pagePrevious messageNext messageBottom of page Link to this message

sidney
Member
Username: sidney

Post Number: 10
Registered: 01-2010

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, 05 February, 2010 - 02:14 pm:   Edit Post Delete Post Print Post

Hi Violin, Thanks for that. All I have to do now is obtain the Pickit and hope that I don't have to come back for more advice.
Regards, Sidney

Administration Administration Log Out Log Out   Previous Page Previous Page Next Page Next Page