Microchip

 MPLAB C18 v3.00

Change Page: 12 > | Showing page 1 of 2, messages 1 to 20 of 24
Author Message
DevMod
MPLAB C18 v3.00 Wednesday, October 12, 2005 2:38 PM (permalink)
0
MPLAB C18 v3.00 is posted and available here.

Important Changes to MPLAB C18 v3.00:
MPLAB C18 v3.00 and later COFF file formats will not be compatible with versions of MPLINK prior to v4.00 or versions of the MPLAB IDE prior to v7.21.
New Features:
- Improvements have been made to the COFF file format that will provide the following capabilities from MPLAB IDE v7.21 and later:
  • automatic detection of IEEE vs. Microchip floating-point format
  • automatic detection of variables of "short long" type
  • automatic detection of pointers to ROM vs. pointers to RAM
- MPLAB IDE v7.22 and later will also distinguish between pointers to near ROM and pointers to far ROM.
- Automatic ISR context saving is implemented.
- Functions called only by an ISR can share the same temporary data section with that ISR (#pragma tmpdata).
- “MPLAB C18 C Compiler Getting Started” manual rewritten.
- See the associated README file for other changes, fixes, and device support..
<message edited by DevMod on Tuesday, February 27, 2007 1:19 PM>
 
#1
    Guest
    RE: MPLAB C18 v3.00 Friday, October 21, 2005 7:04 AM (permalink)
    0
    I installed MPLAB v7.21 over the old v7.20.
    After that I installed the C18 v3.00 Upgrade.
    I opened an old project and rebuilded it completely.
    The error I received:

    MPLINK 4.00, Linker
    Copyright (c) 2005 Microchip Technology Inc.
    Error - Coff file format for 'C:\Microchip\mcc18\Projects\ctest1\AsmCore.o' is out of date.
    Errors : 1

    The file which makes the problem is an assembler file. So it seems that the assembler I'm using doesn't produce objects, that are readable for the new linker.
     
    #2
      Guest
      RE: MPLAB C18 v3.00 Friday, October 21, 2005 8:22 AM (permalink)
      0
      You have to use the mpasmwin.exe that came with the C18 v3.00. The coff file format changed in C18 v3.00, so any object files generated with older MPASM are not compatible with the new linker.

      Go to the Project/Set Language Tool Locations ... menu and change all MPASM and MPLINK tools (both under C18 Toolsuite and MPASM Toolsuite) to the tools that came with C18 (C:\mcc18\mpasm...)
       
      #3
        Guest
        RE: MPLAB C18 v3.00 Friday, October 21, 2005 8:31 AM (permalink)
        0
        I copied mpasmwin.exe v5.0 from ...\mcc18 to the old location in order not to have to change tool locations. And now everything works fine.
         
        #4
          Guest
          RE: MPLAB C18 v3.00 Friday, October 21, 2005 8:36 AM (permalink)
          0

          ORIGINAL: jw0502

          I copied mpasmwin.exe v5.0 from ...\mcc18 to the old location in order not to have to change tool locations. And now everything works fine.


          Ummmm. Ok, this will work. But now you have a frankenstein monster in the MPASM tools. IMHO, it's better to use the project toolsuite location fields.
           
          #5
            Guest
            RE: MPLAB C18 v3.00 Friday, October 21, 2005 3:05 PM (permalink)
            0
            I'm having some inexplicable problems since upgrading to 3.00, can anyone point me to the download for the 2.44 upgrade? I want to try and narrow down where this problem is coming from.

            -Jason
             
            #6
              Guest
              RE: MPLAB C18 v3.00 Friday, October 21, 2005 10:59 PM (permalink)
              0
              Can you explain some of the problems?
               
              #7
                Guest
                RE: MPLAB C18 v3.00 Saturday, October 22, 2005 10:32 AM (permalink)
                0
                Since upgrading to 3.00 my UART code seems faulty. Every other aspect of the code seems to be working properly. the problem is, I cannot try to debug it. With the ICD2 attached the problem will occur, but as soon as I step through the code, or pause and continue, the problem goes away.

                It seems that some data is being missed on receive or transmit over the UART, but like I said I cannot debug it.

                It is code that was working fine before, but now I have spent an entire day trying to debug this problem and really just need to get it back to where it was. I do have the upgrade files for 2.30.1, but that does not support the 18F2420 and 18F2410, which I am using.
                 
                #8
                  Guest
                  RE: MPLAB C18 v3.00 Saturday, October 22, 2005 10:48 AM (permalink)
                  0
                  Hm. I am using the v3.00 released version with UART. I'm not using ICD2 to on-chip debug, only in programmer mode.

                  Did you saved as your project with the same name?
                   
                  #9
                    Guest
                    RE: MPLAB C18 v3.00 Monday, October 24, 2005 9:46 AM (permalink)
                    0
                    Opening the project, "saving as" it, closing the IDE, and reopening the project made no difference at all, and I'm not quite certian why it should have, unless there is a fairly serious bug/undocumented feature of the IDE.

                    I managed to find the 2.40 upgrade installation and all of my problems magically went away.

                    I do not have time to debug the problem with the 3.00 compiler further, but it appeared that either my ISR was constant being hit, tying up the processor, or Interrupts were either not properly set, or somehow missed.

                    In a fit of desperation, I moved the ISR code into the main loop and the reliability of the UART was "better" but still not right.

                    -Jason
                     
                    #10
                      Guest
                      RE: MPLAB C18 v3.00 Monday, October 24, 2005 11:50 AM (permalink)
                      0
                      Well, I must be very lucky. I am using v3.00 since the beta 1 version, and things are running smoothly here. I have a loaded interrupt handler, double USARTs running at 230.4Kbaud and external memory.

                      The 'save as' routine used to cure some toolset defaultings and toolset locations in the past, when changing versions of the IDE. Since I keep several versions of the IDE installed at the same time, I always do this to make sure all my toolset targets are at the right place.

                      When you discover what is it, give a feedback.
                       
                      #11
                        gelatournix

                        • Total Posts : 1
                        • Reward points : 0
                        • Joined: 10/24/2005
                        • Status: offline
                        RE: MPLAB C18 v3.00 Monday, October 24, 2005 3:35 PM (permalink)
                        0
                        Maybe it should be interesting to make clear to all new users that the present MPLAB IDE 7.21 do not include the correct revison v4.00 for MPLINK, so user has to used MPLINK from MPLAB C18 3.00.

                        On the other hand, it seems that MPLAB IDE v7.22 is not available on Web site right now?
                         
                        #12
                          Guest
                          RE: MPLAB C18 v3.00 Monday, October 24, 2005 3:43 PM (permalink)
                          0

                          ORIGINAL: gelatournix

                          Maybe it should be interesting to make clear to all new users that the present MPLAB IDE 7.21 do not include the correct revison v4.00 for MPLINK, so user has to used MPLINK from MPLAB C18 3.00.

                          On the other hand, it seems that MPLAB IDE v7.22 is not available on Web site right now?

                          If you are working with MPASM in v7.21, the linker is the 'correct revision'. But C18 v3.00 changed the COFF file structure, and requires a new version of the linker. When you install the C18 toolsuite it makes both linkers available, so you can use the 'older' COFF format linker to assemble MPASM projects that use .o and .lib compiled files in the previous COFF format. Any C18 v3.xx project will require the linker that is supplied with the v3.xx toolsuite, and mixed projects that include v3.00 will need recompilation of the object and library files.
                           
                          #13
                            JasonK

                            • Total Posts : 3139
                            • Reward points : 0
                            • Joined: 11/14/2003
                            • Location: Microchip Technology in Arizona, USA
                            • Status: offline
                            RE: MPLAB C18 v3.00 Monday, October 24, 2005 4:24 PM (permalink)
                            0
                            Jason,

                            C18 3.00 adds automatic ISR context saving. This feature is probably affecting your ISR latency. If you find that the the compiler is auto saving unnecessary sections or locations, you can use the new nosave= clause to reduce the ISR latency.

                            - JasonK

                            P.S. In the future, please start a new message thread rather than asking a question in the new-version announcement thread.
                             
                            #14
                              dawnfire

                              • Total Posts : 9
                              • Reward points : 0
                              • Joined: 11/7/2005
                              • Status: offline
                              RE: MPLAB C18 v3.00 Sunday, November 13, 2005 11:35 PM (permalink)
                              0
                              //Look below simple code, it can not pass compile with C18 V3.0, but can pass with V2.44, V2.43, V2.40

                              #define fnc00(x,y) fnc01(x,y)

                              #define fnc01(x,y) fnc02(x,y)

                              #define fnc02(x,y) x=x+y

                              void main()
                              {
                              int a=0,b=0;
                              fnc02(a,b);
                              }
                              //The compiler error is Syntax Error
                              //If use #error fnc02(a,b) reaplace fnc02(a,b) then the result is:Error [1099] =+ ;
                              // so the the variable all disppeared, WHY 3.0 Version take this result?
                              //It is IMPROVEMENT or a BUG?
                              < Message edited by dawnfire -- Nov. 13, 2005 11:33:17 PM >
                               
                              #15
                                dr

                                • Total Posts : 71
                                • Reward points : 0
                                • Joined: 11/28/2005
                                • Status: offline
                                RE: MPLAB C18 v3.00 Tuesday, December 13, 2005 2:30 AM (permalink)
                                0
                                I have a similar problem since I upgraded from C18 V3.00 to V3.01.
                                The ZigBEe Stack DEBUG_OUT Macro produces a syntax error:

                                 #if defined(ENABLE_DEBUG)
                                 
                                     #if !defined(WIN32)
                                         #define DEBUG_OUT(s)                    \
                                         {                                       \
                                             static ROM char * const str = s;    \
                                             ConsolePutROMString(str);           \
                                         }
                                     #else
                                         #define DEBUG_OUT(s)            ConsolePutROMString(s)
                                     #endif
                                 


                                It is called in the main routine as follows:

                                DEBUG_OUT("Testint 1,2,3...\r\n");


                                I changed nothing in the source code, I only upgraded the C18 Compiler and now get that [:@] Syntax Error *grr*
                                 
                                #16
                                  Guest
                                  RE: MPLAB C18 v3.00 Tuesday, December 13, 2005 7:14 AM (permalink)
                                  0
                                  Last night, I installed a student version of C18 and MPLAB 7.30

                                  The bugs I found (for 1 min workout) for MPLAB 7.30:

                                  It broke the path for PICC18. The INCLUDE path pointed to the LIB path.
                                   
                                  #17
                                    Guest
                                    RE: MPLAB C18 v3.00 Tuesday, December 13, 2005 9:46 AM (permalink)
                                    0
                                    Hi, I'm Alejandro Posada, and I'm having troubles with the MPLAB C18 compiler, there is a syntax error in the code and I don't see any error on the code.
                                    the part of the code with the error is:
                                    if((PMENU == PRESIONADO) && (BPMENU_ANT == SUELTO))
                                    {
                                    BPMENU_ANT = PRESIONADO;
                                    BPMENU = ACTIVE;
                                    BPulsadores = 1;
                                    }
                                    else if(PMENU == SUELTO)
                                    {
                                    BPMENU_ANT = SUELTO;
                                    BPMENU = INACTIVE;
                                    }
                                    else if ((PMENU == PRESIONADO)&&(BPMENU_ANT == PRESIONADO))
                                    {
                                    BPMENU = INACTIVE;
                                    }


                                    does anyone can help me with this???
                                     
                                    #18
                                      Artic

                                      • Total Posts : 2264
                                      • Reward points : 0
                                      • Joined: 6/17/2004
                                      • Location: Wales now in Sofia,BG
                                      • Status: offline
                                      RE: MPLAB C18 v3.00 Tuesday, December 13, 2005 9:48 AM (permalink)
                                      0
                                      Hi,
                                      What are the names in the code? MACRO refs?

                                      Cheers

                                      Artic
                                       
                                      #19
                                        Guest
                                        RE: MPLAB C18 v3.00 Tuesday, December 13, 2005 1:09 PM (permalink)
                                        0
                                        The names in the code are symbolic definitions
                                        Like, Pmenu, is an input pin of the pic18f458, and BPMENU is a flag, that I use To Know if the input was in a high level, and Suelto = 0 Logic.

                                        The problem is that, when I make all the project, an error occur on the line where the else if instruction is present and I don know why, and if I change this sentence and replace it with
                                        If( )
                                        {
                                        }
                                        else
                                        {
                                        if( )
                                        }
                                        and the error occurs again in the line where the else is placed.

                                        if you know something about it, It would be really helpful for me.

                                        tahnks and pardon me bacause of my bad writing.
                                         
                                        #20
                                          Online Bookmarks Sharing: Share/Bookmark
                                          Change Page: 12 > | Showing page 1 of 2, messages 1 to 20 of 24

                                          Jump to:

                                          Current active users

                                          There are 0 members and 1 guests.

                                          Icon Legend and Permission

                                          • New Messages
                                          • No New Messages
                                          • Hot Topic w/ New Messages
                                          • Hot Topic w/o New Messages
                                          • Locked w/ New Messages
                                          • Locked w/o New Messages
                                          • Read Message
                                          • Post New Thread
                                          • Reply to message
                                          • Post New Poll
                                          • Submit Vote
                                          • Post reward post
                                          • Delete my own posts
                                          • Delete my own threads
                                          • Rate post

                                          2000-2013 ASPPlayground.NET Forum Version 3.9