Mesa 5i25 config for chinese BOB

More
29 Jan 2018 17:14 - 29 Jan 2018 17:20 #105165 by eFalegname
I'm using LinuxCNC (axis gui), "linuxcnc-stretch-uspace-amd64-r10.iso ".I tried in both ways to reload the card, with the command --reload and completely turn off the PC and turn on it again, but in the end my firmware is always replaced. I'm going to try with another pc now.
Last edit: 29 Jan 2018 17:20 by eFalegname.

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

More
29 Jan 2018 17:41 #105166 by PCW
Your firmware cannot be "replaced" except if it have a bad CRC in which case the fallback configuration will be loaded
the only way to replace the firmware is to run Mesaflash (Path Pilot has a script that does this on startup )

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

More
29 Jan 2018 18:52 #105170 by eFalegname
I understand you perfectly, believe me, but I can't do anything but report the facts that happens to me, don't worry I'm already used to the oddest things that happen to me, I'm bewitched.
I mounted the 6i25 board on another PC and after doing the flash it works perfectly after every turning on. Now I have reported the Bios of the old PC to its default configuration and rermounted the 6i25 card on this last, the card works fine, the firmware is not overwritten (sorry I don't know if it's the right word) anymore but the 6i25 is not always initialized with the PC.
I keep testing, maybe I find something badly set on the BIOS...

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

More
29 Jan 2018 19:16 - 29 Jan 2018 19:18 #105172 by PCW
Nothing in the BIOS can cause reloading of the firmware image in the EEPROM (only Mesaflash can do that)

If the firmware load from EEPROM is unsuccessful at powerup, you will either have an inaccessible card (no DEVID in lspci) or the card will load its backup configuration (there are only 2 possible configurations in the EEPROM, the normal user configuration and the fallback configuration, the default fallback configuration is recognizable because it blinks the red INIT LED continuously and it has only GPIO )

When you say the card is not initialized properly, what does Mesaflash show?
What do the red LEDs light on the card do?
Last edit: 29 Jan 2018 19:18 by PCW.

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

More
29 Jan 2018 20:50 - 29 Jan 2018 21:03 #105175 by eFalegname
A- At the beginning before I switched PCs this is what was happening:
1.A Sometime when I started the PC1 a red led turns on on the 6i25 board and doesnt turn off, the PC wouldn't boot.
2.A I start the PC1 an the red led flashes once, the vents get off as if the PC1 had been switched off for 4 seconds ca, then the led flashes again one more time. The PC1 starts but the Mesaflash readhmin chooses the penultimate firmware flashed, not even the default or the last one. ( I realized about this after I wrote you today, I apologize).
**************************************************************************************************************************************************
B- That's when I decided to mount the 6i25 board on another PC (let's call it PC2)
1.B I start the PC2 and flash the 6i25 with my custom bit file again, I don't reboot but turn off the PC2 completely. I turn on the PC2 and control the 6i25 hasn't lost the firmware. All was OK.
Then I access to the BIOS of PC1 and reset it to the defaults.
2.B switch the 6i25 back to PC1, the red led blinks once and the PC1 boots, the board woorks perfectly.
3.B start PC1 again, the red led doesn't flash this time and Mesaflash displays Board not found.
Points 2.B and 3.B happen randomly.
Last edit: 29 Jan 2018 21:03 by eFalegname.

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

More
29 Jan 2018 21:12 #105176 by PCW
Its not possible for the FPGA to load the previous EEPROM image, so what is more likely is that the
FPGA never reloaded or that the EEPROM write failed

This may be because one PC has a bad 3.3V power supply ( the FPGA will be held in reset if the 3.3V is marginal )

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

More
29 Jan 2018 21:25 - 29 Jan 2018 21:29 #105177 by eFalegname
I understand but then how is it possible that I could still use the latest firmware ( the one before I switched the PC1 off)?
,do you advise me not to use PC1?
Last edit: 29 Jan 2018 21:29 by eFalegname.

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

More
30 Jan 2018 11:14 - 30 Jan 2018 11:40 #105191 by eFalegname
Good morning Peter.
This morning I turn on the PC and I find it does not start, after a couple of attempts finally I can access to linuxcnc and for my surprise the ...
please forget my previous message, I start all over again, I write all the steps, I want to make sure I'm not making any mistakes, I'm so sorry, I'll report everything here.
Last edit: 30 Jan 2018 11:40 by eFalegname.

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

