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
已解决! 转到解答。
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.
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
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
Hello @roberthiebert
I open your project and compile it on my side, it seems there is no error. Just some Warnings.
BR
Alice
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
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
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
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.