LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

More
1 year 7 months ago #323123 by kzali
I have LCNC version 2.9.4 on a core i5. I used the Installer-Script the script all went well smoothly.
I connected my Tangobob and the China 5 axis BOB and used the deafault config for the setup Gui. Found the GUI to be very intuitive. However after Generate and Compile when I try the Flash button, I get the following error:

openFPGALoader -b tangnano9k impl/pnr/project.fs -f
make: openFPGALoader: No such file or directory
make: *** [Makefile:41: load] Error 127

Also is there any DB25 pin mapping or schematic of the China 5 axis BOB available to customize the config, or am I missing something?

Any help will be much appreciated

Thanks

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

More
1 year 7 months ago #323127 by meister
Thanks for testing :)

ohh, i forgot a package in the installer:
Code:
apt-get install openfpgaloader

the BOB is added as module in the sample config, you can convert/split this into single plugins:
 

The pins on the left and right connector are named P1->P17,
like on the DB26 connectors:
 

hope that helps.





 

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

More
1 year 7 months ago #323132 by kzali

Thanks for testing :)

ohh, i forgot a package in the installer:
Code:
apt-get install openfpgaloader the BOB is added as module in the sample config, you can convert/split this into single plugins:  [attachment=68228]split.png[/attachment] The pins on the left and right connector are named P1->P17, like on the DB26 connectors:  [attachment=68229]pins.png[/attachment] hope that helps. T  
Thanks for your incredible work
So I did install 
Code:
openfpgaloader but I still got an error.  However when I installed 
OpenOCD
Code:
 it flashed without errors.
So now I cannot ping 192.168.10.94  even though I have made the intel nuc 192.168.10.1 and put 8.8.8.8 as dns.  Trired 192.168.10.93 and gateway 192.168.10.1.  maybe the w55000 is not powered and wonder if there is a jumper on the tangoboard.  I will check the solders in the morning.  
The 5axis bob as setup in your default config is great for me however I am probably too silly to understand how the pins map out on the china bob, other than the steppers.  But I will leave that for more research.  
Than you
I would imagine that the attached image is somewhat of areference   

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

More
1 year 7 months ago #323134 by meister
never trired OpenOCD, but you can send me the error mesage of the openfpgaloader.

with openocd you should make sure that it is written to the flash and not just to the ram, otherwise everything will be gone again after a restart

You can see whether it has worked by the flashing LED

btw, the default ip is '192.168.10.194'

the w5500 module has a little power led on the bottom, there is no jumper to power on/off this module.


not realy shure what you mean with the mapping,

the bob pins are mapped 1:1, if you need P17 (relais) on the BOB, you can use 'LEFT:P17' in your config.

 

if your BOB is connected to the other connector on the right, then you need to use 'RIGHT:P17'
 

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

More
1 year 7 months ago #323239 by kzali
Hello Oliver

1.  So I removed all of the Rio folder and openFPGALoader, openocd etc..  I noticed you had updated the installer (Thankyou)  I then did a new git pull and installed a fresh.  With th default config for Tangobob loaded in UI setup tool all went smooth.  A flash got me the following output.  Led on Tangnano blinking:-Generate

Resources | Usage
Logic | 2226/8640 26%
--LUT,ALU,ROM16 | 2202(1634 LUT, 568 ALU, 0 ROM16)
--SSRAM(RAM16) | 4
Register | 2774/6693 42%
--Logic Register as Latch | 0/6480 0%
--Logic Register as FF | 2764/6480 43%
--I/O Register as Latch | 0/213 0%
--I/O Register as FF | 10/213 5%
CLS | 2206/4320 52%
I/O Port | 28
I/O Buf | 28
--Input Buf | 8
--Output Buf | 19
--Inout Buf | 1
IOLOGIC | 0%
BSRAM | 0%
DSP | 0%
PLL | 0/2 0%
DCS | 0/8 0%
DQCE | 0/24 0%
OSC | 0/1 0%
User Flash | 0/1 0%
CLKDIV | 0/8 0%
DLLDLY | 0/8 0%
DHCEN | 0/8 0%
DHCENC | 0/4 0%
======================

Flash
openFPGALoader -b tangnano9k impl/pnr/project.fs -f
empty
write to flash
Jtag frequency : requested 6.00MHz -> real 6.00MHz
Parse file Parse impl/pnr/project.fs:
Done
DONE
Jtag frequency : requested 2.50MHz -> real 2.00MHz
Erase SRAM DONE
Erase FLASH DONE

Erasing FLASH: [==================================================] 100.00%
Done

write Flash: [========= ] 16.12%
write Flash: [================= ] 32.44%
write Flash: [========================= ] 48.76%
write Flash: [================================= ] 65.28%
write Flash: [========================================= ] 81.60%
write Flash: [================================================= ] 97.82%
write Flash: [==================================================] 100.00%
Done
CRC check: Success
cp -v hash_new.txt hash_flashed.txt
'hash_new.txt' -> 'hash_flashed.txt'

On W5500 there is a tiny led under the lan port and is a faint red when the bob is powered. I cannot conect with Lan, can some one give me a tcp 4 setting for the host pc so I can ping the bob on 192.168.10.194.

Thanks for the guidance regarding the pin assignment. Great work

Thanks Ollie and the team

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

More
1 year 7 months ago #323244 by unknown
This info assumes a single NIC with a driect cable connection from the Host machine to the other device.
All the host needs is an IP address on the same subnet so 192.168.10.xx
DNS - not required (only used for accessing hosts via host names not needed for IP addresses)
GATEWAY - not required (only required when there is a second machine that has access to a network outside of the 192.168.10 network)
NETMASK - 255.255.255.0 or 192.168.10.0/24 (depending on how you are required to input this info)

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

Time to create page: 0.116 seconds
Powered by Kunena Forum