Experimental version of ODrive Firmware
Written in http://ivorylang.org/
dnf install arm-none-eabi-gcc-cs arm-none-eabi-newlib
To build all images:
./standalone-setup.sh # required if you don't have checked out ivory tower and ivory-tower-stm32 repos in .. make
Application for testing encoder capture mode with general purpose timer.
Stores counts in counter variable, direction in dir, these can be inspected in gdb with p counter and p dir.
Application for testing DRV8301 communications.
Talks to two DRV8301s sharing SPI bus. Polls status register every 1000ms after successful initialization.
Run make to build all test applications. Specific application can be built with make APP loaded with make APP-load and make APP-run.
To load PWM test application run:
to also issue run and start application after loading use:
to just run gdb with new binary without loading:
make pwm-gdb # issuing 'load' in gdb == pwm-load # running both 'load' and 'run' == pwm-run
With BlackMagic Probe:
arm-none-eabi-gdb --ex 'target extended-remote /dev/ttyACM0' --ex 'monitor swdp_scan' --ex 'attach 1' --ex 'load' build/can2uart-test/image