Trace for Kinetis M series error

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

Trace for Kinetis M series error

588 次查看
venkatkrishna
Contributor II

Hi,

        I am new to codewarrior 10.6 and trying the demo code "emeter demo".

1) i want to know the time to execute a loop.I tried as per the "profile and trace guide.pdf".But it is reporting error.

    please help to solve this.How to include sa_mtb.c in an existing project.

2) I want to use 16x2 LCD and nead delay loops in micro and milliseconds with respect to CPU frequency.Please

    help me how to configure.

3) Is there any method to convert a project made for MKL series into MKM series.As the projects were looking totaly different.

 

Thanks/regards,

 

K.Venkatavaradhan

标签 (1)
0 项奖励
5 回复数

469 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello ,

1) What about the steps? Or how to reproduce your error ?

You can directly add the file you used.

pastedImage_0.png

2) You can use one timer to create the delay function.

3)I recommend you create one new project about your KM chip,then  copy the  applicaiont

code from the KL to KM .

Hope it helps

ALice

0 项奖励

469 次查看
venkatkrishna
Contributor II

Hi,

       Thank you for your reply.I tried it.But still the error comes.I attached the screen shot.trace_eror.jpg

0 项奖励

469 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Venkat,

So have you rebuild your project ?

And also  i recommend you one DOC about the usage of Trace on CW :

https://mcuoneclipse.com/2013/01/13/debugging-arm-cortex-m0-hard-fault-with-mtb-trace/   

Hope it helps

Alice

0 项奖励

469 次查看
venkatkrishna
Contributor II

Hello Alice,

                 Thanks for your support.

I rebuild the project and click the "debug" command.It show the report as below.Pls Help me to solve this.MTB_err1.jpg

Also i want to know the way to reduce the reponse time of volatge and current readings(currently too slow) in this project.

Where to find the meterlib.c?.

Thanks/regards,

K.Venkatavaradhan

0 项奖励

469 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Venkat ,

Please check the .ld file whether mtb_buf is added to the m_data section.

Also check whether the project includes the file of "sa_mtb.c"

pastedImage_1.png

You can also create one simple project , then test this function ,

if it still have error , you can send the project to me .

BR

Alice

0 项奖励