I really like Sumio Morioka's PIO emulator, but it doesn't suit my preferred workflow.
Instead of writing the PIO assembly code yourself in a .pio file, it requires you to write your PIO program as a generator program, which you compile and run to (a) generate the PIO assembly code, and (b) run the simulation.
While a perfectly valid approach, I prefer not to work that way.
So I wrapped the emulator as a command line utility that better suits my needs: https://github.com/esky-software/piosim
It reads the program from a hex file generated by 'pioasm -o hex' and sets up PIO configuration according to command line arguments.
It's got some rough edges but works great for my limited needs.
I've verified that it compiles & runs under gcc (g++ version 11) and VS2022.
Instead of writing the PIO assembly code yourself in a .pio file, it requires you to write your PIO program as a generator program, which you compile and run to (a) generate the PIO assembly code, and (b) run the simulation.
While a perfectly valid approach, I prefer not to work that way.
So I wrapped the emulator as a command line utility that better suits my needs: https://github.com/esky-software/piosim
It reads the program from a hex file generated by 'pioasm -o hex' and sets up PIO configuration according to command line arguments.
It's got some rough edges but works great for my limited needs.
I've verified that it compiles & runs under gcc (g++ version 11) and VS2022.
Statistics: Posted by jeremyd — Mon Mar 03, 2025 6:28 pm — Replies 0 — Views 58