INIT _BootStart

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

INIT _BootStart

575件の閲覧回数
collapsar
Contributor I

Hi,community

It is not said that INIT _BootStart is the same as VECTOR 0 _BootStart, because there is also VECTOR 0 _BootStart in the fileproject.prmBootloader_S12XAN4258SW, so I will comment out the INIT _BootStart, but the Error Link Error: L1115: Function _Startup not found, why?

And about INIT _BootStartI found out

If I comment out the INIT _BootStart and add the start12.c file of the other project to this project, there will be no errors to compile again. What does the INIT keyword do?

0 件の賞賛
返信
1 返信

470件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi,

in prm file,this line of code is to define and initialize vector table.

VECTOR 0 _BootStart

Above code defines function _BootStart at reset vector 0. But it can't be used as application init entry point.Command INIT is needed instead.

INIT command defines the initialization entry point for the application. The INIT command is mandatory for assembly application and optional otherwise. It cannot be specified more than once in the prm file.

in Bootloader_S12X, function _BootStart is defined in assembly file. So INIT _BootStart is mandatory in prm file. If you remove it, application will not find the application entry point.


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信