Creating S19 file for a function

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Creating S19 file for a function

跳至解决方案
1,329 次查看
NiravM
Contributor I

Hello,

 

       I want to create an S19 file for few function on fixed locations in the memory. 

 

       The problem is that, I have few functions that I want to burn on a particular locations in the memory.There is already a code in the microcontroller which accepts an S19 file format.I want to generate an S19 file of my functions that I can give as an input to the microcontroller. 

 

       Is there any method through which i can generate an S19 file of these functions and that too on fixed 

memory locations ??????

 

Regards,

Nirav

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
593 次查看
CrasyCat
Specialist III

Hello

 

The Burner command file syntax is flexible enough to allow something like that.

 

Inside of the .bbl file you can specify a source address, a destination address and a length.

 

Playing with these 3 parameters should allow you to catch the code from a specific function and place it at a specified destination address.

 

Suppose you want to get S19 record for function myFunc, which is located at address 0xD000 and it size is 0x20 byte. And suppose you want to place that code at address 0xC000.

 

The .bbl will look as follows:

OPENFILE myFunc.s19"
format=motorola
busWidth=1
origin=0xD000
len=0x20
destination=0xC000
SRECORD=Sx
SENDBYTE 1 "myApp.abs"
CLOSE

Please refer to the manual {Install}\Help\PDF\Build_Tools_Utilities.pdf, chapter "Burner Utility", section "Batch Burner" for more information on batch burner commands. 

 

CrasyCat

在原帖中查看解决方案

0 项奖励
回复
1 回复
594 次查看
CrasyCat
Specialist III

Hello

 

The Burner command file syntax is flexible enough to allow something like that.

 

Inside of the .bbl file you can specify a source address, a destination address and a length.

 

Playing with these 3 parameters should allow you to catch the code from a specific function and place it at a specified destination address.

 

Suppose you want to get S19 record for function myFunc, which is located at address 0xD000 and it size is 0x20 byte. And suppose you want to place that code at address 0xC000.

 

The .bbl will look as follows:

OPENFILE myFunc.s19"
format=motorola
busWidth=1
origin=0xD000
len=0x20
destination=0xC000
SRECORD=Sx
SENDBYTE 1 "myApp.abs"
CLOSE

Please refer to the manual {Install}\Help\PDF\Build_Tools_Utilities.pdf, chapter "Burner Utility", section "Batch Burner" for more information on batch burner commands. 

 

CrasyCat

0 项奖励
回复