You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pioasm replaces labels with line numbers. This is unfortunate. Please don't do that.
(a) Micropython can deal with textual labels, no problem at all.
(b) For C I'd like to be able to refer to a specific instruction so that I can send a jump command to PIO. Currently I need to look at the generated code and/or count instructions, and woe is me when that location changes.
For (a): Maybe just add an option to pioasm to dump all labels/defines and their values (either as text, code, or as comments included in the generated file to stdout, or as additional debug info to stderr).
Activity
lurch commentedon May 4, 2022
Section 3.3.5 of https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf says "A PUBLIC label is exposed to the user code in the same way as a PUBLIC .define."
Is that what you're looking for, or are you requesting something different?
kilograham commentedon Jul 11, 2022
This is quite a change to fix... is the PUBLIC not a workaround?
magy00 commentedon Mar 12, 2025
For (a): Maybe just add an option to
pioasmto dump all labels/defines and their values (either as text, code, or as comments included in the generated file to stdout, or as additional debug info to stderr).