Help with mesa 7c81 and 7i77 setup. Possibly corrupted flash
- johntrevick
- Offline
- Junior Member
Less
More
- Posts: 28
- Thank you received: 3
28 Feb 2023 23:44 #265624
by johntrevick
Hi folks,
I'm trying to set up a mesa 7c81 with 7i77 board and I'm afraid I may have messed up the board. Hopefully somebody can guide.
I'm using a 7c81 with raspberry Pi 4 /8G (I purchased this unit a couple years ago but I'm only getting around to setting it up now)
Linuxcnc 2.8.1 (linuxcnc-2.8.1-pi4.zip)
Power is supplied to the 7i77 via the 25pin connector from the 7c81 and field power (24v) on the 7i77 is connected.
I tried creating a couple of configs with pncconf and had a problem
hm2/hm2_7c81.0: config.num_encoder=6, but only 1 available
From some research it seems like I needed to flash the 7c81 for the 7i77 (maybe I went wrong here? )
From the mesa page I got the support software www.mesanet.com/software/parallel/7c81.zip
Got mesaflash version 3.4.7 from git (and did make) but unfortunately I forgot to directly address the newly downloaded mesaflash and the version that ran was actually 3.4.6
I did:
pi@apeiron:~/linuxcnc/7c81/configs/hostmot2 $ mesaflash --device 7C81 --spi --addr /dev/spidev0.0 --write 7c81_7i77x2d.bit
unable to set bpw32, fallback to bpw8
Checking file... OK
File type: Xilinx bit file
Boot sector OK
FLASH memory sectors to write: 6, max sectors in area: 32
Erasing FLASH memory sectors starting from 0x200000...
|EEEEEE
Programming FLASH memory sectors starting from 0x200000...
|WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
Board configuration updated successfully.
Checking file... OK
File type: Xilinx bit file
Boot sector OK
Verifying FLASH memory sectors starting from 0x200000...
|V0 timeout waiting for SPI data
Error at 0x203D4B expected: 0x0 but read: 0x7F
pi@apeiron:~/linuxcnc/7c81/configs/hostmot2 $ mesaflash --device 7C81 --spi --addr /dev/spidev0.0 --write 7c81_7i77x2d.bit
unable to set bpw32, fallback to bpw8
Unexpected cookie at 0100..0110:
0fff0fff 0fff0fff 0fff0fff
No 7C81 board found
Even after power cycle same issue - unreadable when it worked before. For example this used to work:
mesaflash --device 7C81 --spi --addr /dev/spidev0.0 --readhmid
unable to set bpw32, fallback to bpw8
Unexpected cookie at 0100..0110:
9fff1fff 1fff1fff 1fff1fff
No 7C81 board found
(I'm attaching the --readhmid output from when it worked.)
The lights on the board I think show that it is on the main bootfile and not the fallback. (init isn't blinking)
It seems to me like I've messed up the 7c81 and perhaps the only fix is through the jtag port? (not that I know how to do that).
I'd appreciate any guidance you might have.
I'm trying to set up a mesa 7c81 with 7i77 board and I'm afraid I may have messed up the board. Hopefully somebody can guide.
I'm using a 7c81 with raspberry Pi 4 /8G (I purchased this unit a couple years ago but I'm only getting around to setting it up now)
Linuxcnc 2.8.1 (linuxcnc-2.8.1-pi4.zip)
Power is supplied to the 7i77 via the 25pin connector from the 7c81 and field power (24v) on the 7i77 is connected.
I tried creating a couple of configs with pncconf and had a problem
hm2/hm2_7c81.0: config.num_encoder=6, but only 1 available
From some research it seems like I needed to flash the 7c81 for the 7i77 (maybe I went wrong here? )
From the mesa page I got the support software www.mesanet.com/software/parallel/7c81.zip
Got mesaflash version 3.4.7 from git (and did make) but unfortunately I forgot to directly address the newly downloaded mesaflash and the version that ran was actually 3.4.6
I did:
pi@apeiron:~/linuxcnc/7c81/configs/hostmot2 $ mesaflash --device 7C81 --spi --addr /dev/spidev0.0 --write 7c81_7i77x2d.bit
unable to set bpw32, fallback to bpw8
Checking file... OK
File type: Xilinx bit file
Boot sector OK
FLASH memory sectors to write: 6, max sectors in area: 32
Erasing FLASH memory sectors starting from 0x200000...
|EEEEEE
Programming FLASH memory sectors starting from 0x200000...
|WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
Board configuration updated successfully.
Checking file... OK
File type: Xilinx bit file
Boot sector OK
Verifying FLASH memory sectors starting from 0x200000...
|V0 timeout waiting for SPI data
Error at 0x203D4B expected: 0x0 but read: 0x7F
pi@apeiron:~/linuxcnc/7c81/configs/hostmot2 $ mesaflash --device 7C81 --spi --addr /dev/spidev0.0 --write 7c81_7i77x2d.bit
unable to set bpw32, fallback to bpw8
Unexpected cookie at 0100..0110:
0fff0fff 0fff0fff 0fff0fff
No 7C81 board found
Even after power cycle same issue - unreadable when it worked before. For example this used to work:
mesaflash --device 7C81 --spi --addr /dev/spidev0.0 --readhmid
unable to set bpw32, fallback to bpw8
Unexpected cookie at 0100..0110:
9fff1fff 1fff1fff 1fff1fff
No 7C81 board found
(I'm attaching the --readhmid output from when it worked.)
The lights on the board I think show that it is on the main bootfile and not the fallback. (init isn't blinking)
It seems to me like I've messed up the 7c81 and perhaps the only fix is through the jtag port? (not that I know how to do that).
I'd appreciate any guidance you might have.
Please Log in or Create an account to join the conversation.
01 Mar 2023 00:00 - 01 Mar 2023 00:01 #265625
by PCW
Replied by PCW on topic Help with mesa 7c81 and 7i77 setup. Possibly corrupted flash
If you don't have any red LEDs illuminated on the 7C81 after power up
that means that a valid configuration loaded. It actually looks like something
went bad (power, cabling, 7C81,RPI) at the start of verification before the new
firmware was even used. So I don't think this is a firmware issue.
that means that a valid configuration loaded. It actually looks like something
went bad (power, cabling, 7C81,RPI) at the start of verification before the new
firmware was even used. So I don't think this is a firmware issue.
Last edit: 01 Mar 2023 00:01 by PCW. Reason: format better
The following user(s) said Thank You: johntrevick
Please Log in or Create an account to join the conversation.
- johntrevick
- Offline
- Junior Member
Less
More
- Posts: 28
- Thank you received: 3
01 Mar 2023 01:20 #265627
by johntrevick
Replied by johntrevick on topic Help with mesa 7c81 and 7i77 setup. Possibly corrupted flash
I thought about the ribbon cable between the rpi and the 7c81 but I never touched it physically when this happened and it is consistently bad at this point. Just tried jiggling it (w/ power off) but no luck.
Just checked the power - it was a little low 4.8v so I just adjusted it up to 5v but not luck.
So it is likely that the board is working but the rpi can no longer talk to it?
I guess I have two options to test:
1) replace the ribbon cable between the two
2) replace the rpi with another (I think I have one I could swap in)
I should have made this all more easily serviceable
Just checked the power - it was a little low 4.8v so I just adjusted it up to 5v but not luck.
So it is likely that the board is working but the rpi can no longer talk to it?
I guess I have two options to test:
1) replace the ribbon cable between the two
2) replace the rpi with another (I think I have one I could swap in)
I should have made this all more easily serviceable
Please Log in or Create an account to join the conversation.
- johntrevick
- Offline
- Junior Member
Less
More
- Posts: 28
- Thank you received: 3
01 Mar 2023 16:37 #265659
by johntrevick
Replied by johntrevick on topic Help with mesa 7c81 and 7i77 setup. Possibly corrupted flash
I tested with another rpi 4 and with a fresh install of linuxcnc but no luck.
I need to check replacing the cable now. I think I have the parts to make one.
They don't appear to be in stock at store.mesanet.com/
I'd buy another 7c81 at the same time but also not in stock, nor the 7c80
I need to check replacing the cable now. I think I have the parts to make one.
They don't appear to be in stock at store.mesanet.com/
I'd buy another 7c81 at the same time but also not in stock, nor the 7c80
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19049
- Thank you received: 6386
01 Mar 2023 17:39 #265662
by tommylight
Replied by tommylight on topic Help with mesa 7c81 and 7i77 setup. Possibly corrupted flash
The following user(s) said Thank You: johntrevick
Please Log in or Create an account to join the conversation.
- johntrevick
- Offline
- Junior Member
Less
More
- Posts: 28
- Thank you received: 3
01 Mar 2023 19:59 #265670
by johntrevick
Replied by johntrevick on topic Help with mesa 7c81 and 7i77 setup. Possibly corrupted flash
In Canada but often companies will ship here. Seems they are out of the 7c81 but good to know other sources.
Please Log in or Create an account to join the conversation.
- johntrevick
- Offline
- Junior Member
Less
More
- Posts: 28
- Thank you received: 3
01 Mar 2023 20:05 #265671
by johntrevick
Replied by johntrevick on topic Help with mesa 7c81 and 7i77 setup. Possibly corrupted flash
Some good news!
I was able to find the parts to build another cable and it worked! Or at least mesaflash can talk to the card again.
I forgot I had a 90deg adaptor in there because there wasn't enough clearance between the two boards. I redid the spacers to give it more room and a much shorter cable.
Now to reinstall the board in my machine and see if it can talk to the 7i77 and then back to wiring it up. Which is where I expected I'd need help but one problem at a time.
I was able to find the parts to build another cable and it worked! Or at least mesaflash can talk to the card again.
I forgot I had a 90deg adaptor in there because there wasn't enough clearance between the two boards. I redid the spacers to give it more room and a much shorter cable.
Now to reinstall the board in my machine and see if it can talk to the 7i77 and then back to wiring it up. Which is where I expected I'd need help but one problem at a time.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- johntrevick
- Offline
- Junior Member
Less
More
- Posts: 28
- Thank you received: 3
02 Mar 2023 16:24 - 02 Mar 2023 16:47 #265726
by johntrevick
Replied by johntrevick on topic Help with mesa 7c81 and 7i77 setup. Possibly corrupted flash
Thank you for the help.
I've reinstalled the board and was able to run --verify with mesaflash against the bit file I had flashed (came back ok)
ran pncconfig (with no real i/o or axis setup since none of the wiring is done yet)
modified the ini and hal files for the 7c81
linuxcnc started up without error and I see both the hm2_7c81 and 7i77 under halconfiguration
Green flashing light on 7i77
Now on to the wiring. If I have trouble I'll probably post under another thread since it's not really related to what went wrong here.
I've reinstalled the board and was able to run --verify with mesaflash against the bit file I had flashed (came back ok)
ran pncconfig (with no real i/o or axis setup since none of the wiring is done yet)
modified the ini and hal files for the 7c81
linuxcnc started up without error and I see both the hm2_7c81 and 7i77 under halconfiguration
Green flashing light on 7i77
Now on to the wiring. If I have trouble I'll probably post under another thread since it's not really related to what went wrong here.
Last edit: 02 Mar 2023 16:47 by johntrevick.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19049
- Thank you received: 6386
02 Mar 2023 19:23 #265734
by tommylight
Replied by tommylight on topic Help with mesa 7c81 and 7i77 setup. Possibly corrupted flash
Always a good sign!Green flashing light on 7i77
Please Log in or Create an account to join the conversation.
Time to create page: 0.083 seconds