Open pguyot opened 11 months ago
Hey I just came across this. I don´t know if this solves your issue as well but I had to downgrade to the pico sdk 1.4.0 to get USB output working.
So my code looked like this in the end. Mind you: The sendByte calls are just implementation specific. They are used to ensure that the USB device will receive the output of the program running as the emulator tends to start running the compiled program before the USB device is connected and ready.
First, let me write this is very cool. I'd like to use @mingpepe 's core1 branch to run CI tests for AtomVM which extensively uses core1.
I got AtomVM's hello_pico sample to work but I had to alter compilation flags to use uart instead of usb for serial.
The
demo/emulator-run.ts
script works well withhello_uart.hex
, but I can't seem to get it working withhello_usb.hex
. I tried to adapt the code fromdemo/micropython-run.ts
, but failed: nothing is being printed. What am I missing?Also as a side note, why is
demo/emulator-run.ts
using a hex file instead of uf2 file(s)?