EmbeddedRelated.com
Forums

Problem modifying the Cosmic Startup file.

Started by chanojmarian February 2, 2004
Hi,
I am using cosmic tool where reset vector maps to"_stext" symbol
which is defined in crtsi.s file(startup file).crtsi.s is an assembly
language prog where it initialises all the ram, EEPROM and jump
to "_main" routine.
I want to define my own symbol other than _stext and do required
initialisations. This is basically for my bootloader.

I am facing a problem. If i change the symbol name from "_stext"
to some other name, while downlading thru BDM i am getting following
error " Can not find entry point, set PC to entry point"

Rgds,
Manoj



Manoj
When you load the code to your debugger, it looks for the _stext symbol
from the startup code to initially set the program counter. If you
remove this, the ZAP will not know where to begin the program. If you
wish to add a startup symbol for your boot loader, this can be placed
before the _stext call. The debugger will ignore it, and just look at
the symbol it is looking for, while the boot loader will find its symbol
where it needs it

Regards,
Luke

==============================
Luke DaDalt
Technical Support Engineer
Cosmic Software, Inc.
(781)932-2556
web: www.cosmic-software.com
==============================
*NEW*
Submit your support issues ONLINE
http://www.cosmic-software.com/forms/support_form.htm -----Original Message-----
From: chanojmarian [mailto:]
Sent: Monday, February 02, 2004 12:57 AM
To:
Subject: [68HC12] Problem modifying the Cosmic Startup file.

Hi,
I am using cosmic tool where reset vector maps to"_stext" symbol
which is defined in crtsi.s file(startup file).crtsi.s is an assembly
language prog where it initialises all the ram, EEPROM and jump
to "_main" routine.
I want to define my own symbol other than _stext and do required
initialisations. This is basically for my bootloader.

I am facing a problem. If i change the symbol name from "_stext"
to some other name, while downlading thru BDM i am getting following
error " Can not find entry point, set PC to entry point"

Rgds,
Manoj --------------------To learn more
about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu
o learn more about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu