USBTMC DAC firmware for the stm32f4 discovery board
This is a usbtmc 2 channel function generator on an stm32F4 discovery board. Bandwidth and all that sort of stuff is limited, we're using the onboard DAC, but the flexibility can't be beat.
Current status:
getting started....
git submodule update --init
make -C libopencm3
make -C scpi-parser/libscpi
make -C device/stm32_ocm3/stm32f4discovery
(assuming openocd installed and operational)
make -C device/stm32_ocm3/stm32f4discovery flash
See device/native-tcp-server for a host build of the core functionality. (No DAC, but all the wavetable generation and SCPI parsing code can be tested)
sudo cp 68-disco-tmc.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
[plug in or reset board here]
virtualenv --system-site-packages .venv
. .venv/bin/activate
pip install -e python-usbtmc
python tmcpoke.py # should toggle the red led on the board