Error message C44222

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

Error message C44222

Jump to solution
3,032 Views
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 Kudos
Reply
1 Solution
2,632 Views
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. 

View solution in original post

0 Kudos
Reply
10 Replies
2,999 Views
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 Kudos
Reply
2,993 Views
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 Kudos
Reply
2,981 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @roberthiebert 

Please attach it through "browse" button as below:

Alice_Yang_0-1724925661001.png

 

BR

Alice

 

0 Kudos
Reply
2,958 Views
roberthiebert
Senior Contributor I

Is this what you need?

Regards,

Robert

0 Kudos
Reply
2,918 Views
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 Kudos
Reply
2,850 Views
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 Kudos
Reply
2,813 Views
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 Kudos
Reply
2,646 Views
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 Kudos
Reply
2,633 Views
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 Kudos
Reply
2,848 Views
roberthiebert
Senior Contributor I
 
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1939754%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EError%20message%20C44222%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1939754%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ECW%20IDE%20V5.9.0%20Build%205294.%20I%20have%20a%20project%20using%20an%20MC9S12C64%20with%20existing%20code%20that%20I%20would%20like%20to%20modify%2C%20but%20I%20am%20having%20no%20success%20getting%20it%20to%20compile.%20When%20I%20try%20Make%2C%20I%20get%20this%20error%20message%3A%3C%2FP%3E%3CP%3EERROR%3A%20C4422%3A%20'%20Missing%3C%2FP%3E%3CP%3Eflash.asm%20line%2051%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Eand%20the%20warning%20message%3A%3C%2FP%3E%3CP%3EWarning%3A%20C4450%3A%20Multi%20character%20constant%3C%2FP%3E%3CP%3Eflash.asm%20line%2051%3C%2FP%3E%3CP%3EThe%20error%20points%20to%20line%2051%20in%20the%20flash.asm%20file%2C%20but%20it%20is%20a%20line%20of%20information%20commented%20out%20with%20%3B*%20at%20the%20beginning%20of%20the%20line.%3C%2FP%3E%3CP%3ECan%20anyone%20help%20me%20with%20this%3F%3C%2FP%3E%3CP%3EAlso%2C%20does%20CW%20generate%20an%20object%20file%20and%20if%20so%20where%20can%20I%20find%20it%3F%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3ERobert%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1971567%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Error%20message%20C44222%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1971567%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20found%20the%20non%20connection%20problem.%20I%20am%20working%20with%20a%20new%20Win%2011%20machine%20and%20didn't%20install%20the%20USBDM%20drivers.%20After%20installing%20them%20I%20was%20able%20to%20connect%20to%20the%20controller.%20I%20am%20going%20to%20give%20up%20on%20the%20%22C%22%20program%20and%20try%20to%20translate%20it%20to%20assembler.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1970720%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Error%20message%20C44222%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1970720%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EUp%20until%20this%20point%20I%20was%20just%20writing%20code%20but%20I%20didn't%20have%20a%20processor%20to%20test%20it%20on.%20Since%20then%20I%20have%20built%20a%20test%20module%20with%20the%20MC9S12C64%20processor.%20I%20have%20a%20Freescale%20USBDM%20that%20works%20well%20on%20another%20project%20with%20a%20MC9S12XEP100.%3C%2FP%3E%3CP%3EI%20started%20a%20new%20simple%20project%20for%20the%20MC9S12C64%20in%20absolute%20assembly%20and%20had%26nbsp%3BCode%20Warrior%20do%20create%20the%20initial%20.asm%20file.%20When%20I%20connect%20the%20USBDM%20to%20the%20processor%20the%20power%20indicator%20on%20the%20USBDM%20lights%20up.%20When%20I%20connect%20the%20USB%20cable%20to%20the%20computer%20the%20USB%20indicator%20lights%20up%2C%20but%20when%20I%20try%20to%20load%20the%20program%20I%20get%20the%20following%20message%3A%3C%2FP%3E%3CP%3E%22The%20debugger%20can%20not%20connect%20to%20the%20P%26amp%3BE%20BDC%20interface%20or%20targeted%20hardware%20board.%22%3C%2FP%3E%3CP%3EI%20have%20no%20idea%20where%20to%20even%20start%20to%20troubleshoot%20this.%20Any%20suggestions%20would%20be%20appreciated%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3ERobert%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1959379%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Error%20message%20C44222%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1959379%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F5684%22%20target%3D%22_blank%22%3E%40roberthiebert%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20recommend%20you%20a%20simple%20method.%20Use%20a%20simple%20demo%20for%20example%20hello%20world.%20Confirm%20there%20is%20no%20issue%20hen%20build.%20Then%20copy%20%26amp%3B%20paste%20your%20application%20files%20and%20code%20into%20the%20project.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EAlice%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1959116%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Error%20message%20C44222%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1959116%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1959115%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Error%20message%20C44222%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1959115%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%20Alice.%20I%20apologize%20for%20my%20late%20reply%20but%20I%20was%20away%20from%20my%20computer%20for%20a%20couple%20of%20weeks.%3C%2FP%3E%3CP%3EThere%20are%20a%20lot%20of%20unused%20files%20in%20the%20zip%20file%20I%20sent%20you%2C%20and%20I%20need%20to%20use%20the%20BDM.%20I%20tried%20to%20create%20a%20new%20project%20with%20just%20the%20files%20that%20I%20need%20to%20keep%20things%20a%20simple%20as%20possible.%20When%20I%20did%20this%20and%20tried%20to%20compile%2C%20it%20came%20up%20with%20several%20errors%20that%20I%20don't%20know%20how%20to%20deal%20with.%20I'm%20attaching%20the%20zip%20file.%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3ERobert%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1948040%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Error%20message%20C44222%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1948040%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F5684%22%20target%3D%22_blank%22%3E%40roberthiebert%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20open%20your%20project%20and%20compile%20it%20on%20my%20side%2C%20it%20seems%20there%20is%20no%20error.%20Just%20some%20Warnings.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_0-1725526329391.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_0-1725526329391.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297318i0E078FA1A0B38F7F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_0-1725526329391.png%22%20alt%3D%22Alice_Yang_0-1725526329391.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EAlice%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1943680%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Error%20message%20C44222%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1943680%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIs%20this%20what%20you%20need%3F%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3ERobert%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1943358%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Error%20message%20C44222%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1943358%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F5684%22%20target%3D%22_blank%22%3E%40roberthiebert%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20attach%20it%20through%20%22browse%22%20button%20as%20below%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_0-1724925661001.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_0-1724925661001.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F296045iFE0AB4EEAF3F6B8E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_0-1724925661001.png%22%20alt%3D%22Alice_Yang_0-1724925661001.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EAlice%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1942424%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Error%20message%20C44222%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1942424%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Alice%2C%3C%2FP%3E%3CP%3EThanks%20for%20your%20response.%20I%20don't%20see%20any%20reason%20why%20it%20can't%20be%20public%20so%20how%20do%20I%20share%20it%3F%3C%2FP%3E%3CP%3EI%20am%20quite%20new%20to%20C%20programming%20so%20I%20may%20be%20missing%20something%20obvious.%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3ERobert%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1942150%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Error%20message%20C44222%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1942150%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F5684%22%20target%3D%22_blank%22%3E%40roberthiebert%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20share%20your%20project%2C%20I%20help%20you%20check%20on%20my%20side.%20If%20your%20project%20cannot%20be%20public.%20You%20can%20also%20create%20a%20private%20ticket.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.nxp.com%2Fs%2F%3Flanguage%3Den_US%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.nxp.com%2Fs%2F%3Flanguage%3Den_US%3C%2FA%3E%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EAlice%3C%2FP%3E%3C%2FLINGO-BODY%3E