[Solved]7i76e missing field IO with custom firmware
18 Aug 2020 19:28 #178619
by drmclem
Replied by drmclem on topic 7i76e missing field IO with custom firmware
Hi all,
Thanks for all your help - I now have all my old functionality back on the 7i76e.
Missing firmware - yes solved - I had indventently removed both instances of the sserial module (which I hadn't realised were needed for the field IO). Putting one back fixed the problem - and still left me with the required pins for a "TTL" serial.
Here is the snippet if anyone is interested.
I had a few other odd problems which I'm not sure how they arose - in particular I got SCFIFO errors but only when running the z stepper. But I had the pktuart hal update function on a much slower thread (100ms) than the main servo thread (to try and minimise serial through put). Anyway - moving that function onto the main servo thread seemed to stop that error.
Anayway - all good - on to the next step ....
Thanks for all your help - I now have all my old functionality back on the 7i76e.
Missing firmware - yes solved - I had indventently removed both instances of the sserial module (which I hadn't realised were needed for the field IO). Putting one back fixed the problem - and still left me with the required pins for a "TTL" serial.
Here is the snippet if anyone is interested.
IOPortTag & x"00" & StepGenTag & StepGenDirPin, -- I/O 00 embedded 7I76
IOPortTag & x"00" & StepGenTag & StepGenStepPin, -- I/O 01
IOPortTag & x"01" & StepGenTag & StepGenDirPin, -- I/O 02
IOPortTag & x"01" & StepGenTag & StepGenStepPin, -- I/O 03
IOPortTag & x"02" & StepGenTag & StepGenDirPin, -- I/O 04
IOPortTag & x"02" & StepGenTag & StepGenStepPin, -- I/O 05
IOPortTag & x"03" & StepGenTag & StepGenDirPin, -- I/O 06
IOPortTag & x"03" & StepGenTag & StepGenStepPin, -- I/O 07
IOPortTag & x"00" & NullTag & x"00", -- I/O 08 replacing stepgen 4
IOPortTag & x"00" & PWMTag & PWMAOutPin, -- I/O 09 PWM replacing stepgen 4 Step
IOPortTag & x"00" & SSerialTag & SSerialTX0Pin, -- I/O 10 Is this the Field IO SSerial ?
IOPortTag & x"00" & SSerialTag & SSerialRX0Pin, -- I/O 11 Is this the Field IO SSerial ?
IOPortTag & x"00" & PktUARTTTag & PktUTDataPin, -- I/O 12 TX
IOPortTag & x"00" & PktUARTRTag & PktURDataPin, -- I/O 13 RX
IOPortTag & x"00" & QCountTag & x"03", -- I/O 14
IOPortTag & x"00" & QCountTag & x"02", -- I/O 15
IOPortTag & x"00" & QCountTag & x"01", -- I/O 16
I had a few other odd problems which I'm not sure how they arose - in particular I got SCFIFO errors but only when running the z stepper. But I had the pktuart hal update function on a much slower thread (100ms) than the main servo thread (to try and minimise serial through put). Anyway - moving that function onto the main servo thread seemed to stop that error.
Anayway - all good - on to the next step ....
Please Log in or Create an account to join the conversation.
Time to create page: 0.061 seconds