Yesterday 23:44
Forum: The Lounge
Starter: normnet
Views: 0
Replies: 11
Yesterday 18:36
Forum: The Lounge
Starter: Henk57
Views: 0
Replies: 68
Yesterday 16:53
Forum: Proton Plus Compiler v3
Starter: Frizie
Views: 0
Replies: 3
Go to last post By: AlbertoFS
Yesterday 11:50
Forum: Absolute Beginners Section
Starter: amod
Views: 0
Replies: 17
+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: ASM ERROR : Linker Error890 days old

  1. #1
    Senior Member SimonJA's Avatar
    Join Date
    Mar 2006
    Posts
    800
    Thumbs Up
    Received: 21
    Given: 14
    Total Downloaded
    465.13 MB

    0 Not allowed!

    Default ASM ERROR : Linker Error

    I have just started using a 24F32KA304 but can't get anything to compile, code with 24FJ64GA004 compiles fine.

    I get a series of ASM errors which I don't understand:

    ASM ERROR : Linker Error "a.o: Link Error: Could not allocate section .text, size = 74 PC units, attributes = code"
    ASM ERROR : Linker Error: "data_init: Link Error: Could not allocate section .dinit, size = 2PC units, attributes = code"
    .
    .


    Any ideas?

  2. #2
    Fanatical Contributor Les's Avatar
    Join Date
    Feb 2002
    Posts
    3,379
    Thumbs Up
    Received: 305
    Given: 117
    Total Downloaded
    1.50 GB

    0 Not allowed!

    Default Re: ASM ERROR : Linker Error

    Make sure you are using the latest compiler version, which is version 1.0.2.9.

    I've just compiled a small program for the 24F32KA304 without problems.

    Can you attach your program and I'll check it out?
    For more example programs for Proton and Proton24 or updates, please visit: Proton WIKI or Proton Files

  3. #3
    Senior Member SimonJA's Avatar
    Join Date
    Mar 2006
    Posts
    800
    Thumbs Up
    Received: 21
    Given: 14
    Total Downloaded
    465.13 MB

    0 Not allowed!

    Default Re: ASM ERROR : Linker Error

    Thank you for checking, I have the latest compiler version installed 3.5.7.1 and installed to latest patches last night just to make sure that wasn't the issue before I posted.

    I was porting some existing code to this chip when I first got the error but have since stripped it down to a simple flasing led program and still get the same error.

    Code:
    ;**** Added by Fuse Configurator ****
    ; Use the Fuse Configurator plug-in to change these settings
    
    Device = 24F32KA304
    
    Config FBS = BSS_HI1K, BWRP_OFF
    Config FGS = GSS0_OFF, GWRP_OFF
    Config FOSCSEL = FNOSC_FRC, IESO_OFF, LPRCSEL_HP, SOSCSRC_ANA
    Config FOSC = FCKSM_CSDCMD, OSCIOFNC_OFF, POSCFREQ_HS, POSCMOD_EC, SOSCSEL_SOSCHP
    Config FWDT = FWDTEN_NOSLP, FWPSA_PR128, WDTPOST_PS1, WINDIS_OFF
    Config FPOR = BOREN_BOR0, BORV_LPBOR, I2C1SEL_PRI, LVRCFG_OFF, MCLRE_OFF, PWRTEN_OFF
    Config FICD = ICS_PGx1
    Config FDS = DSBOREN_OFF, DSWDTEN_OFF, DSWDTOSC_LPRC, DSWDTPS_DSWDTPS3
    ;**** End of Fuse Configurator Settings ****
    ;-------------------------------------------------------------------------------
    
    Declare Xtal = 8
    OSCCON = 00000000000010                     
                      
    
                 
    Symbol LED1 = PORTB.12
    
    DelayMS 50
    High LED1
    
    Start:
    
    Toggle LED1
    DelayMS 500
    
    GoTo Start

  4. #4
    Fanatical Contributor Les's Avatar
    Join Date
    Feb 2002
    Posts
    3,379
    Thumbs Up
    Received: 305
    Given: 117
    Total Downloaded
    1.50 GB

    0 Not allowed!

    Default Re: ASM ERROR : Linker Error

    It's down to the "BSS_HI1K" fuse setting within "Config FBS".

    For some reason, the linker does not like it.

    Remove the fuse setting and things compile correctly.
    For more example programs for Proton and Proton24 or updates, please visit: Proton WIKI or Proton Files

  5. #5
    Senior Member SimonJA's Avatar
    Join Date
    Mar 2006
    Posts
    800
    Thumbs Up
    Received: 21
    Given: 14
    Total Downloaded
    465.13 MB

    0 Not allowed!

    Default Re: ASM ERROR : Linker Error

    That's great it compiles fine now, thanks for sorting it out so quickly.

  6. #6
    Administrator John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    3,029
    Thumbs Up
    Received: 99
    Given: 28
    Total Downloaded
    2.25 GB

    0 Not allowed!

    Default Re: ASM ERROR : Linker Error

    Simon, you said that you are using 3.5.7.1 that is not the latest version of the 8 bit compiler. Was it a typo?
    I can't remember which version had the latest P24 compiler included but it was after 3.5.7.1
    John

  7. #7
    Senior Member SimonJA's Avatar
    Join Date
    Mar 2006
    Posts
    800
    Thumbs Up
    Received: 21
    Given: 14
    Total Downloaded
    465.13 MB

    0 Not allowed!

    Default Re: ASM ERROR : Linker Error

    Well spotted John!

    A sort of typo, I do have 3.5.7.3 installed which I believe is the latest, I wrote down 3.5.7.1 on a piece of paper before I updated and got them mixed up.

    When I took out the fuse setting Les mentioned it compiled fine and I'm very happy playing with my new 24F32KA304.

  8. #8
    Administrator John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    3,029
    Thumbs Up
    Received: 99
    Given: 28
    Total Downloaded
    2.25 GB

    0 Not allowed!

    Default Re: ASM ERROR : Linker Error

    Hi Simon,
    The latest for 8bit is 3.5.7.5 you'll find the updates in the Files area. See the button above.
    John

    Edit: latest p24 is 1.0.2.9 as advised by Les
    Last edited by John Drew; 13th January 2016 at 12:35.

  9. #9
    Senior Member SimonJA's Avatar
    Join Date
    Mar 2006
    Posts
    800
    Thumbs Up
    Received: 21
    Given: 14
    Total Downloaded
    465.13 MB

    0 Not allowed!

    Default Re: ASM ERROR : Linker Error

    I had installed the 1.02.9 patch for P24, although the IDE does not seem to report the Proton24 version in the help>about.

    I have now found the latest version in the files section, I had always gone to Updates to get the latest version. It is a bit confusing that Updates is not actually a link to the latest version.

  10. #10
    Fanatical Contributor Les's Avatar
    Join Date
    Feb 2002
    Posts
    3,379
    Thumbs Up
    Received: 305
    Given: 117
    Total Downloaded
    1.50 GB

    0 Not allowed!

    Default Re: ASM ERROR : Linker Error

    It will be ASAP. I simply forgot to update the Updates page.

    Thanks for pointing it out to me.
    For more example programs for Proton and Proton24 or updates, please visit: Proton WIKI or Proton Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. ASM error
    By Rolf. in forum The Lounge
    Replies: 0
    Last Post: 21st March 2012, 07:14
  2. Hundreds of ASM error of the same errors. Error [126]
    By wirecut in forum Proton Plus Compiler v3
    Replies: 2
    Last Post: 28th January 2012, 08:10
  3. Asm error:error[118]
    By Citius in forum Proton Plus Compiler v3
    Replies: 23
    Last Post: 24th April 2011, 09:34
  4. pdf linker, error 53, file not found
    By ken_vk7krj in forum SWright's Feedback Forum
    Replies: 0
    Last Post: 30th May 2008, 03:43

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts