intermittent RTIO PLL lock failure #66

Closed
opened 2020-07-20 13:54:22 +08:00 by sb10q · 8 comments

When using internal clock...

Core 0 panic at runtime/src/main.rs:125:9: RTIO PLL failed to lock

Happens rarely (few % of the boots).

When using internal clock... ```text Core 0 panic at runtime/src/main.rs:125:9: RTIO PLL failed to lock ``` Happens rarely (few % of the boots).
Poster
Owner

d65e893d1c might fix it.
Let me know if you still see the problem.

The delay while holding the reset is most likely not necessary, according to the datasheet a 5ns long reset pulse is sufficient.

Could be incorrect timer operation with 1ms delay (@astro)?

https://git.m-labs.hk/M-Labs/artiq-zynq/commit/d65e893d1c7b16a833f093e155a141b6fc1bd207 might fix it. Let me know if you still see the problem. The delay while holding the reset is most likely not necessary, according to the datasheet a 5ns long reset pulse is sufficient. Could be incorrect timer operation with 1ms delay (@astro)?

d65e893d1c might fix it. Let me know if you still see the problem.

Still seeing it every boot.

Could be incorrect timer operation with 1ms delay (@astro)?

It was delaying "up to" instead of "at least" the specified milliseconds. I'm pushing a correction but that is still not fixing this issue.

> d65e893d1c might fix it. Let me know if you still see the problem. Still seeing it *every* boot. > Could be incorrect timer operation with 1ms delay (@astro)? It was delaying "up to" instead of "at least" the specified milliseconds. I'm pushing a correction but that is still not fixing this issue.

This does not happen for my board (connected to zeus). Is it possible that this is somewhat related to the hardware?

This does not happen for my board (connected to zeus). Is it possible that this is somewhat related to the hardware?
Poster
Owner

I'm now resetting the PLL again and retrying when it fails to lock. Does that help?

I'm now resetting the PLL again and retrying when it fails to lock. Does that help?

I'm now resetting the PLL again and retrying when it fails to lock. Does that help?

No. It is now retrying twice per second without end.

>I'm now resetting the PLL again and retrying when it fails to lock. Does that help? No. It is now retrying twice per second without end.
Poster
Owner

Are you using the internal RTIO clock as you should? Do you have a mismatch between gateware and firmware?

Are you using the internal RTIO clock as you should? Do you have a mismatch between gateware and firmware?
Poster
Owner

@pca006132 have you seen any RTIO PLL problems (including retries) since the timer was fixed? Seems to me everything is working correctly now.
We can keep the retry code as it may be useful in case the user forgets to connect the external clock before boot.

@pca006132 have you seen any RTIO PLL problems (including retries) since the timer was fixed? Seems to me everything is working correctly now. We can keep the retry code as it may be useful in case the user forgets to connect the external clock before boot.

@pca006132 have you seen any RTIO PLL problems (including retries) since the timer was fixed? Seems to me everything is working correctly now.
We can keep the retry code as it may be useful in case the user forgets to connect the external clock before boot.

No, seems working correctly.

> @pca006132 have you seen any RTIO PLL problems (including retries) since the timer was fixed? Seems to me everything is working correctly now. > We can keep the retry code as it may be useful in case the user forgets to connect the external clock before boot. No, seems working correctly.
sb10q closed this issue 2020-08-04 14:12:48 +08:00
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/artiq-zynq#66
There is no content yet.