Quick Start Linker problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Quick Start Linker problem

4,792 Views
admin
Specialist II
Can't link any C programs even the demo programs that come with quick start.
 
Always get error mewssage:
 
Link error:

Linker command file output section  ‘.reset’ has type ‘NO PERMISSION’ which is incompatible with section ‘.reset’ in the file c:………

Any one else have this problem and know how to fix it?

Mike

Labels (1)
Tags (1)
0 Kudos
18 Replies

1,463 Views
J2MEJediMaster
Specialist I
I don't have much to go on here. So bear with me as I ferret some information with some basic questions...

1) What version of CodeWarrior are you using?

2) What is the target processor?

3) What does your linker command file look like?

4) When you installed CodeWarrior, did you use the installer's default directory or choose another one?

---Tom
0 Kudos

1,463 Views
admin
Specialist II

Tom,

Ver 8.1

MPC 565

Linker command file.

/* linker command file for CMD-565 board, debug version - runs from */
/* external SRAM (2MByte) */

MEMORY {
 rom : org = 0x00000000 len = 0x00200000  // external RAM used for debbuging
 ram : org = 0x003F7000 len = 0x9000      // internal RAM
}

/* We use FORCEACTIVE so that the linker will not deadstrip
  the exception table gExceptionTable. */

FORCEACTIVE { gExceptionTable }

SECTIONS {

 .reset : { } > rom
 .init  : {} > rom

 GROUP : {
  .text (TEXT) : {}
  .rodata (CONST) : {
   *(.rdata)
   *(.rodata)
  }
  .ctors : {}
  .dtors : {}
  extab : {}
  extabindex : {}
  .eirtable ALIGN(2048) : {}
 } > rom

 GROUP : {
  .data : {}
  .sdata : {}
  .sbss : {}
  .sdata2 :{}
  .sbss2 : {}
  .bss : {}
  .PPC.EMB.sdata0 : {}
  .PPC.EMB.sbss0 : {}
 } > ram
}

This file came with quick start.

 

 

Used default directory

 

Thanks

 

Michael

 

0 Kudos

1,463 Views
J2MEJediMaster
Specialist I
Nothing is jumping out at me, unfortunately. OK, the error message also spoke of another file on drive C: that had a 'reset' section in it. Is there such a file, and where is it located?

If there is one, open it with the editor and look for 'reset'. See if there are values within those curly braces.

---Tom

Message Edited by J2MEJediMaster on 05-26-2006 10:09 AM

0 Kudos

1,463 Views
Patrice
Contributor I

Hi,

I have the same problem !

Have you a solution ?

0 Kudos

1,463 Views
CrasyCat
Specialist III

Hello

Seems there is an issue in the way QuickStart defines the .reset section.

Can you check the quick start source code and tell me how .reset section is defined?

Point is .reset section is not a predefined ELF section and it may be defined incorrectly.

CrasyCat

0 Kudos

1,463 Views
Patrice
Contributor I
I send you the entire folder of the project open with the Quick Start Stationery.
 
Thanks in advance !
 
Message Edited by t.dowe on 2009-10-22 09:59 AM
0 Kudos

1,463 Views
CrasyCat
Specialist III

Hello

I think the issue is in the file exctable.asm. The .reset section must be defined as:

.section .reset,4,1,6  

instead of

.section .reset,4,1, $40000006

I do not understand the $40000006 there

CrasyCat

0 Kudos

1,463 Views
Smithy
Contributor I
I have been changing the ref to .reset in the exctable.asm file and tried your fix as well - .section .reset,4,1,6  but this gives me another error...
CodeWarrior has encountered an unhandled exception 0xc0000005 at address 0x004a883f (The memory address at 0x0000000c could not be read)
Location: MEM_FREE: 0x69c1efb8
Abort / Retry /Ignore ?
Codewarrior encountered an unhandled C++ error.
 
Have you or anyone else encountered this??
 
Thanks.
0 Kudos

1,463 Views
tim_milliken
Contributor III
This still seems to be an ongoing problem. Is Freescale not going to address this? I can't even compile their demo apps because of this issue.
Tim
0 Kudos

1,463 Views
CrasyCat
Specialist III
Hello
  Which demo applications are you unable to compile?
  Which version of CodeWarrior are you using?
  To retrieve that info:
     - Start CodeWarrior
     - Select Help -> "About Metrowerks CodeWarrior"
     - Click on "Installed Products"
       Version number I am interested in is displayed on the top of the dialog. Can be saved in a text file using Save As button.
 
CrasyCat
0 Kudos

1,463 Views
Smithy
Contributor I
My version is exactly the same as Tim's 8.1 build 40416 and I have not been able to run any of the demo applications either. I have had to move on and try other code but would really like to get these demos working. Changing the line suggested ended in Codewarrior crashing and work lost as well.
0 Kudos

1,463 Views
CrasyCat
Specialist III
Hello
I made some test locally.
I am able to build any of the demo application delivered in {Install}\(CodeWarrior_Examples)\PowerPC_EABI directory.
 
Am I missing something?
 
CrasyCat
0 Kudos

1,463 Views
tim_milliken
Contributor III
Check the one file that is in question and see what that one value is. See if by chance yours is already changed. Tim
0 Kudos

1,463 Views
Smithy
Contributor I
I've attached two of the QS projects I am trying to demo that bring up the same linker error:
 
Link Error   : Linker command file output section '.reset' has type 'NO PERMISSION' which is incompatible with
section '.reset' in file 'C:\cygwin\usr\local\mpc500QuickStart-r4.0\sample_applications\CodeWarrior\Cmd_565\tpu3_demo\SystemConfig\exctable.o'.
Add an input for this section with a more appropriate type.

Link failed.
 
When I make changes to .reset as mentioned in earlier posts then CWcrashes completely. Only external references are to Quickstart directory structure for access paths.
 
Not sure if this will help but worth a try I guess.
 
Thanks in advance for your help
 
- Vicki.
 
Message Edited by t.dowe on 2009-10-22 09:57 AM
0 Kudos

1,463 Views
CrasyCat
Specialist III
Hello
 
OK , so you have trouble with sample program delivered with QuickStart.
There is an incompatibility between CodeWarrior For MPC5xx and QuickStart (Whatever version you are using).
I would recommend you to submit a service request for Quick start issue through our on-line support web page.
This way it will be recorded and QuickStart people may even have a fix for you.
 
CrasyCat
0 Kudos

1,463 Views
Smithy
Contributor I
Thanks for your help - I contacted technical support and thought I would post the solution to this problem since although simple is a pretty annoying error when starting out:
 
Having renamed  Access paths to reference correct paths.......
 
1: On the Target Settings Panels->Target->EPPC Target, the DWARF 1.x combo must be changed to DWARF 2.x
 
2: Then change "exctable.asm" line <<.section .reset,4,1, $40000006>> to <<.section .reset,4,1,6>>
 
This worked for me, hope it helps anyone else.

 

 
0 Kudos

1,463 Views
tim_milliken
Contributor III
Can't compile any demo app that uses the exec.asm (I think that is the file name) , it has that line about the reset section that is described eariler in this post. When I change the line that has that unknown value of something like $400006, it will crash and burn, resulting in one losing any work that was not saved. My problem is the same as the rest of the post in this thread. The version I am running is 8.1 build 40416.
Thanks Tim
0 Kudos

1,463 Views
Patrice
Contributor I

Hi,

I received from the technical support an issue and in the future I think the problem will be fixed.

Thanks.

0 Kudos