AN4258 bootloader on S12XEP100

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

AN4258 bootloader on S12XEP100

跳至解决方案
3,092 次查看
FrankZy
Contributor I

Hello everyone!

    Recently, I have tested AN4258 on MCS12XEP100.I used hyperterminal recommended by the documentation,and I follow the instructions in the documentation step by step . Everthing works fine until it comes to steps 7 and 8 ,“Type “ b ” to program the flash” . I have typed "b" in the hyperterminal ,and the converted S19 file was selected, but nothing happened ,the software becomes stuck but nothing new is displayed in the window .However,when I disconnect, the software window displays some random strings .

Does anyone know what to do about it?

Thanks in advance !

标记 (1)
0 项奖励
回复
1 解答
3,048 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

 

Since the PARTID "0xCC95" is newer than the AN4258, I suggest adding this PARTID into the code.

So, you can create a new #define in PartID.h which belongs to //S12XE 1024k flash. And add this case into this functions "static UINT8 EraseFlash(void)" and "static UINT8 ProgramFlash(void)"

(According to RM, "0xCC95" is related to 1N35H and 0N35H maskset.)

 

I hope ti helps.

Best regards,

Diana

 

 

在原帖中查看解决方案

0 项奖励
回复
5 回复数
3,078 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

 

Could you, please, check the maskset of your device? "The list of the currently supported mask sets and part IDs can be found in the file PartID.h in the bootloader project."

 

Thank you.

Best regards,

Diana

0 项奖励
回复
3,071 次查看
FrankZy
Contributor I

Hello Diana,

   Yes , I have noticed the pard ID before . When I type "a" in the hyperterminal , the window displays the string "Unknown Part ID" . So I went to check the screen prints on the device , and the mask set is "5M48H" which can be found  in the file PartID.h .So , I  still  don't know how to solve the problem.

Thank you for your reply and look forward to receiving your further suggestions!

0 项奖励
回复
3,066 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

 

Thank you for your details.

This is probably the root cause of your issue and we should find out why PARTID is not recognized.

Could you, please, debug the code and check what is the value of PARTID?

dianabatrlova_0-1608037833000.png

 

Thank you.

Best regards,

Diana

 

0 项奖励
回复
3,054 次查看
FrankZy
Contributor I

Hello ,

Thank you for your advice !

Follow your advice, I have debugged another code and find the value of PARTID is "0xCC95" which doesn't match the mask set number "5M48H" on the device.

Can you show me what to do next?

Thank you!

0 项奖励
回复
3,049 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

 

Since the PARTID "0xCC95" is newer than the AN4258, I suggest adding this PARTID into the code.

So, you can create a new #define in PartID.h which belongs to //S12XE 1024k flash. And add this case into this functions "static UINT8 EraseFlash(void)" and "static UINT8 ProgramFlash(void)"

(According to RM, "0xCC95" is related to 1N35H and 0N35H maskset.)

 

I hope ti helps.

Best regards,

Diana

 

 

0 项奖励
回复