Skip to content

PIO program refuse to load: wait instruction need to have the GPIO nb-16 if pio_gpio_base is 16 #2342

Open
@FreddyVRetro

Description

@FreddyVRetro

Hi,

I did a code that need pio_gpio_base set to 16.
However, we must use the GPIO pin number -16 in the wait instruction.

if we do this, the pio asm set the used_gpio_range to 2, and the sdk refuse to load the program with the return code -11

GPIO used for the wait : Pin 30 then goes to 14 when we remove 16.

I had to send the instruction via the register X, then do "mov exec,X" to have it doing the wait on the correct pin.
(It works like that)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions