jancumps / pico_scpi_usbtmc_labtool

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

Develop set 5 #66

Closed u77345 closed 11 months ago

u77345 commented 11 months 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 11 months ago

the build should be OS and IDE independent.

jancumps commented 11 months 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 11 months 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.