Error message C44222

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

Error message C44222

跳至解决方案
2,709 次查看
roberthiebert
Senior Contributor I

CW IDE V5.9.0 Build 5294. I have a project using an MC9S12C64 with existing code that I would like to modify, but I am having no success getting it to compile. When I try Make, I get this error message:

ERROR: C4422: ' Missing

flash.asm line 51

 

and the warning message:

Warning: C4450: Multi character constant

flash.asm line 51

The error points to line 51 in the flash.asm file, but it is a line of information commented out with ;* at the beginning of the line.

Can anyone help me with this?

Also, does CW generate an object file and if so where can I find it?

Regards,

Robert

0 项奖励
回复
1 解答
2,309 次查看
roberthiebert
Senior Contributor I

I found the non connection problem. I am working with a new Win 11 machine and didn't install the USBDM drivers. After installing them I was able to connect to the controller. I am going to give up on the "C" program and try to translate it to assembler. 

在原帖中查看解决方案

0 项奖励
回复
10 回复数
2,676 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @roberthiebert 

Could you please share your project, I help you check on my side. If your project cannot be public. You can also create a private ticket. https://support.nxp.com/s/?language=en_US  

 

BR

Alice

0 项奖励
回复
2,670 次查看
roberthiebert
Senior Contributor I

Hi Alice,

Thanks for your response. I don't see any reason why it can't be public so how do I share it?

I am quite new to C programming so I may be missing something obvious.

Regards,

Robert

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

Hello @roberthiebert 

Please attach it through "browse" button as below:

Alice_Yang_0-1724925661001.png

 

BR

Alice

 

0 项奖励
回复
2,635 次查看
roberthiebert
Senior Contributor I

Is this what you need?

Regards,

Robert

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

Hello @roberthiebert 

I open your project and compile it on my side, it seems there is no error. Just some Warnings.

Alice_Yang_0-1725526329391.png

 

 

BR

Alice

0 项奖励
回复
2,527 次查看
roberthiebert
Senior Contributor I

Thanks Alice. I apologize for my late reply but I was away from my computer for a couple of weeks.

There are a lot of unused files in the zip file I sent you, and I need to use the BDM. I tried to create a new project with just the files that I need to keep things a simple as possible. When I did this and tried to compile, it came up with several errors that I don't know how to deal with. I'm attaching the zip file.

Regards,

Robert

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

Hello @roberthiebert 

I recommend you a simple method. Use a simple demo for example hello world. Confirm there is no issue hen build. Then copy & paste your application files and code into the project.

 

BR

Alice

0 项奖励
回复
2,323 次查看
roberthiebert
Senior Contributor I

Up until this point I was just writing code but I didn't have a processor to test it on. Since then I have built a test module with the MC9S12C64 processor. I have a Freescale USBDM that works well on another project with a MC9S12XEP100.

I started a new simple project for the MC9S12C64 in absolute assembly and had Code Warrior do create the initial .asm file. When I connect the USBDM to the processor the power indicator on the USBDM lights up. When I connect the USB cable to the computer the USB indicator lights up, but when I try to load the program I get the following message:

"The debugger can not connect to the P&E BDC interface or targeted hardware board."

I have no idea where to even start to troubleshoot this. Any suggestions would be appreciated

Regards,

Robert

0 项奖励
回复
2,310 次查看
roberthiebert
Senior Contributor I

I found the non connection problem. I am working with a new Win 11 machine and didn't install the USBDM drivers. After installing them I was able to connect to the controller. I am going to give up on the "C" program and try to translate it to assembler. 

0 项奖励
回复
2,525 次查看
roberthiebert
Senior Contributor I
 
0 项奖励
回复