This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Startup.s erorrs

Hello,

I am new to uVision and assembly. I am trying to build a project that i found on the internet.

When i press the build button in uVision3 it starts assembling my startup.s file.
But it gives an error on every line!
It says bad instruction!
I read somewhere on this forum that uVision should just compile the startup file (with assembly). But it does not with this file?

I am using a GNU compiler (winarm) and the project is for the evaluation board for the LM3S811

I add the startup file because there is maybe a something wrong with?! I think i all so need to fill in some lines because it is a standard startup file for my processor, but i don not know how to do this.

Thanks for all your help already!

Stack EQU 0x00000100

Heap EQU 0x00000000

AREA STACK, NOINIT, READWRITE, ALIGN=3
StackMem SPACE Stack
__initial_sp

AREA HEAP, NOINIT, READWRITE, ALIGN=3
__heap_base
HeapMem SPACE Heap
__heap_limit

PRESERVE8

AREA RESET, CODE, READONLY THUMB

EXPORT __Vectors
__Vectors

DCD StackMem + Stack

DCD Reset_Handler

DCD NmiSR

DCD FaultISR

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD 0

DCD 0

DCD 0

DCD 0

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD 0

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD IntDefaultHandler

DCD 0

DCD IntDefaultHandler

DCD IntDefaultHandler

EXPORT Reset_Handler

Reset_Handler

IMPORT __main B __main

NmiSR B NmiSR

FaultISR B FaultISR

IntDefaultHandler B IntDefaultHandler

ALIGN

AREA |.text|, CODE, READONLY

IF :DEF: __MICROLIB

EXPORT __initial_sp

EXPORT __heap_base

EXPORT __heap_limit

ELSE

IMPORT __use_two_region_memory

EXPORT __user_initial_stackheap

__user_initial_stackheap

LDR R0, =HeapMem

LDR R1, =(StackMem + Stack)

LDR R2, =(HeapMem + Heap)

LDR R3, =StackMem

BX LR

ENDIF

ALIGN

END

0