SRecCvt add device mc9s12g128

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SRecCvt add device mc9s12g128

Jump to solution
1,754 Views
daxuefenfei
Contributor II

I want to convert banked S19 records to linear,but the device do not have MC9SG128, I need add it myself. I try it ,but it can not work, Any help would be greatly appreciated

.22152_22152.png$BW_E_T1}R{G}6`@H]`[NZO.png

Labels (1)
1 Solution
1,236 Views
iggi
NXP Employee
NXP Employee

It looks like you have add the S12G128 into DeviceInfo.dat file, but some parameters are wrong. PPAGE Base is not 38, but actually it should be 8.

But still, don't get how it works on Win7.

sreccvt-di-s12g128.PNG.png

View solution in original post

0 Kudos
Reply
5 Replies
1,236 Views
daxuefenfei
Contributor II

my configuration parameter:

11111.png

WIN7 result:

2222.png

but there is no output file.

XP result:

3333.jpg

1,237 Views
iggi
NXP Employee
NXP Employee

It looks like you have add the S12G128 into DeviceInfo.dat file, but some parameters are wrong. PPAGE Base is not 38, but actually it should be 8.

But still, don't get how it works on Win7.

sreccvt-di-s12g128.PNG.png

0 Kudos
Reply
1,236 Views
feiteng
Contributor I

QQ图片20160822162936.png

请问DeviceInfo.Dat文件怎么修改才能加入所需要的单片机类型呢?我按照如下图修改可以得到正常运行的程序(修改AN4258SW的DEMO,然后通过boot下载),但是DeviceType变为S12时,生成的S19文件和上图配置时产生的S19就不太一样,程序也不能运行。是类型填错了嘛?从哪里可以找到MCU类型呢?

如图:

图1:DeviceType = "s1218"时,生成的S19

1.png

图2:图1:DeviceType = "s12"时,生成的S19

2.png

0 Kudos
Reply
1,236 Views
kef2
Senior Contributor V

Are you using Codewarrior? If so, then there's no need to use SRecCvt. CW burner is much better and flexible converting S records. Converted file is stored in project \bin folder with extension *.phy. Perhaps you bumped in to the bug of CW Project generated bbl files for S12G devices?

Please find in your bbl lines below and change destination to 0x28000 (delete one '8').

origin = 0x0A8000

destination = 0x288000

Also find these two and change destination to 0x31400 . Flash at CPU address 0-3FFF in S12G belongs to page 0xC. Destination should be origin + 0xC*0x4000.

origin = 0x1400

destination = 0x001400

0 Kudos
Reply
1,236 Views
daxuefenfei
Contributor II

Sorry, I did not clearly describe the problem,I want to make can bootloader for mc9s12g128 based on a Serial Bootloader (AN4258).But the device list do not have mc9s12g128,so i need add by myself.

0 Kudos
Reply