Samuel Sadok
284a77eb1b
fix timeouts in DFU script
2018-03-16 22:05:19 -07:00
Samuel Sadok
8bf6793a86
make liveplotter not steal focus and terminate as expected
2018-03-15 17:56:14 -07:00
Samuel Sadok
0fd3b43a39
[python tools] use IPython.embed() by default
...
exmplore_odrive.py no longer needs to be executed with
"ipython -i explore_odrive.py" but can launch an embedded IPython
command prompt by itself. If IPython is not available, the script falls
back to checking for normal python interactive mode.
2018-03-15 17:55:26 -07:00
Oskar Weigl
ea5b547bda
add functools printing for windows
2018-03-13 17:09:33 -07:00
Samuel Sadok
93913f3600
improve user experience when trying DFU on old firmware
2018-03-13 14:32:13 -07:00
Samuel Sadok
55e3df163d
silence irrelevant error message
2018-03-12 23:46:09 -07:00
Samuel Sadok
ab3af19018
add support for uint64_t to protocol
2018-03-12 23:43:16 -07:00
Samuel Sadok
791f9e3e35
[python tools] improve detection of ODrive in DFU mode
...
The main thread of dfu.py now only waits for an ODrive
in DFU mode and then starts flashing. A background thread
is started to detect an ODrive in normal mode and send it
into DFU mode.
2018-03-11 19:48:36 -07:00
Samuel Sadok
db38055741
[python tools] add cancellation_token to find_any, add my_odrive.__channel__
2018-03-11 18:20:19 -07:00
Oskar Weigl
3ab44fb58d
make dfu run on windows
2018-03-05 20:36:46 -08:00
Oskar Weigl
dff77b4f1c
Merge branch 'devel' into sam_dfu
2018-03-04 02:58:40 -08:00
Oskar Weigl
8b0be90bca
Merge branch 'devel' into sam_nvm
2018-03-02 22:01:56 -08:00
Oskar Weigl
7cd68e0cff
move to tools
2018-03-02 15:38:18 -08:00
Oskar Weigl
2c8c712eda
Merge branch 'devel' into sam_nvm
2018-02-25 23:42:14 -08:00
Samuel Sadok
50436709db
Reorganize config parameters
...
All configurable parameters are now exposed on the protocol in objects called "[...].config". Those are the same parameters that are saved to NVM.
2018-02-25 19:59:29 -08:00
Oskar Weigl
225adb7e88
Merge branch 'devel' into DRV-error-readouts
2018-02-23 11:47:22 -08:00
Samuel Sadok
fdd5e0c65e
Allow specifying the serial number when updating the firmware via USB
2018-02-22 23:50:13 -08:00
Samuel Sadok
dde6ba5a57
Add DFU over USB
...
`make dfu` now invokes a python script which puts the ODrive into DFU mode uploads the .hex file to the device via USB.
2018-02-22 19:49:10 -08:00
Samuel Sadok
91f36963df
add python dfuse module by plietar
2018-02-22 19:49:10 -08:00
Quincy Jones
f75799fd3c
Fix a naming bug on drv_error -> drv_fault
2018-02-21 14:23:12 -06:00
Quincy Jones
ef0f8dbf85
Add microsecond delay functions.
...
Add DRV register/fault status reporting.
2018-02-21 13:41:42 -06:00
Oskar Weigl
df6d0bf3a7
comment out incorrect version check
2018-02-13 19:37:36 -08:00
Oskar Weigl
13e3befc8c
also reset halt/stall on writes
2018-02-12 01:52:34 -08:00
Oskar Weigl
8054e0f5da
reporting of usb halt conditions
2018-02-12 01:02:45 -08:00
Oskar Weigl
0625bd39ef
automatic recovery from stalled/halted endpoint
2018-02-12 00:52:09 -08:00
Oskar Weigl
154855ea91
Merge branch 'devel' into liveplotter
2018-02-12 00:11:18 -08:00
Oskar Weigl
620cc1f738
Merge branch 'master' into devel
2018-02-12 00:10:38 -08:00
Oskar Weigl
b9b21b95bf
make python comms debug easier
2018-02-12 00:02:13 -08:00
Oskar Weigl
69d63a6e79
Merge branch 'devel' into liveplotter
2018-02-11 21:39:05 -08:00
Oskar Weigl
03d90035e3
Update protocol.py
2018-02-11 13:34:21 -08:00
Brandon Kinman
0f64f03d67
Added compatibility for python 2.7
2018-02-05 20:31:41 -08:00
Oskar Weigl
fc891c418d
Update protocol.py
2018-01-11 17:41:29 -08:00
Oskar Weigl
5c455a3eaf
add IPython support for explore_odrive.py
2017-11-26 16:29:46 -08:00
Oskar Weigl
e4400d1f26
remove old test_communication.py
2017-11-26 15:26:51 -08:00
Oskar Weigl
a792b93234
split .vscode settings between firmware and tools folder
2017-11-26 14:16:18 -08:00
Samuel Sadok
f881f60207
update communication documentation
2017-11-13 22:41:14 +01:00
Samuel Sadok
91f61c076b
miscelleneous python updates
...
accept arguments in explore_odrive.py (like in test_communication.py)
implement --discover argument
fix spurious property fetch
fix read-only properties
better serial port detection for windows
revert demo.py
2017-11-13 19:37:17 +01:00
Oskar Weigl
db2fae3231
change var to my_odrive
2017-11-10 12:39:59 -08:00
Oskar Weigl
1a06f54c48
add explore_odrive.py
2017-11-09 22:04:09 -08:00
Oskar Weigl
4ed06c8a57
make first version of liveplotter
2017-11-09 21:10:40 -08:00
Oskar Weigl
49754af4cc
add comments
2017-11-08 23:53:15 -08:00
Oskar Weigl
5dd1d01688
add comments
2017-11-08 22:15:16 -08:00
Oskar Weigl
8d4eca1145
Merge branch 'cppify' into sam_protocol
2017-11-07 19:28:05 -08:00
Samuel Sadok
7de12a4639
change sync byte to 0xAA
2017-11-06 21:27:36 +01:00
Samuel Sadok
a4cc254b2b
filled complete endpoint table for new protocol
...
(ok we need an autogenerator for this)
2017-11-06 20:30:33 +01:00
Samuel Sadok
9fb0c9a839
minor comment clean-ups
2017-11-06 19:13:06 +01:00
Samuel Sadok
8523c40832
fix UART protocol, enable legacy protocol coexistence on USB port
2017-11-06 18:31:26 +01:00
Samuel Sadok
23bd60efbe
python tool: add cmdline option to select a specific device (on USB or serial)
2017-11-06 18:29:59 +01:00
Samuel Sadok
3cba81e6f7
make remote precedure calls work
2017-11-06 14:38:15 +01:00
Samuel Sadok
ba46e5fb29
update test_communication.py to new backend, deferred USB processing, move CRC16 to stream based layer, some protocol refactoring
2017-10-30 23:39:21 +01:00