SRecCvt add device mc9s12g128

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

SRecCvt add device mc9s12g128

ソリューションへジャンプ
2,415件の閲覧回数
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

ラベル(1)
1 解決策
1,897件の閲覧回数
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 件の賞賛
返信
5 返答(返信)
1,897件の閲覧回数
daxuefenfei
Contributor II

my configuration parameter:

11111.png

WIN7 result:

2222.png

but there is no output file.

XP result:

3333.jpg

1,898件の閲覧回数
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 件の賞賛
返信
1,897件の閲覧回数
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 件の賞賛
返信
1,897件の閲覧回数
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 件の賞賛
返信
1,897件の閲覧回数
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 件の賞賛
返信