HaddingtonDynamics / Dexter

GNU General Public License v3.0
363 stars 84 forks source link

Check Firmware against Gateware version on startup #68

Closed JamesNewton closed 5 years ago

JamesNewton commented 5 years ago

See: https://github.com/HaddingtonDynamics/Dexter/wiki/read-from-robot#read-from-fpga-memory

for how to implement a check by the DexRun.c program to verify that the INPUT_OFFSET define matches the number of input parameters in the FPGA. If they don't match, instead of crashing, DexRun can set the DexError code number to something DDE can recognize that there is a firmware vs gateware mismatch.

JamesNewton commented 5 years ago

Implemented in https://github.com/HaddingtonDynamics/Dexter/commit/ce61cf652dc591dab8ba1096834206f7c551ce72#diff-691272021fae98368efb598f8e089c16