Canot set pin as output

More
9 years 10 months ago #84779 by PCW
Replied by PCW on topic Canot set pin as output
Just checked, reload works fine here

Is it possible you built your bitfile with older source code so you dont have have the reload option?

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #84858 by yaqwsx
Replied by yaqwsx on topic Canot set pin as output
I've tried it once more - --reaload isn't supported for 6i24 (mesaflash gives this as error message).

However I run into another issue. When I configure a GPIO as an output, the physical pin is always high (I can measure 5V) no matter what is set in HAL (Halmeter shows expected pin values). What could be wrong?

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #84859 by PCW
Replied by PCW on topic Canot set pin as output
Possible errors:

Wrong physical pin (verify pin as input, ground to test)

Error in bitfile (does a standard supplied 5i24 bitfile work?)

On mesaflash I didn't try 6I24 since all standard config files are for 5I24
(try --reload with a standard 5i24 bitfile, works for me)

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #84861 by yaqwsx
Replied by yaqwsx on topic Canot set pin as output
I program 6i24 as 5i24. Issuing "sudo mesaflash --device 5i24 --reload" does not work: "ERROR: FPGA reload not supported".

I am pretty sure I have the right pin. Even if I try unmodified firmware (but compiled by myself) - e.g. SVST2_8_72 it behaves the same. Is it possible to download precompiled firmware? I only found firmwares supplied by Mesa, however all of them are meant to be used with their breakout boards.

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #84864 by PCW
Replied by PCW on topic Canot set pin as output
"ERROR: FPGA reload not supported"
likely means that you have built your bitfile from older source
(the reload function was added maybe a 1.5 years ago or so)

Did you verify that you have the correct pin by reading the input?

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #84872 by yaqwsx
Replied by yaqwsx on topic Canot set pin as output
I am building it from master branch of git://git.linuxcnc.org/git/hostmot2-firmware.git. Is there a newer source?

Thank you for your help! I nearly solved the problem. When I was playing with the configuration, I noticed the pin has a correct logic value during Axis start-up and than after half-a-second it goes wrong. The reason for this was that the watchodg time-outed and made all IO pins inputs. If I raise watchdog time-out from 5 to 50 ms, everything works. However it a mystery for me, why it time-outed (it means it skipped more than 5 servo-thread cycles). Do you have any tips, how to debug timing?

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.104 seconds
Powered by Kunena Forum