jancumps / pico_scpi_usbtmc_labtool

LabVIEW compatible instrument on a Raspberry Pico
https://github.com/jancumps/pico_scpi_usbtmc_labtool/wiki
MIT License
13 stars 17 forks source link

Develop set 5 #66

Closed u77345 closed 1 year ago

u77345 commented 1 year ago

Two implementation options to send SRQ:

  1. Docker based build with patching TinyUSB. Can be done without Docker, by doing
cd $PICO_SDK_PATH/lib/tinyusb/src/class
git apply $CURRENT_DIR/usbtmc_device.patch
  1. Hardcoded assumed constant variables sent to TUSB - formally correct, does not work.
jancumps commented 1 year ago

the build should be OS and IDE independent.

jancumps commented 1 year ago

merged into experimental #47 Allows us to test if it works across installations.
github and cmake edits are OK. The docker / linux part should not become part of main - We 'd need to find how to do the things without them.

u77345 commented 1 year ago

The commit as-is requires the patch to be applied on the pico-ask, to patch Tinyusb. Worked as expected.

Alternatively, without the patch, with #ifdef USE_LOCAL_TUSB_HACK evaluating true it implements the “in place” experiment, failing on my pico.