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

Porting KEIL project to GCC compiler(Startup file)

Hi,

 I need help rewriting the startup file in KEIL to the GCC compiler (MPLAB) startup file. Either it will be helpful to get valuable resources or guides by which I can conversion.

The following is my startup code that I need to convert

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
IMPORT __main
IMPORT SystemInit
IMPORT main
; <h> Stack Configuration
; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
; </h>
Stack_Size EQU 0x00001000
AREA STACK, NOINIT, READWRITE, ALIGN=3
EXPORT __stack_bottom
__stack_bottom
Stack_Mem SPACE Stack_Size
__initial_sp
; <h> Heap Configuration
; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
; </h>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

0