I am working on a PIO program that is getting a "PIOASMError: delay too large" message. Code snippet followsWhen attempting to execute the program in Thonny, I get "PIOASMError: delay too large" with an error messages pointing to the "nop() [8]" line. See attached screenshot pio-sideset-delay-error-1-fs8.png. Changing that line to not have a delay results in the next line, "nop() [31]" causing the same error. See attached xcreenshot pio-sideset-delay-error-2-fs8.png. Finally, removing the delays for the last 2 mop() lines runs fine. See attached screenshot pio-sideset-delay-error-3-fs8.png.
I do not see anything wrong with the any of the code samples. I originally had a delay of 15 on the .side(0) line, but found viewtopic.php?t=338082 explaining that the maximum delay time is 7 when sideset is used.
Note: the actual pioProg is mush more involved. I just extracted the part producing the error.
What am I missing/not understanding? Thanks for any help.
Code:
nop() .side(0) [7]nop() [8]nop() [31]nop() [31]
I do not see anything wrong with the any of the code samples. I originally had a delay of 15 on the .side(0) line, but found viewtopic.php?t=338082 explaining that the maximum delay time is 7 when sideset is used.
Note: the actual pioProg is mush more involved. I just extracted the part producing the error.
What am I missing/not understanding? Thanks for any help.
Statistics: Posted by jganci — Fri Jan 17, 2025 11:34 pm — Replies 2 — Views 38