Question about custom BOB for a 7i92

More
1 year 7 months ago #325028 by blazini36

If you tell me the new PWM pin number or GPIO number is needed, I can add it
(Probably tomorrow)

 
P2, Pin3, IO-2

Please Log in to join the conversation.

More
1 year 7 months ago #325029 by unknown

No the firmware has to be rebuilt and the FPGA reprogrammed. It's not so hard to build firmware yourself.

 
I suppose you mean with the Efinix software? If ya get bored and wanna point me in the right direction......
 
The 7i92 uses the Xilinx Spartan 6 FPGA, so you'll need Xilinx ISE.
14.7 is here: www.xilinx.com/support/download/index.ht...ols/archive-ise.html
Install tips here: gist.github.com/aliemo/ce58ea570ee6ffa6d...k_comment_id=5040735
And a fair tutorial is here:  tom-itx.no-ip.biz:81/~webpage/emc/xilinx...14_install_index.php

Only have experience with the Xilinx Tools for the Spartan chips.

Using efinix software is not something I've had to do, but I think it has been mentioned on the forum.

Please Log in to join the conversation.

More
1 year 7 months ago #325057 by PCW
1 more PWM added (this is Efinix for 7I92T)

 

Attachment not found



 

Please Log in to join the conversation.

More
1 year 7 months ago #325139 by blazini36
Thanks.

I just remembered about the 7i92T I have laying around with the half dead FPGA. Looks like the Trions are in-stock at Digikey. Anything special need to be done other than just swapping it out?

Edit: I flashed one of my 7i92t's with the new firmware and all of the the pwmgen output pins are missing. They're shown in the startup printout, the pwmgen enable and value pins show up in hal and the gpio pin it replaces only has the hal inputs of those pins but no output pin?

One of my 7i92t's is suspect, the other one is dead but this seems like an odd thing to be a hardware issue. this one otherwise seems to work after flashing.

Please Log in to join the conversation.

More
1 year 6 months ago #325481 by blazini36
PCW, any idea why I'm missing all of the PWM output pins? None of the 3 pwmgens have been usable with the new firmware. The pwmgens have no output and the gpio pins that correspond have no output pin either.


 

Attachment not found

Please Log in to join the conversation.

More
1 year 6 months ago #325485 by PCW
It works for me:
halcmd -kf
halcmd: loadrt hostmot2
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
halcmd: loadrt hm2_eth board_ip=10.10.10.10
halcmd: loadrt threads
halcmd: addf hm2_7i92.0.read thread1
halcmd: addf hm2_7i92.0.write thread1
halcmd: setp hm2_7i92.0.pwmgen.00.enable true
halcmd: setp hm2_7i92.0.pwmgen.01.enable true
halcmd: setp hm2_7i92.0.pwmgen.02.enable true
setp hm2_7i92.0.pwmgen.00.value .5
setp hm2_7i92.0.pwmgen.01.value .5
setp hm2_7i92.0.pwmgen.02.value .5

And I get square waves on all three PWM pins


Is its a PWM scale issue? (default scale is 1.0)

Please Log in to join the conversation.

More
1 year 6 months ago #325487 by blazini36
What is the name of your output pin?

The hm2....pwmgen stuff was setup when I was messing with it over a year ago but I know it did work because I was testing it with a small DC vacuum pump.

I didn't realize setting the scale wrong could make the output pin disappear but now that you mention it I do have  scale and output-type setp'd in the hal file for 2 of the 3 pwmgens. The config doesn't fail with "pin does not exist" when loaded but $ halcmd show pin does not show the scale or output-type pins either. According to the docs these are pins and not parameters so I don't know what's going on.

I'll go mess with the scale and such but that seems like a hm2 component bug or something if that's what's causing it

Please Log in to join the conversation.

More
1 year 6 months ago #325488 by PCW
Scale and output types are parameters, not pins.
That does seem to be an error in the hostmot2
man page (it shows them as pins)

Not sure what you mean by output pin.
 

Please Log in to join the conversation.

More
1 year 6 months ago #325490 by blazini36

Not sure what you mean by output pin.

 
Ah, sorry that's a bit of a brainfart. Had to look at the stepgen setup to realize they do the exact same thing.

There's probably nothing wrong other than I was expecting to see scale, etc pins where they are actually parameters. That doc actually does say they are parameters, the word "parameters" is just shifted so I didn't notice it.

Please Log in to join the conversation.

More
1 year 6 months ago #325491 by PCW
I missed the too, I'll fix that formatting error when I get a chance.
 

Please Log in to join the conversation.

Time to create page: 0.267 seconds
Powered by Kunena Forum