Question about custom BOB for a 7i92

More
1 year 7 months ago #325057 by PCW
Replied by PCW on topic Question about custom BOB for a 7i92
1 more PWM added (this is Efinix for 7I92T)

 

File Attachment:

File Name: 7i92t_bl3.zip
File Size:280 KB


 
The following user(s) said Thank You: blazini36

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

More
1 year 7 months ago - 1 year 7 months ago #325139 by blazini36
Replied by blazini36 on topic Question about custom BOB for a 7i92
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.
Last edit: 1 year 7 months ago by blazini36.

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

More
1 year 6 months ago #325481 by blazini36
Replied by blazini36 on topic Question about custom BOB for a 7i92
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.


 

File Attachment:

File Name: pins.txt
File Size:60 KB

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

More
1 year 6 months ago #325485 by PCW
Replied by PCW on topic Question about custom BOB for a 7i92
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 or Create an account to join the conversation.

More
1 year 6 months ago #325487 by blazini36
Replied by blazini36 on topic Question about custom BOB for a 7i92
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 or Create an account to join the conversation.

More
1 year 6 months ago #325488 by PCW
Replied by PCW on topic Question about custom BOB for a 7i92
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 or Create an account to join the conversation.

Moderators: PCW, jmelson
Time to create page: 2.492 seconds
Powered by Kunena Forum