how can I use makefile to build my project with mc9s12xep100mal ?

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

how can I use makefile to build my project with mc9s12xep100mal ?

893 Views
clkbitclkbit
Contributor II

Is it possible that the make tool totally replaces the IDE ?

0 Kudos
5 Replies

748 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi clkbit

The HC12 makefile sample code can be found in

{your CW install directory}\(CodeWarrior_Examples)\MakeFileSample_HC12.

This sample code is available for all HC(S)12 derivatives. I think it is good for you to refer if you use MC9S12XEP100 as the method is the same.

 In the sample code, you need change INSTALL PATH in build.bat, corresponding to your own CW installation.  NOTE: blank character is forbidden for path!

 

Attachment is TN83 on how to use the Make utility. Please FYI.

For the debugger we recommend you to have a look to the \help\pdf\Debugger_HC12.pdf manual.

Refer to the chapter Book IV - Commands

Hope this helps.


Have a great day,
Jennie Zhang

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

748 Views
clkbitclkbit
Contributor II

can you tell me what does "_conv_global_to near" mean please ?

0 Kudos

748 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Could you be more specific? which demo code includes "_conv_global_to near"?

Best Regards,

Jennie Zhang

0 Kudos

748 Views
clkbitclkbit
Contributor II

hi,Jive!Thankyou very much for your replay.

I use the mcu "mc9s12xep100" in my project.And recently I have a problem.

I think the problem is caused by lack of kowledge about memory control map in the

chip. So l need help very much.

I found the value of variable table was abnormal when I use a porter to access it

this variable is stored in paged ram.

"_conv_global_to near" is a routing is datapage.c file which is generate by code warrior 5.1.But i can not understand :.when and why it would be used.

the follow is code:

//demo.c file

#pragmapush#pragmaDATA_SEG__GPAGE_SEGPAGED_RAM

DCC_COM_CTRL_Tg_dcc_com_t[20] = ;

#pragmapop

//routine

voidapp_dcc_com_send(void)

{

DCC_COM_CTRL_T* __farp_com_ctrl_t;

p_com_ctrl_t = g_dcc_com_t; // prolem is the pointer p_com_ctrl_t can not get the right value.

}

And look the two picture please

why is RAM FC 748 why not PAGED_RAM?

Thank you very much!

Best wishes

0 Kudos

748 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

With your piece of code, I can't tell how you define p_com_ctrl_t, g_dcc_com_t, etc.

Please create a demo project to show me the problem, upload it here.

Thus I can check it directly.

Thanks,

Jennie Zhang

0 Kudos