On the PDB behaviour

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

On the PDB behaviour

2,099件の閲覧回数
pietrodicastri
Senior Contributor II

Good evening

I am using the PDB together with the ADC. 

The system is working but sequencing the errors produce a surprising behaviour.

If during the run I disable the interrupts for a while, the PDB is not serviced and it produces the errors

and does not stop to produce them. It is continuously entering the interrupt for the errors, the ADC stops to 

work, at least does not enter any more in the ADC interrupt. 

The PDB interrupt is set for a high priority for limiting the problem, it seems it helps.

The problem seems to be unrecoverable, if I try to deinit, stop. reinit, or whatever the PDB does not recover.

The application stops.

I am facing the problem reducing the timer interrupt frequency, but I need a better asset.

Is there a way to handle the situation in a safe way???

Using the MK64...

Thank You

ラベル(1)
タグ(1)
0 件の賞賛
返信
10 返答(返信)

1,733件の閲覧回数
pietrodicastri
Senior Contributor II

I am using C90TFS...

Sorry...

If I have no solution I will use another external flash for surviving...

Thank You

0 件の賞賛
返信

1,733件の閲覧回数
martinzhang
Contributor III

Hello Mark,

I have the same problem of PDB error in my project. In my project, there are some code needs to disable interrupt for a while and I found there is a PDB error occurred sometime. So I change the code which needs to disable the interrupt and it works well. But there is one thing I still worry about that in function of refresh watchdog timer and there still has the code of disable interrupt. Do you think this code will cause PDB error sooner or later?

Best Regards,

Martin

0 件の賞賛
返信

1,733件の閲覧回数
mjbcswitzerland
Specialist V

Martin

Disabling interrupts during watchdog trigger is very short and will not cause a problem.

Regards

Mark

0 件の賞賛
返信

1,733件の閲覧回数
pietrodicastri
Senior Contributor II

I use the "MK64FN1M0VMD12"..

Thank You

0 件の賞賛
返信

1,733件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi,

It seems weird.

Maybe you can unitize the C90TFS flash driver to execute the flash operations and have a try.

C90TFS:

http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe?fromsite=zh-Hans


Have a great day,
Ping

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

0 件の賞賛
返信

1,733件の閲覧回数
pietrodicastri
Senior Contributor II

Good morning

Thank You for follow up.

I will try to do better.

The PDB and the ADC are used together for producing the sampling activity. The PDB has an 8KHz period. 

The two ADCs are chained with the pre triggers of the PDB. Everything has worked fine.

Now I need to save some data in the controller flash.

When I write in the flash the PDB does two ugly things:

a) process the pre trigger errors 

b) stops to work irreversibly.

In the interrupt pf the PDB with interrupt errors enabled the flags are cleared, but it reenters without end with these error interrupt flags active. 

In this condition the ADC is no more active.

Whatever I do to recover the situation the PDB is irreversibly dead.

I tried to stop deinit and reinit but no way.

The killing action is the flash erase/write process. 

Something in this process enters the mcu in a status not tolerable with the PDB.

I see the situation can be more quiet if I decrease the period of the PDB. But I need a more consistent solution..

Thank You

0 件の賞賛
返信

1,733件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi,

Thanks for your reply.

According to your reply, I've learned that PDB can trigger the ADC operation well without any flash operation such flash erase/writing process, is it correct?

And I was wondering if you can share the codes, then I can replicate the kind of issue on my site.

I'm looking forward to your reply.
Have a great day,
Ping

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

0 件の賞賛
返信

1,733件の閲覧回数
pietrodicastri
Senior Contributor II

Hi

Just to remark, The PDB triggers the ADC and it works fine. If somewhere in the application I write in the flash, the crash is automatic. 

Unfortunately my project is really big, extracting the code for an example takes too much time for the scheduling I have.

It seems to me the problem is right on the silicon. The PDB does not tolerate an incident. Once an error occurs it will be unusable ...

Help me as You can....

Thank You

0 件の賞賛
返信

1,733件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi,

Thanks for your reply.

And what's product do you use?
Have a great day,
Ping

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

0 件の賞賛
返信

1,733件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi,

Thank you for your interest in NXP Semiconductor products and the opportunity to serve you.

I have had a a brief look through the statement above, however I'm still confused with it.

So I was wondering if you can introduce the issue in details again.
Have a great day,
Ping

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

0 件の賞賛
返信