Generated Srec file has wrong only 16bit address

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

Generated Srec file has wrong only 16bit address

跳至解决方案
6,948 次查看
KARTHKSARODE
Contributor III

Hi team 

I was generating Srec file , everytime we build a project (Enabled create flash image checkbox in project settings)

So I was able to generate Srec file , everytime a build is done 

But the problem is it is creating only 16bit address , Srec file (PFA)

Please let me know if I have to modify any items in settings tab

 

Screenshot (40).pngScreenshot (40).png

 

Best Regards

Karthik SV

 

 

Best Regards
KARTHIK SV
标记 (1)
0 项奖励
回复
1 解答
6,871 次查看
RadekS
NXP Employee
NXP Employee

Hello KARTHIK SV,

You may also modify the behavior of objcopy command by the appropriate options.

The "--srec-len=xx" allows configuring the length of S-records.

The "--srec-forceS3" allows selecting 32bit addresses in generated S-records.

Please edit the project properties, go to section Standard S32DS Create Flash Image -> General and add these options into the Other flags field.

For example:

image.pngimage.png

Note: do not forget to clean the project before the next build.

I hope it helps you.

Best regards

Radek

在原帖中查看解决方案

0 项奖励
回复
4 回复数
6,914 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Karthik,

I just tested it.

The S32DS selects the S-record type based on the linker file.

If it fits within to the 16bit address space, it will create an s-record with 16bit addressing.

 

You can add the following to the linker file, and it should generate a 32bit-address s-record:

danielmartynek_0-1639060130098.pngdanielmartynek_0-1639060130098.png

danielmartynek_1-1639060177109.pngdanielmartynek_1-1639060177109.png

danielmartynek_0-1639393633583.pngdanielmartynek_0-1639393633583.png

 

Regards,

Daniel

 

 

 

 

 

0 项奖励
回复
6,891 次查看
KARTHKSARODE
Contributor III

Hi

Please find the modified linker file & generated srec file 

Let me know if there is any error in linker file 

 

Note : To upload here , I have modified those file as .txt file

 

Regards

KARTHIK SV

Best Regards
KARTHIK SV
0 项奖励
回复
6,894 次查看
KARTHKSARODE
Contributor III

Hi Daniel

I tried doing the same thing , what you have suggested !! 

Once build is done , I can see the MEMORY Section m_dfash created in .map file

But Srec still has 16 bit address , not 32 bit address 

Note : I have modified the S32K1xx_flash.ld linker file

Please let me know , if i have to make changes in linker file 

 

Regards

KARTHIK SV

Best Regards
KARTHIK SV
0 项奖励
回复
6,872 次查看
RadekS
NXP Employee
NXP Employee

Hello KARTHIK SV,

You may also modify the behavior of objcopy command by the appropriate options.

The "--srec-len=xx" allows configuring the length of S-records.

The "--srec-forceS3" allows selecting 32bit addresses in generated S-records.

Please edit the project properties, go to section Standard S32DS Create Flash Image -> General and add these options into the Other flags field.

For example:

image.pngimage.png

Note: do not forget to clean the project before the next build.

I hope it helps you.

Best regards

Radek

0 项奖励
回复