Mesa 5i22 + 7i29 + 7i52 custom firmware

  • kostas
  • kostas's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
07 Jan 2014 05:41 #42405 by kostas
I tried to compile a new firmware for the 5i22 because I have to combine two 7i29 + one 7i52, so I made a new .vhd file with a guess for what I have to include after reading other files. Unfortunately the generated .bit file does not load and dmsg reports "hm2/hm2_5i22.0: IDROM IOPorts is 4 but MD IOPort NumInstances is 3, inconsistent firmware, aborting driver load" . I compiled with ISE 9.2.

I guess I'm doing something wrong :)

Maybe Peter could have a look at the vhdl source and tell me what is the problem?

I have attached the .vhd file


Thanks,
Kostas

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

  • kostas
  • kostas's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
07 Jan 2014 07:16 #42413 by kostas
Replied by kostas on topic Mesa 5i22 + 7i29 + 7i52 custom firmware
Oops, I see now that the file was not attached, maybe because of the extension? Same as .txt ..
Attachments:

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

More
07 Jan 2014 10:30 #42422 by PCW
Replied by PCW on topic Mesa 5i22 + 7i29 + 7i52 custom firmware
at least this line is in error:

(IOPortTag,x"00",ClockLowTag,x"03",PortAddr&PadT,IOPortNumRegs,x"00",IOPortMPBitMask)

the 0x03 (number or I/O ports) should be 0x04 for a 5I22

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

  • kostas
  • kostas's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
08 Jan 2014 06:22 #42465 by kostas
Replied by kostas on topic Mesa 5i22 + 7i29 + 7i52 custom firmware
Thanks Peter. Would it be easy for you to make a new configuration for this? I thought I might give it a try and build one myself, but now it fails with different errors ..

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

More
08 Jan 2014 08:38 #42471 by PCW
Replied by PCW on topic Mesa 5i22 + 7i29 + 7i52 custom firmware
I will try and get to this some time this week

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

  • kostas
  • kostas's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
08 Jan 2014 18:30 #42488 by kostas
Replied by kostas on topic Mesa 5i22 + 7i29 + 7i52 custom firmware
That would be very helpful, thanks!

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

More
11 Jan 2014 05:41 #42592 by PCW
Replied by PCW on topic Mesa 5i22 + 7i29 + 7i52 custom firmware
Here is the edited pinout file and bitfiles for 1.5M and 1M 5I22s

Note that I used multiplexed encoder for all encoders since I'm not sure
if the driver version you have supports mixed encoder types.

This results in somewhat odd encoder numbering:
PHYSICAL HAL
7I29 ENC0 ENC0
7I29 ENC1 ENC2
7I29 ENC2 ENC4
7I29 ENC3 ENC6

7I52 ENC0 ENC8
7I52 ENC1 ENC9
7I52 ENC2 ENC10
7I52 ENC3 ENC11
7I52 ENC4 ENC12
7I52 ENC5 ENC13
Attachments:
The following user(s) said Thank You: kostas

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

  • kostas
  • kostas's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
12 Jan 2014 07:16 #42631 by kostas
Replied by kostas on topic Mesa 5i22 + 7i29 + 7i52 custom firmware
It's working! Many thanks Peter! :)

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

  • kostas
  • kostas's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
19 Jan 2014 06:58 - 19 Jan 2014 07:07 #43003 by kostas
Replied by kostas on topic Mesa 5i22 + 7i29 + 7i52 custom firmware
Peter, I tried to compile a modified version of the vhdl file you gave me because as it turns out I need a firmware with two more pwms and encoders for one more 7i29 I'm about to order soon. I used the tree from git://git.linuxcnc.org/git/hostmot2-firmware.git and your modified vhdl file and compiled with ISE 10.1, but I can't get results.

Firmware compiled succesfully but I get an error: "hm2/hm2_5i22.0: The bitfile contains Smart Serial modules for a firmware revision < rev22. This Driver now requires rev22 or newer firmwares"

Can you tell me what I should do? I don't want to bother you all the time with firmware customizations if I can build them myself.

Thanks in advance.
Last edit: 19 Jan 2014 07:07 by kostas.

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

More
19 Jan 2014 07:51 - 19 Jan 2014 07:52 #43005 by PCW
Replied by PCW on topic Mesa 5i22 + 7i29 + 7i52 custom firmware
I would download the source from mesa, (in 5i20.zip)
use the fivei20 project file and go from there
Last edit: 19 Jan 2014 07:52 by PCW.

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

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