Forum: Mikrocontroller und Digitale Elektronik Linker Script Syntax Error


von Moritz M. (Gast)


Lesenswert?

Hallo,

ich habe ein Linker-Script geschrieben und bekomme folgende 
Fehlermeldung:
1
c:/program files (x86)/gnu tools arm embedded/4.7 2013q2/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/bin/ld.exe:linkerscript.ld:5: syntax error

Mein Linker Script:
1
ENTRY(Reset_Handler)
2
3
MEMORY
4
{
5
  FLASH (rx) : ORIGIN = 0x00000000, LENGHT = 1M
6
  RAM (rwx) : ORIGIN = 0x20000000, LENGHT = 192K
7
}
8
9
__STACKSIZE = 1K;
10
__HEAPSIZE = 1K;
11
12
SECTIONS
13
{
14
  . = ORIGIN(FLASH);
15
  
16
  .vectorTable :
17
  {
18
    *(.vectorTable)
19
  } > FLASH
20
  
21
  .text :
22
  {
23
    *(.text)
24
  } > FLASH
25
  
26
  .rodata :
27
  {
28
    *(.rodata)
29
    __rodataEnd = .;
30
  } > FLASH
31
  
32
  . = ORIGIN(RAM);
33
  
34
  .data : AT(__rodataEnd)
35
  {
36
    *(.data)
37
  } > RAM
38
  
39
  .bss :
40
  {
41
    *(.COMMON)
42
    *(.bss)
43
  } > RAM
44
  
45
  .heap :
46
  {
47
    __heapStart = .;
48
    *(.heap)
49
    __heapEnd = __heapStart + __HEAPSIZE;
50
    . = __heapEnd;
51
  } > RAM
52
  
53
  .stack :
54
  {
55
    __stackStart = ORIGIN(RAM) + LENGHT(RAM);
56
    __stackEnd = __stackStart - __STACKSIZE;
57
    . = __stackEnd;
58
    *(.stack)
59
    . = __stackStart;
60
  } > RAM
61
}

Ich finde einfach nicht den Fehler. Hat jemand eine Idee?

Moritz

von Jay (Gast)


Lesenswert?

LENGHT ?

von ..,- (Gast)


Lesenswert?

Jay schrieb:
> LENGHT ?

!!!

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.