Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4427

MicroPython • PIOASM error message "delay too large" when "nop() .side(0) [7]" followed by "nop() [8]"

$
0
0
I am working on a PIO program that is getting a "PIOASMError: delay too large" message. Code snippet follows

Code:

nop()    .side(0) [7]nop()                  [8]nop()                 [31]nop()                [31]
When 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.
pio-sideset-delay-error-3-fs8.png

pio-sideset-delay-error-2-fs8.png

pio-sideset-delay-error-1-fs8.png

Statistics: Posted by jganci — Fri Jan 17, 2025 11:34 pm — Replies 2 — Views 38



Viewing all articles
Browse latest Browse all 4427

Trending Articles