Page 1 of 1
pic18f46k22 help please.
Posted: Mon Jul 22, 2013 12:56 pm
by john hauton
Hi,
I'm trying to generate a hex file for the above chip.
It compiles to c ok, but throws up the libc file not found error when I try to compile to hex.
When I tell flowcode 4 where these files are, it gives a long list of errors with return code -2
for some reason, occasionally the linker location refers to C:\SourceBoost\etc.
However, if I put C:\program files (x86)\Matrix Multimedia\Boostc\lib etc
it still does not work!
any help would be appreciated
Re: pic18f46k22 help please.
Posted: Mon Jul 22, 2013 1:36 pm
by medelec35
Hi John,
Are you running 32bit or 64bit windows?
Would you like to post your flowchart and c code so we can check it out for you.
Did you try using reg files from this post?
http://www.matrixmultimedia.com/mmforum ... 74&#p47197
Can you also post your
Filename.msg.txt
That can help us see what could be going wrong.
Martin
Re: pic18f46k22 help please.
Posted: Tue Jul 23, 2013 11:05 pm
by john hauton
Hi Martin, thanks for answering.
All I did was a simple loop displaying some text on an lcd display. I have used this on many different pics
with no problem. I'm still having trouble where the linker location gets confused, so maybe theres more than one
problem. It keeps going back to c:\program files(x86)\Sourceboost....etc. As we know the location is in the matrix multimedia
folder with \boostc.
The version of windows is 64 bit professional
Thanks Martin....regards john
Re: pic18f46k22 help please.
Posted: Tue Jul 23, 2013 11:34 pm
by Kenrix2
As we know the location is in the matrix multimedia
folder with \boostc.
That is the wrong location. Please try a copy and paste of the settings I suggested in your previous topic:
http://www.matrixmultimedia.com/mmforum ... 29&t=12149
Very strange how it keeps changing on you, must be frustrating.
Re: pic18f46k22 help please.
Posted: Wed Jul 24, 2013 7:30 am
by medelec35
I would say its changing because the registry has got the wrong default values.
So when selecting Restore defaults, then wrong paths stored within the registry are loaded back into compiler settings.
To resolve this you could take a look here:
http://www.matrixmultimedia.com/mmforum ... =26&t=6896
Just make sure settings from here are entered:
http://www.matrixmultimedia.com/support ... f=22&t=683
Since your using 64bit windows you will need to look at the very bottom of the page.
Re: pic18f46k22 help please.
Posted: Thu Jul 25, 2013 10:31 pm
by john hauton
Hi, frustrating is not the word!!
I think i've found out whats causing it, but not how.
Everything was working perfectly, I had version 3 (pic avr arm), and the same with v4 all professional.
When I wanted to see the differences in v5 prior to maybe buying the pic version. I installed the demo version of v5 pic,
and the demo of dspic v4 i think.
Since then, whichever computer i do this on (one running win xp home one running win7 pro 64bit) I get this problem where
the default boostc part of the linker changes to c:\program files(x86)\sourceboost\ etc etc
Also the floatlib wether for pic 16 or 18 vanishes...
This is driving me crazy, although I have copied a functional linker parameter line to a text file on the desktop
which i can copy and paste each time. Not elegant, but works
I could not find the section in the registry shown, part of it seemed to be missing!
Any help, or a recommended hair restorer would be appreciated.
Re: pic18f46k22 help please.
Posted: Thu Jul 25, 2013 10:45 pm
by medelec35
Didn't reg file that was attached in the other link work?
attached within zip file is the file in question.
It always worked with me.