Kinetis MK10 using external oscillator and PE

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

Kinetis MK10 using external oscillator and PE

4,024 Views
jfortuny
Contributor II

Hello

 

I am migrating form Colfire V1 to Kinetis K10 MCU, as I had in Colfire I have problem using UART at speeds over 9600 bps using the internal oscillator and FLL that is why I am using an external programmable Oscillator at 47.9232 Mhz so I get exact speeds at 115200, 38400 and 9600 bps.

 

Using the Kinetis Design Studio 3.0  I tried many times to enable the external Oscillator.

 

First I enable tho option "RTC Oscillator" and the frequency is "47.9232 MHz" and the capacitor load "0pF", I made this in the CPU Clock Settings.

 

Then in "Clock Sources Settings"in the "Clock source settings0" in "External reference clock" I select "RTC Oscillator" and the frequencies set to 47.9232 MHz.

 

Then in "MCG Settings" in "MCG mode" always when I choose something different than "FEI" I get the following errors ;

 

ERROR: Unexpected status of script: Drivers\Common\SetReg8.prg, please contact Freescale support.

 

ERROR: Unexpected status of script: Drivers\Kinetis\Kinetis_MCG.prg, please contact Freescale support.

 

I adjust the settings in "Clock configurations" so I don't have any other errors, also adjust the components that give errors after changing the frequency like IIC module, RTI module but I get the errors, I see a red X in the CPU but none of the settings inside the CPU have errors.

 

Finally when I want to generate code I get this error "The Processor Expert project MyProject was NOT generated because of some errors. See the Problems view for more details.

 

Many thanks for your help

Labels (1)
0 Kudos
Reply
7 Replies

3,692 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

can you please upload your project here? i will check it directly on my side. thanks!


Have a great day,
Zhang Jun

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

0 Kudos
Reply

3,692 Views
jfortuny
Contributor II

Hello

Thanks, please confirm that you received my project.

Best regards

Juan David Fortuny

De: ZhangJennie

Enviado el: jueves, 18 de junio de 2015 0:03

Para: Juan Fortuny

Asunto: Re: - Kinetis MK10 using external oscillator and PE

ZhangJennie <http://jiveon.jivesoftware.com/mpss/c/nAA/PDcDAA/t.1nz/dX2-9d8sTNuLI8X-98C1iA/h1/eqhG5v9o4WV1pCmWaB03cUjBPgRj-2F3GoJUaXSZ409bTuA0ocwt5VQBPvrZ0tSaGYjDWuKJVj0d0rHTz7WLwU2bRpoUFCZp0KGFEP3QCt5Zs-3D> in Kinetis Design Studio - View the full discussion <http://jiveon.jivesoftware.com/mpss/c/nAA/PDcDAA/t.1nz/dX2-9d8sTNuLI8X-98C1iA/h2/eqhG5v9o4WV1pCmWaB03cUjBPgRj-2F3GoJUaXSZ409bTy-2FKE9i0oWERW2adUWGLnObvyFdjlGZIUKEZPEx6Aq3YiYSVCHCCBlDmHdJjFzl0c-3D>

0 Kudos
Reply

3,692 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

yes, i received the project.

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

3,692 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Juan,

I just sent you detailed answer based on your project  via SR1-3968604941.

briefly. There is incorrect settings of the RTC oscillator in the project . The problem in this project is incorrect usage of the RTC oscillator. The RTC oscillator expects 32kHz crystal on its input. This shall be checked by PEx in the cpu component (currently, it is not).


The development team are going to add the RTC oscillator range checking in the next release. thank you for bringing the problem to our attention.


Have a great day,
Zhang Jun

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

0 Kudos
Reply

3,692 Views
jfortuny
Contributor II

Hello

Sorry for the delay responding.

I will do what you suggested and let you know

Thanks

0 Kudos
Reply

3,692 Views
jfortuny
Contributor II

Hello

Many thanks.

I attach the project. Please let me know if I have to up load it in the discussion.

Best regards

Juan David Fortuny

De: ZhangJennie

Enviado el: jueves, 18 de junio de 2015 0:03

Para: Juan Fortuny

Asunto: Re: - Kinetis MK10 using external oscillator and PE

ZhangJennie <http://jiveon.jivesoftware.com/mpss/c/nAA/PDcDAA/t.1nz/dX2-9d8sTNuLI8X-98C1iA/h1/eqhG5v9o4WV1pCmWaB03cUjBPgRj-2F3GoJUaXSZ409bTuA0ocwt5VQBPvrZ0tSaGYjDWuKJVj0d0rHTz7WLwU2bRpoUFCZp0KGFEP3QCt5Zs-3D> in Kinetis Design Studio - View the full discussion <http://jiveon.jivesoftware.com/mpss/c/nAA/PDcDAA/t.1nz/dX2-9d8sTNuLI8X-98C1iA/h2/eqhG5v9o4WV1pCmWaB03cUjBPgRj-2F3GoJUaXSZ409bTy-2FKE9i0oWERW2adUWGLnObvyFdjlGZIUKEZPEx6Aq3YiYSVCHCCBlDmHdJjFzl0c-3D>

0 Kudos
Reply

3,692 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Juan.

I myself and PE support team had produced the problem.

it's in progressing. Will keep you informed.


Have a great day,
Zhang Jun

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

0 Kudos
Reply