6i24 bricked - How to fix? - JTAG?

More
28 Oct 2019 16:34 #148985 by mlhilligsoe
I accidentally wrote a -25 bit file to my 6i24 board (XC6SLX16-FTG256) and now the yellow and red LEDs are always on.
I tried using the mesaflash --recovery feature which has worked for me once before, but without luck.
How can I fix this? The manual states that JTAG is an option, but I'm not able to find information on how to do this.

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

More
28 Oct 2019 17:09 - 28 Oct 2019 17:10 #148989 by PCW
I think you can use the recovery function but there's a bug in mesaflash so you have to lie and say the card is a 6I25...
Last edit: 28 Oct 2019 17:10 by PCW.

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

More
28 Oct 2019 17:22 #148992 by mlhilligsoe
I already tried this.
In Mesaflash version 3.3.0~pre I get:
sudo mesaflash --device 6i25 --recover --write 5i24_16_justio.bit
Checking file... OK
File type: BIT file
Boot sector OK
EEPROM sectors to write: 8, max sectors in area: 16
Erasing EEPROM sectors starting from 0x100000...
|EEEEEEEE
Programming EEPROM sectors starting from 0x100000...
|WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
Board configuration updated successfully.
Checking file... OK
File type: BIT file
Error: wrong bitfile destination device: 6slx16ftg256, should be 6slx9tqg144


In Mesaflash 3.4.0~pre I get:
sudo ./mesaflash --device 6i25 --recover --write /home/vaerkscnc/Downloads/5i24/configs/hostmot2/5i24_16_justio.bit
Checking file... OK
File type: BIT file
Error: BootSector is invalid

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

More
28 Oct 2019 17:24 #148993 by PCW
You have to specifically enable mesaflash to re-write the boot-sector

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

More
28 Oct 2019 21:30 #149006 by mlhilligsoe
I restarted my PC and now I get the same error in both Mesaflash versions:
Error: wrong bitfile destination device: 6slx16ftg256, should be 6slx9tqg144

If i have to re-write the boot-sector using mesaflash, how do i enable this?

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

More
28 Oct 2019 21:47 - 28 Oct 2019 22:05 #149007 by PCW
Are you sure the card was not updated?, your first post suggests that it was.

Edit:

I just retried this:

wrote bad (x25) bitfile to 6I24/ reload,: init and /done LEDS illuminated, card not found

recovered with

sudo mesaflash --device 6i25 --recover --write (good x16 bitfile)

This is with mesaflash 3.30

It does complain about the wrong FPGA type, but only after it has wriiten the flash memory
Last edit: 28 Oct 2019 22:05 by PCW.
The following user(s) said Thank You: mlhilligsoe

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

More
29 Oct 2019 08:11 #149032 by mlhilligsoe
It's working now.
I feel like i tried a bunch of stuff last night, and nothing worked, but when i looked at it this morning, the 2 LEDs were off and everything seems okay. So some of the things i did last night did the trick.

Thanks for the help.
Now I'm off to try and figure out how to use the SSI with aboslute encoder.

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

More
29 Oct 2019 10:25 #149038 by tommylight


Now I'm off to try and figure out how to use the SSI with aboslute encoder.

Here is a retrofit i did a while back, it does use serial absolute encoders wired to a Mesa 7i74:
forum.linuxcnc.org/30-cnc-machines/31792...-sbz-130-01-retrofit
The config is attached so you can have a look.
Regards,
Tom.

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

Moderators: PCWjmelson
Time to create page: 0.109 seconds
Powered by Kunena Forum