HCS12 Smart linker + how to create S28 file for a specific function..

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

HCS12 Smart linker + how to create S28 file for a specific function..

ソリューションへジャンプ
1,043件の閲覧回数
desroc01
Contributor II

Hello,

 

I have a general question about the HC12 Linker.

 

Is it be possible to generate the "S records" for one specific C function ?

How can I do that with CodeWarrior for HCS12 ? (via command line maybe?)

Right now, when I Build my project, it generate one big .s28 for all the functions and data together...

 

My goal is to use the same area of memory for 2 (or more) C functions.

Then by having multiple targets in the project I could create only the "S record" of each function.

 

Finally, I could use a homemade "load and execute" function to send and run these C functions.

 

In the worst case, it is possible to generate just the "linked binary (MCU) opcode" that I could "load and execute" ?

 

Thanks

ラベル(1)
1 解決策
756件の閲覧回数
trytohelp
NXP Employee
NXP Employee

Hi,

A SRecord file can be generated by the linker during linking phase (of Project Build) or by the burner tool using a .bbl file and executed after linker.

In all case, the Srecord file is generated using the .abs file.

The .abs file is the executable file which can be download on board using the debugger.

This file contains the code and debug information.

The process you want to implement could be done via the ROMLib.

Please have a look to the Chapter 9 ROM Libraries at \CWS12v5.1\Help\PDF\Build_Tools_Utilities.pdf

Regards

Have a great day,
Pascal
NXP Technical Support

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

元の投稿で解決策を見る

1 返信
757件の閲覧回数
trytohelp
NXP Employee
NXP Employee

Hi,

A SRecord file can be generated by the linker during linking phase (of Project Build) or by the burner tool using a .bbl file and executed after linker.

In all case, the Srecord file is generated using the .abs file.

The .abs file is the executable file which can be download on board using the debugger.

This file contains the code and debug information.

The process you want to implement could be done via the ROMLib.

Please have a look to the Chapter 9 ROM Libraries at \CWS12v5.1\Help\PDF\Build_Tools_Utilities.pdf

Regards

Have a great day,
Pascal
NXP Technical Support

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