Trace for Kinetis M series error

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

Trace for Kinetis M series error

574 Views
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

Labels (1)
0 Kudos
5 Replies

455 Views
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 Kudos

455 Views
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 Kudos

455 Views
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 Kudos

455 Views
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 Kudos

455 Views
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 Kudos