I am importing a project from classic CW to CW 10. With classic CW the following assigns a global variable to a designated address
#pragma DATA_SEG RAM
int variable_name @0x0070;
The CW 10. gives syntax errors and bad character sequence encountered: @
What is the correct method of assigning a variable to a specific address with CW 10.
Thanks in advance.
Solved! Go to Solution.
which CW10 version do you work with? if you use CW10.4 with 8/16bit MCU, this will not produce this message.
and is CW10.4 is our recommendation. here is the 10.4 webpage and download:
https://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-MICROCONTROLLERS
which CW10 version do you work with? if you use CW10.4 with 8/16bit MCU, this will not produce this message.
and is CW10.4 is our recommendation. here is the 10.4 webpage and download:
https://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-MICROCONTROLLERS
Thanks to all for the help and responses. Updated to version 10.4 from 10.2 and the errors are gone.
This code is built well in my CW10.4. What's the your CodeWarrior version? Could you please attach a simple project to help us reproudce this error? Thanks!
What MCU is it?
Try generating a project for that MCU then see how interrupt vectors are places.