-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pioasm-go dependency #12
Comments
The PR got merged into the sdk's That said, I'm not (yet) sure how to get pioasm to compile without installing arm compilers, breaking a leg, etc etc. I thought I'd be able to mkdir build; cd build
cmake .. -DPICO_PLATFORM=host
make ...but the resulting makefile does nothing but build some pico stdlib tests. |
To build pioasm tool I've found you can do the following (starting from scratch, fresh directory, no environment variables only make and cmake required): git clone [email protected]:raspberrypi/pico-sdk.git
cd pico-sdk/tools/pioasm
cmake . && make Should output something like:
and finally test your new binary by running help: ./pioasm --help
usage: pioasm <options> <input> (<output>)
Assemble file of PIO program(s) for use in applications.
<input> the input filename
<output> the output filename (or filename prefix if the output format produces multiple outputs).
if not specified, a single output will be written to stdout
options:
-o <output_format> select output_format (default 'c-sdk'); available options are:
c-sdk
C header suitable for use with the Raspberry Pi Pico SDK
python
Python file suitable for use with MicroPython
hex
Raw hex output (only valid for single program inputs)
json
Machine-formatted output for integrating with external tools
ada
Ada specification
go
Go file suitable for use with TinyGo. See https://github.com/tinygo-org/pio.
-p <output_param> add a parameter to be passed to the output format generator
-v <version> specify the default PIO version (0 or 1)
-?, --help print this help and exit |
Too easy 😝 thanks! |
Changing any .pio code in any example and running
go generate
will encounter the dependency of a special version ofpioasm
which is not mentioned in the readme but available at @soypat 's fork of pico-sdk on the pioasm-go branch.However, there are errors compiling pioasm on that branch. The following code should address those issues.
Perhaps a readme in the examples dir could be added to explain this aspect of the library's usage, for those who are not already otherwise familiar with or using the pico-sdk
The text was updated successfully, but these errors were encountered: