Downloading to DEVKIT-S12G128

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

Downloading to DEVKIT-S12G128

跳至解决方案
2,433 次查看
danielmilutinov
Contributor III

Hi,

 

I have just purchased the DEVKIT-S12G128 and need help to download code to it using Windows 7 and CodeWarrior v5.9.0.

 

I have installed the P&E Drivers v12.4.0.0 and connected the DEVKIT-S12G128 to the PC using the supplied USB cable. The demonstration code (flashing LED) starts running on the DEVKIT-S12G128. Below is a screenshot of Device Manager:

176126_176126.pngImage 6.png

 

 I wrote and built without errors a short assembly program to flash the LED. I selected "P&E USB BDM Multilink" as per the instructions in the "SOFTWARE INTEGRATION GUIDE (SWIG)":

176127_176127.pngImage 7.png

 

When I press the "Debug" icon the "True-Time Simulator & Real-Time Debugger" screen says "Unable to open specified port" and the "P&E HC(S)12 Connection Manager v2.74.00.01" screen says "Undetected. Disconnect/Connect USB cable. Click Refresh List". This does not work. It also has a link to "FAQ #29", which advises to uninstall and install the P&E Drivers, which I did. This did not work either.

176128_176128.pngImage 8.png

 

Please help!

 

Dan 

标签 (1)
0 项奖励
回复
1 解答
2,071 次查看
danielmilutinov
Contributor III

Great, it is now working on my laptop too! Again no patch was required and I set the jumper on the board to 3.3V, but this time provided 9V to the barrel connector, and was able to download code to the DEVKIT-S12G128 without any problems!

So the problem must have been the version of CodeWarrior I was using. I see that even though the IDE versions are the same, the version of the CodeWarrior Development Studio that wasn't working was 5.1, build 10221. The working version is 5.2, build 151201. 

I've never been so happy to see an LED blink!

Thank you for your help Alice.

Regards,

Daniel 

在原帖中查看解决方案

0 项奖励
回复
8 回复数
2,071 次查看
danielmilutinov
Contributor III

Hi Alice,

Thank you for your reply. I have tried a number of things, including the patch, and still cannot download to the board. P&E believe there may be an issue with CodeWarrior v5.1 and suggest I install CodeWarrior v10.x and try again.

I installed CodeWarrior v5.1 because it said to do so in the NXP Software Integration Guide in the Documentation section of the DEVKIT-S12G128. I hope I will be able to install CodeWarrior v10.x on my system after installing CodeWarrior v5.1. Do I need to uninstall CodeWarrior v5.1 first?

Dan

0 项奖励
回复
2,071 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Daniel,

Sorry the CW v10.x doesn't support S12G chips.

Have you offered 12v power supply to the board ?

pastedImage_1.png

BR

Alice

0 项奖励
回复
2,071 次查看
danielmilutinov
Contributor III

Hi Alice,

Thank you for your reply. I tried with a 12V 1A power supply to the barrel connector (with the jumper on the board set to 3.3V and also with the jumper set to USB) after installing the patch, without success. The CodeWarrior version I am using is 5.9.0.

P&E have said:

"I think this may be an issue of OSBDM not being supported on CW5.1. What you should try is installing
CW10.x software from NXP and see if that works with your OSBDM connection.

OSBDM for Codewarrior 5.1 was not managed by P&E, so the design and firmware may not follow our API
and specification to work with our DLLs, both old and the new patched versions.

If you had our multilink or cyclone hardware and attached it to the 6-pin BDM header on the board then you can use our DLLs to connect to the target"

I don't know what else to try. Perhaps I can install CodeWarrior on another laptop and try again? I am a hobbyist and cannot justify the additional expense of purchasing the multilink or cyclone hardware. I am considering returning the DEVKIT-S12G128 for a refund. 

Please advise. 

Dan

0 项奖励
回复
2,071 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Daniel,

- This OSBDM software is produced by P&E Micro , so if you said it doesn't support CW5.1,

maybe it really doesn't support .

- Sorry the CW10.x doesn't support this chip.

-Sorry I have not this board, so I can't test it on my side. And there is a plate about OSBDM on community :OSBDM and TBDML   you can ask your question here to check whether it can work well .

There is a similar question CW5.1 with P&E obsolete USB Multilink debugger.   

Radek said he use Win7 64 bit system ,

pastedImage_3.png

So on one hand you can ask on OSBDM and TBDML  , on the other hand , you can borrow

others' debugger .

BR

Alice

0 项奖励
回复
2,071 次查看
danielmilutinov
Contributor III

Hi Alice,

Thank you for the advice. I downloaded CodeWarrior for HCS12(X) v5.2 on another laptop and it is working! What a relief! No patch was required, and I set the jumper on the board to 3.3V and provided 12V to the barrel connector. 

I downloaded CodeWarrior for HCS12(X) v5.2 from the link below:

CodeWarrior® Development Tools Suite - Special|NXP  

The IDE version of the CodeWarrior I just downloaded is 5.9.0 and the P&E drivers were automatically installed. Interestingly, the IDE version of the CodeWarrior I installed on my laptop about a month ago is also 5.9.0, but the drivers weren't automatically installed (I downloaded them from the P&E website and installed them later). I can't remember from were I installed CodeWarrior on my laptop, it may have been from a link in a user guide.  

I will now uninstall CodeWarrior on my laptop and install it from the link above and post the result.

Dan 

0 项奖励
回复
2,072 次查看
danielmilutinov
Contributor III

Great, it is now working on my laptop too! Again no patch was required and I set the jumper on the board to 3.3V, but this time provided 9V to the barrel connector, and was able to download code to the DEVKIT-S12G128 without any problems!

So the problem must have been the version of CodeWarrior I was using. I see that even though the IDE versions are the same, the version of the CodeWarrior Development Studio that wasn't working was 5.1, build 10221. The working version is 5.2, build 151201. 

I've never been so happy to see an LED blink!

Thank you for your help Alice.

Regards,

Daniel 

0 项奖励
回复
2,071 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Daniel,

Thanks for your sharing .

BR

Alice

0 项奖励
回复
2,071 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Dan,

When use the classic CodeWarrior with P&E debug , there is a patch you need install,

about the detail information please refer to here :

P&E Microcomputer Systems: Over 30 years as an Industry leader in Embedded Systems Development Tools... 

  pastedImage_2.png

pastedImage_3.png

Hope it helps


Have a great day,
Alice Yang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复