SOLVED ! 6i25(5i25) 5i25_prob_rfx2.pin doesn't match flashed bin

More
28 Sep 2022 12:04 #252929 by macsddau@linuxcnc
Received today a MESA 6i25

Flashed with 5i25_prob_rfx.bit file :
sudo mesaflash --device 5i25 --write '/path_to_file/5i25_prob_rfx2.bit'
I choose this configuration because it matches my current parport pin out.

Starting linuxCNC got an error :
./r993cnc_6i25.hal:25: parameter or pin 'hm2_5i25.0.gpio.000.is_output' not found

Looking for the begin of the error report I see :
hm2/hm2_5i25.0: IO Pin 000 (P3-01): StepGen #0, pin Direction (Output)
hm2/hm2_5i25.0: IO Pin 001 (P3-14): StepGen #0, pin Step (Output)
hm2/hm2_5i25.0: IO Pin 002 (P3-02): StepGen #1, pin Direction (Output)
hm2/hm2_5i25.0: IO Pin 003 (P3-15): StepGen #1, pin Step (Output)
hm2/hm2_5i25.0: IO Pin 004 (P3-03): StepGen #2, pin Direction (Output)
hm2/hm2_5i25.0: IO Pin 005 (P3-16): StepGen #2, pin Step (Output)

In the file 5i25_prob_rfx the pin out is
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
[..]
2 2 IOPort StepGen 0 Step (Out)
[..]
3 4 IOPort StepGen 0 Dir (Out)
[..]
4 6 IOPort StepGen 1 Step (Out)
[..]
5 8 IOPort StepGen 1 Dir (Out) 6 9 IOPort StepGen 2 Step (Out)
7 10 IOPort StepGen 2 Dir (Out)
8 11 IOPort StepGen 3 Step (Out)
9 12 IOPort StepGen 3 Dir (Out)

That doesn't match

I don't want to change pinout How can I solve this ?

Attached HAL and full error report

File Attachment:

File Name: r993cnc_6i25.hal
File Size:9 KB

File Attachment:

File Name: linuxcnc.r...9-28.txt
File Size:7 KB
Attachments:

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

More
28 Sep 2022 14:53 #252943 by PCW
Did you power cycle after you wrote the new bitfile?
The following user(s) said Thank You: macsddau@linuxcnc

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

More
28 Sep 2022 15:01 #252945 by macsddau@linuxcnc

Did you power cycle after you wrote the new bitfile?
 

Yes

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

More
28 Sep 2022 15:06 - 28 Sep 2022 15:07 #252947 by macsddau@linuxcnc
..............NO. only restart
Power OFF / power ON. pin out is ok
Last edit: 28 Sep 2022 15:07 by macsddau@linuxcnc.

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

More
28 Sep 2022 15:21 #252949 by PCW
You can also do a reload to avoid a power cycle

sudo mesaflash --device 5i25 --reload
The following user(s) said Thank You: macsddau@linuxcnc

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

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