A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
|
Hello, I have installed MPLAB v6.60. I did a very standard installation. Changed no destination folder, or so... Here is what I get when following the "MPLAB getting started"... ==================================================================== Clean: Deleting intermediary and output files. Clean: Done. Executing: "C:\Program Files\MPLAB IDE\MCHIP_Tools\mpasmwin.exe" /q /p18F452 "f452temp.asm" /l"f452temp. lst" /e"f452temp.err" /o"f452temp.o" Executing: "C:\Program Files\MPLAB IDE\MCHIP_Tools\mplink.exe" "18f452.lkr" "C:\WUTemp\test\f452temp.o" /o"test.cof" MPLINK 3.80, Linker Copyright (c) 2004 Microchip Technology Inc. Error - section '.org_3' can not fit the absolute section. Section '.org_3' start=0x00000018, length=0x0000001c Errors : 1 BUILD FAILED: Mon Aug 16 20:29:16 2004 ==================================================================== I've run this getting started on my home computer and on my office computer !!! Same result.... I use the Project wizard, add .asm then add .lkr then "build all". Is there any known issu with MPLAB and linker!!! I am considering to use the pic as microcontroller on all my project. I can not imagine that no one in the world as never encountered what I describe !!!! I can even think that no one use MPLAB !!!??? Any guru or people of good will in this group able to help ???? Thanks in advance ! Vincent |
|
|
|
First thought, is the asm program a stand alone module/relocatable? If it is not, don't need linker. Chad --- v_clerc_fr <> wrote: > Hello, > > I have installed MPLAB v6.60. I did a very standard installation. > Changed no destination folder, or so... > > Here is what I get when following the "MPLAB getting started"... > > ==================================================================== > > Clean: Deleting intermediary and output files. > Clean: Done. > Executing: "C:\Program Files\MPLAB > IDE\MCHIP_Tools\mpasmwin.exe" /q /p18F452 "f452temp.asm" /l"f452temp. > lst" /e"f452temp.err" /o"f452temp.o" > Executing: "C:\Program Files\MPLAB > IDE\MCHIP_Tools\mplink.exe" "18f452.lkr" "C:\WUTemp\test\f452temp.o" > /o"test.cof" > MPLINK 3.80, Linker > Copyright (c) 2004 Microchip Technology Inc. > Error - section '.org_3' can not fit the absolute section. > Section '.org_3' start=0x00000018, length=0x0000001c > Errors : 1 > > BUILD FAILED: Mon Aug 16 20:29:16 2004 > > ==================================================================== > > I've run this getting started on my home computer and on my office > computer !!! > > Same result.... > > I use the Project wizard, add .asm then add .lkr then "build all". > > Is there any known issu with MPLAB and linker!!! > I am considering to use the pic as microcontroller on all my > project. I can not imagine that no one in the world as never > encountered what I describe !!!! > > I can even think that no one use MPLAB !!!??? > > Any guru or people of good will in this group able to help ???? > > Thanks in advance ! > Vincent ===== My software has no bugs, only undocumented features. __________________________________ |
|
|
|
Hi
Chad,
Thanks
for reply.
The asm
program is given in the template directory of MPLABTools.
It's a very small basic example, but the "getting
started" ask to add a linker script to the project.
The two
files added to the project are located in "MPLAB IDE/MCHIP Tools/TEMPLATES/Code/f452temp.asm" and "MPLAB IDE/MCHIP Tools/LKR/18f452.lkr".
This
leads to the following error :
Error - section '.org_3'
can not fit the absolute section.
Section '.org_3' start=0x00000018, length=0x0000001c Am I
the only one trying to follow the "getting started" section of the documentation
????
I don't
understand how such a big community can work with MPLAB while a beginner can not even
compile the very first, most straight forward example !!!
I'm
probably doing something wrong, but where to go know !!
Any
input would be great !!!
Vincent
|
|
|
|
Vincent- I examined the output from my project with only one .asm file in it and I see no link step involved. I am not sure what the .lkr file does for the project since I have never had the need to use them. I would suggest that you don't add any files to your project except a copy of f542temp.asm and see if that helps you out any. Good luck, Trent --- In , "Vincent" <vincent.clerc@i...> wrote: > Hi Chad, > > Thanks for reply. > > The asm program is given in the template directory of MPLABTools. > It's a very small basic example, but the "getting started" ask to add a > linker script to the project. > The two files added to the project are located in "MPLAB IDE/MCHIP > Tools/TEMPLATES/Code/f452temp.asm" and "MPLAB IDE/MCHIP > Tools/LKR/18f452.lkr". > This leads to the following error : > Error - section '.org_3' can not fit the absolute section. > Section '.org_3' start=0x00000018, length=0x0000001c > > Am I the only one trying to follow the "getting started" section of the > documentation ???? > > I don't understand how such a big community can work with MPLAB while a > beginner can not even compile the very first, most straight forward > example !!! > > I'm probably doing something wrong, but where to go know !! > > Any input would be great !!! > > Vincent > -----Original Message----- > From: Chad Russel [mailto:chadrussel@y...] > Sent: mardi 17 août 2004 01:53 > To: > Subject: Re: [piclist] Need help with MPLAB > First thought, is the asm program a stand alone module/relocatable? If > it is not, don't need linker. > > Chad > > --- v_clerc_fr <vincent.clerc@i...> wrote: > > > Hello, > > > > I have installed MPLAB v6.60. I did a very standard installation. > > Changed no destination folder, or so... > > > > Here is what I get when following the "MPLAB getting started"... > > > > ============================================= ======================= > > > > Clean: Deleting intermediary and output files. > > Clean: Done. > > Executing: "C:\Program Files\MPLAB > > IDE\MCHIP_Tools\mpasmwin.exe" /q /p18F452 "f452temp.asm" /l"f452temp. > > lst" /e"f452temp.err" /o"f452temp.o" > > Executing: "C:\Program Files\MPLAB > > IDE\MCHIP_Tools\mplink.exe" "18f452.lkr" "C:\W UTemp\test\f452temp.o" > > /o"test.cof" > > MPLINK 3.80, Linker > > Copyright (c) 2004 Microchip Technology Inc. > > Error - section '.org_3' can not fit the absolute section. > > Section '.org_3' start=0x00000018, length=0x0000001c > > Errors : 1 > > > > BUILD FAILED: Mon Aug 16 20:29:16 2004 > > > > ============================================== ====================== > > > > I've run this getting started on my home computer and on my office > > computer !!! > > > > Same result.... > > > > I use the Project wizard, add .asm then add .lkr then "build all". > > > > Is there any known issu with MPLAB and linker!!! > > I am considering to use the pic as microcontroller on all my > > project. I can not imagine that no one in the world as never > > encountered what I describe !!!! > > > > I can even think that no one use MPLAB !!!??? > > > > Any guru or people of good will in this group able to help ???? > > > > Thanks in advance ! > > Vincent > > > > > > ===== > My software has no bugs, only undocumented features. > > __________________________________ > to unsubscribe, go to http://www.yahoogroups.com and follow the > instructions > > Yahoo! Groups Sponsor > > ADVERTISEMENT > > <http://us.ard.yahoo.com/SIG=129mipalh/M=298184. 5285298.6392945.3001176/ > D=groups/S=1706554205:HM/EXP=1092786768/A=216433 1/R=0/SIG=11eaelai9/*htt > p://www.netflix.com/Default?mqso=60183351> click here > > <http://us.adserver.yahoo.com/l?M=298184.5285298 .6392945.3001176/D=group > s/S=:HM/A=2164331/rand=661285136 > _____ > > > . |
|
|
|
Hello
Trent,
You
were right !! I just removed the .lkr and have no problem at all...
Thanks
a lot for the helping hand.
Actually, I don't understand the "getting started" goal. Why use the linker with
a single asm involved.
...
This is not clear !!
Any
comment from the community is welcome !!!
Thanks
a lot !!!
Vince
-----Original Message-----
From: Trent [mailto:s...@yahoo.com] Sent: mardi 17 août 2004 10:55 To: p...@yahoogroups.com Subject: [piclist] Re: Need help with MPLAB Vincent- |
|
|
|
Microchip’s documentation sucks, their MPLAB sucks, etc.
I have been using Microchip for about 2 years now and have no idea why they are so popular. The tools for Microchip really suck as compared to real development tools. I guess people accept the poor quality when it is free…
Regards, Trampas
-----Original Message-----
Hello, |
|
|
|
Hi A manufacturer of a
very competitive
product doesn’t get to sell more chips than anyone else if it’s not
a good product. If you have that
attitude then maybe you should have started using something else long time
ago. Apart from 16 years of
Microchip experience I also work with ARM, ATMEL and Motorola but I tell you
that Microchip have a fantastic line of products. Open source, Linux
and many other
fantastic technologies have one thing in common with Microchip – a huge
happy user base!! Regards Martin PS: I make a living
from embedded
developing and only use genuine Microchip products. From:
Trampas
[mailto:t...@nc.rr.com] Microchip’s
documentation sucks, their MPLAB sucks, etc. I
have been using Microchip for about 2 years now and have no idea why they are
so popular. The tools for Microchip really suck as compared to real development
tools. I guess people accept the poor quality when it is free… Regards, Trampas
-----Original
Message----- Hello,
|
|
--- In , "Trampas" <tstern@n...> wrote: > Microchip's documentation sucks, their MPLAB sucks, etc. > > I have been using Microchip for about 2 years now and have no idea why they > are so popular. The tools for Microchip really suck as compared to real > development tools. I guess people accept the poor quality when it is free. > > Regards, > > Trampas > <<< snip >>> I see the problem this way: 1. The advanced user does not check out the tutorial samples. 2. The new user does, but does not know enough to tell Microchip they have a problem. 3. Perhaps in a group like this, where the two users meet, some constructive critisism can be generated for Microchip, other than "your software sucks." Chad |
|
I am fairly critical of Microchip in a number of places but I totally disagree with your sentiment. Sure, they have room to improve - klunky architecture and performance, for examples. However, I think there is a fantastic amount of support (not just datasheets but tons of ap notes, 3rd party circuits, this forum, books,...), they (and 3rd parties) have an EXTENSIVE array of development tools (many free, almost all the rest are low cost) and a great attitude towards the small developer (and even hobbiest). Let us also not forget really amazing prices. There is no other chip line that is as broadly supported as PIC. period. Lets not froget that these are microcontrollers, not computers. Perhaps you are trying to do things with the product line that simply aren't appropriate. If your ap needs lots of memory, for example, forget PICs. But for an incredible number of applications, there's a PIC that's a great fit. Personally, I like the Atmel architecture better but that doesn't diminish my respect for the PIC line and Microchip, the company. --- In , "Trampas" <tstern@n...> wrote: > Microchip's documentation sucks, their MPLAB sucks, etc. > > I have been using Microchip for about 2 years now and have no idea why they > are so popular. The tools for Microchip really suck as compared to real > development tools. I guess people accept the poor quality when it is free. > > Regards, > > Trampas > -----Original Message----- > From: v_clerc_fr [mailto:vincent.clerc@i...] > Sent: Monday, August 16, 2004 5:55 PM > To: > Subject: [piclist] Need help with MPLAB > > Hello, > > I have installed MPLAB v6.60. I did a very standard installation. > Changed no destination folder, or so... > > Here is what I get when following the "MPLAB getting started"... > > ==================================================================== > > Clean: Deleting intermediary and output files. > Clean: Done. > Executing: "C:\Program Files\MPLAB > IDE\MCHIP_Tools\mpasmwin.exe" /q /p18F452 "f452temp.asm" /l"f452temp. > lst" /e"f452temp.err" /o"f452temp.o" > Executing: "C:\Program Files\MPLAB > IDE\MCHIP_Tools\mplink.exe" "18f452.lkr" "C:\WUTemp\test\f452temp.o" > /o"test.cof" > MPLINK 3.80, Linker > Copyright (c) 2004 Microchip Technology Inc. > Error - section '.org_3' can not fit the absolute section. > Section '.org_3' start=0x00000018, length=0x0000001c > Errors : 1 > > BUILD FAILED: Mon Aug 16 20:29:16 2004 > > ==================================================================== > > I've run this getting started on my home computer and on my office > computer !!! > > Same result.... > > I use the Project wizard, add .asm then add .lkr then "build all". > > Is there any known issu with MPLAB and linker!!! > I am considering to use the pic as microcontroller on all my > project. I can not imagine that no one in the world as never > encountered what I describe !!!! > > I can even think that no one use MPLAB !!!??? > > Any guru or people of good will in this group able to help ???? > > Thanks in advance ! > Vincent > > > to unsubscribe, go to http://www.yahoogroups.com and follow the instructions > > > Yahoo! Groups Sponsor > > ADVERTISEMENT <http://us.ard.yahoo.com/SIG=129d2huob/M=298184.5285298.6392945.300117 6/D=gr > oups/S=1706554205:HM/EXP=1092779686/A=2164330/R=0/SIG=11eamf8g4/*http: /www.n > etflix.com/Default?mqso=60183350> click here > > <http://us.adserver.yahoo.com/l? M=298184.5285298.6392945.3001176/D=groups/S= > :HM/A=2164330/rand=592936972 > > _____ > > > Service. |
|
Great! I'm glad I could be of some help. I have not studied the Getting Started section of the manuals recently but it does sound like their example is mis-leading. I am not going to bash the company too much for it but I have noticed several people in this group mention from time to time that Microchip's documentation sometimes has errors in it that they don't go back and correct. Sometimes they will silently put put an errata document that corrects some of the original errors but it can be hard to track the information down sometimes. That's the great thing about groups like this which have helped me over and over again. Have fun, Trent --- In , "Vincent" <vincent.clerc@i...> wrote: > Hello Trent, > > You were right !! I just removed the .lkr and have no problem at all... > > Thanks a lot for the helping hand. > > Actually, I don't understand the "getting started" goal. Why use the > linker with a single asm involved. > > ... This is not clear !! > > Any comment from the community is welcome !!! > > Thanks a lot !!! > > Vince > <http://www.idtect.com/ |
|
I had a similar problem when working on my first PIC project a few months ago. I kept beating my head against the same "cannot fit..." error and finally decided to make a one NOP module and it wouldn't fit as well. I finally started digging into the linker memory and section directives and discovered you need to define the variables in the linker scripts yourself. There wasn't very good documentation provided for this but if you study it for a while you can piece it together as I did. I have no explanation as to why the getting started example didn't do this correctly. good luck jtm |