[JN1569] Switch External crystal OSC to Internal OSC FAIL?

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

[JN1569] Switch External crystal OSC to Internal OSC FAIL?

跳至解决方案
1,378 次查看
manhnc
Contributor I

Hi ,

I'm beginner of JN1569 NXP chip.

I'm have test flow:

1. JN1569 startup with external crystal oscillator => it work OK.

2. pull Down 1 pin of external crystal => device fail and I wait it restart with internal oscillator BUT it don't restart.

My question:

1. JN1569 default start with internal or external OSC? And can I configure it? What is the document descript it?

2. When JN1569 working with external crytal OSC, external OSC fail, can it switch to internal OSC? If it can, how can I configure it?

Can you help me @mario_castaneda 

Thanks a lot for your help,

 

0 项奖励
1 解答
1,324 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @manhnc,

This condition is called a stack overflow and results in the processor stack corrupting the heap (and potentially the application).

Please look at the vAHI_SetStackOverflow function that describes this scenario.

JN516x Integrated Peripherals API User Guide

Regards,

Mario

在原帖中查看解决方案

0 项奖励
7 回复数
1,338 次查看
manhnc
Contributor I

Hi @mario_castaneda ,

Thanks for your reply. 

I will read and check again.

And I have others question:

What happens when nxp JN1569 "Ram usage full"?

1. watchdog Reset?

OR

2. Hard fault? and where is Hard Fault handler in code (I use BeyoundStudio and skd  JN-SW-4170).

What is the document descript it?

Thanks for your help.

0 项奖励
1,325 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @manhnc,

This condition is called a stack overflow and results in the processor stack corrupting the heap (and potentially the application).

Please look at the vAHI_SetStackOverflow function that describes this scenario.

JN516x Integrated Peripherals API User Guide

Regards,

Mario

0 项奖励
1,308 次查看
manhnc
Contributor I

Hi @mario_castaneda ,

Thank you so much, I will implement and test it.

And I have others question: 

>> Is there any hardware failure ("hard fault") in the JN5169 chip? And where I can handle it?

Scenario, when my device real work, some device suspended (can't restart again). It works again only I power off reset it. I think it can be "hard fault" when restart (please view my image).   

Thank you,

jn5169.png

0 项奖励
1,279 次查看
manhnc
Contributor I

Hi @mario_castaneda ,

I find more Exception in file name "AppBuildExceptionHandlers.ld". (attach file).

1. But, I don't know what exception name handle "Hard fault"? what does document descript all exception?

 2. How can I work with this file ("*.ld")?

Thank you should much!

Manhnc

 
 

 

 

 

 

 

 

0 项奖励
1,258 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @manhnc,

Please look at the datasheet, you will find the information regarding the specific issue that you are facing.

9.5 Interrupt system https://www.nxp.com/docs/en/data-sheet/JN5169.pdf

Regards,

Mario

0 项奖励
1,237 次查看
manhnc
Contributor I

Thanks @mario_castaneda,

It useful for me. Now, I ready clear about it. 

Further, I also have question:

Is this configuration (attach image) will make MCU restart (cold startup) when it occur?

ExceptionFile (3).PNG

0 项奖励
1,358 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @manhnc,

The crystal oscillator is driven from an external 32kHz crystal connected to DIO9 and DIO10. If used, the external clock module is connected to DIO9.

1. JN1569 default start with internal or external OSC? And can I configure it? What is the document descript it?

JN516x Integrated Peripherals API User Guide 

The default clock source is the internal 32kHz RC oscillator. The functions described below only need to be called if an external 32kHz clock source is required. Once an external source has been selected, it is not possible to switch back to the internal RC oscillator.

Also, you could refer to the same chapter, the same document. 

Let me know if you have any further questions.

Regards,

Mario

0 项奖励