More
30 Jan 2018 18:33 #105200 by eFalegname
I'm using another PC, til now I haven't had any issues with the boot. I remade the custom bit file and ISEL didn't display any errors. Sometimes when I start the PC the board flashes red once, I check the firmware and is always the right one but then LinuxCNC doesn't work properly, the spindler doesn't switch on. I have used the Verify command of Mesaflash, here I attach the result, it says it has an error.
After a while of this happening once again the red led lights for 3 seconds or more, I open the terminal and again the firmware that loads is the penultimate used.
Could you please help me resolve this? I spent two days and I really don't know how to proceed.

My Pinout:
Configuration Name: HOSTMOT2

General configuration information:

  BoardName : MESA5I25
  FPGA Size: 9 KGates
  FPGA Pins: 144
  Number of IO Ports: 2
  Width of one I/O port: 17
  Clock Low frequency: 33.3333 MHz
  Clock High frequency: 200.0000 MHz
  IDROM Type: 3
  Instance Stride 0: 4
  Instance Stride 1: 64
  Register Stride 0: 256
  Register Stride 1: 256

Modules in configuration:

  Module: WatchDog
  There are 1 of WatchDog in configuration
  Version: 0
  Registers: 3
  BaseAddress: 0C00
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: IOPort
  There are 2 of IOPort in configuration
  Version: 0
  Registers: 5
  BaseAddress: 1000
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: StepGen
  There are 8 of StepGen in configuration
  Version: 2
  Registers: 10
  BaseAddress: 2000
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: PWM
  There are 2 of PWM in configuration
  Version: 0
  Registers: 5
  BaseAddress: 4100
  ClockFrequency: 200.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: LED
  There are 1 of LED in configuration
  Version: 0
  Registers: 1
  BaseAddress: 0200
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

Configuration pin-out:

IO Connections for P3
Pin#  I/O   Pri. func    Sec. func       Chan      Pin func        Pin Dir

 1      0   IOPort       PWM              0        PWM             (Out)
14      1   IOPort       None           
 2      2   IOPort       StepGen          0        Step/Table1     (Out)
15      3   IOPort       None           
 3      4   IOPort       StepGen          0        Dir/Table2      (Out)
16      5   IOPort       None           
 4      6   IOPort       StepGen          1        Step/Table1     (Out)
17      7   IOPort       None           
 5      8   IOPort       StepGen          1        Dir/Table2      (Out)
 6      9   IOPort       StepGen          2        Step/Table1     (Out)
 7     10   IOPort       StepGen          2        Dir/Table2      (Out)
 8     11   IOPort       StepGen          3        Step/Table1     (Out)
 9     12   IOPort       StepGen          3        Dir/Table2      (Out)
10     13   IOPort       None           
11     14   IOPort       None           
12     15   IOPort       None           
13     16   IOPort       None           

IO Connections for P2
Pin#  I/O   Pri. func    Sec. func       Chan      Pin func        Pin Dir

 1     17   IOPort       PWM              1        PWM             (Out)
14     18   IOPort       None           
 2     19   IOPort       StepGen          4        Step/Table1     (Out)
15     20   IOPort       None           
 3     21   IOPort       StepGen          4        Dir/Table2      (Out)
16     22   IOPort       None           
 4     23   IOPort       StepGen          5        Step/Table1     (Out)
17     24   IOPort       None           
 5     25   IOPort       StepGen          5        Dir/Table2      (Out)
 6     26   IOPort       StepGen          6        Step/Table1     (Out)
 7     27   IOPort       StepGen          6        Dir/Table2      (Out)
 8     28   IOPort       StepGen          7        Step/Table1     (Out)
 9     29   IOPort       StepGen          7        Dir/Table2      (Out)
10     30   IOPort       None           
11     31   IOPort       None           
12     32   IOPort       None           
13     33   IOPort       None           

--verify:
Checking file... OK
  File type: BIT file
Boot sector OK
Verifying EEPROM sectors starting from 0x100000...
  |
Error at 0x1000EA expected: 0x10 but read: 0x0
Attachments:

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

More
30 Jan 2018 18:45 #105202 by PCW
There are only 2 EEPROM firmware images on the 6I25, the fallback and the user configuration
it is simply impossible to go back to a previous user firmware version if you have power cycled the board
nor is there any scheme in Linux to automatically update mesa firmware.

It is possible that a firmware update failed or you did not power cycle the machine so the last loaded
image is still in the FPGA ( the FPGA is loaded from the EEPROM at power up )

As I mentioned before there could be a problem with the ATX 3.3V supply (check with a voltmeter) or maybe the 3.3V reset circuit on the 6I25 has a fault. The red lights on the 6I25 should blink briefly _every_ time the power is turned on, if not there is either an issue with the ATX 3.3V power supply or the 6I25 reset circuitry

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

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