New project, litehm2: a hostmot2 port to linsn rv901t

More
25 Jun 2024 19:39 - 25 Jun 2024 19:51 #303779 by dzik
The first time I uploaded the configuration from the example rv901t_4out__3stepgen_2enc_1pwm. Another time litehm2. 
The pinout changes, linux sees it, identifies the lhm2 board through a search, but for some reason it asks for how many connectors and ports, I indicate 3 to 24.
 

File Attachment:

File Name: Config1.txt
File Size:7 KB

 

File Attachment:

File Name: Config2.txt
File Size:7 KB


LinuxCNC 2.9.2 LiteHM2 board include
Attachments:
Last edit: 25 Jun 2024 19:51 by dzik.

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

More
25 Jun 2024 19:42 #303780 by dzik
I've been dealing with Linux recently, I decided to try it because there are no adequate control systems available, and Linux can do a lot. More than mid-range systems.
Excuse me, I’m certainly not a noob and managed to remake the board and flash the initial firmware, then update it via mesaflash.
but apparently the item to update LinuxCNC is not clear to me and I missed it.
Have mercy, tell me what to do.

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

More
25 Jun 2024 19:45 #303782 by dzik
There were 3 files in the archive with examples; I uploaded the bit file to the board. What to do with bin files?

rv901t_4out__3stepgen_2enc_1pwm.bin  
rv901t_4out__3stepgen_2enc_1pwm.bit  
rv901t_4out__3stepgen_2enc_1pwm_initial.bin

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

More
25 Jun 2024 20:20 #303785 by dzik
New variety.
Here I understand there are problems with the settings.

 

File Attachment:

File Name: TEST.txt
File Size:5 KB
Attachments:

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

More
25 Jun 2024 22:33 #303792 by PCW
Is it possible you have disabled the pwmgen in the hal file?

You can check all available hal pins/parameters/functions with:

halcmd loadrt hostmot2
halcmd loadrt hm2_eth board_ip=10.10.10.10
halcmd show all > all.txt

Then to clean up/unload the drivers:

halrun -U

 

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

More
25 Jun 2024 23:12 #303795 by cornholio
Mate if you read the README on the GitHub page you will find out what do with the bin & bit files.
You also need to read the section about updating the Linuxcnc driver.

It helps to read, understand and implement the instructions that the developer gives.
The developer recommends Linuxcnc 2.10 or a patched version of 2.9.2
It’s been a good 6 months since I was evaluating this project so I’m not too sure where Linuxcnc is up to regarding the patches.
If it was possible to get one of the Ethernet chips going with original Mesa source there would be the ability to remove the on board RAM and get access to many more pins for IO.

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

More
26 Jun 2024 15:54 #303835 by sensille
Yes, the patch is not in 2.9.2, just in the current master, scheduled for 2.10.

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

More
28 Jun 2024 16:53 #303976 by dzik
Done
 

File Attachment:

File Name: ALL.txt
File Size:48 KB
Attachments:

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

More
28 Jun 2024 20:06 - 28 Jun 2024 20:07 #303989 by PCW
./EMCO.hal:10: parameter or pin 'hm2_lhm2.0.pwmgen.pwm_frequency' not found

looks like a misspelling in your hal file, the correct name is

hm2_lite.0.pwmgen.pwm_frequency
Last edit: 28 Jun 2024 20:07 by PCW.

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

More
02 Jul 2024 11:47 - 02 Jul 2024 12:11 #304240 by dzik
Help me please. I could not get.
I installed the mesaflash patch, it refused to see the board, mesaflash from LinuxCNC saw the board.

 
If I find the board, apply it and close it, the board starts with errors in the hal file, as I showed earlier, after restarting pncconf, and this window appears, the board stops starting.
Replacing it in the hal file does not help.

Then I noticed that when I search for the board through pnconf via DiscoveryOptions, it finds it:
 

What seemed strange to me is that the name of the board is MESAlhm2
 

Why? 
Because after I clicked AcceptChanges, it gave me an error.
 

And then I noticed that if you select the lhm2 board then everything works, perhaps this is the correct procedure. However, there are doubts that it is possible that on the initial firmware of the board I specified this name for myself, and this entails a number of errors.

 
Because The developer's instructions are outdated because it does not have board.conf and litehm2.bit.
From the current examples, it was not possible (initially) to install the firmware. I installed litehm2 which is here for XU. Then the board started up.
When I install other bit files they go through and the config changes, but something is wrong.

Now in the example configs the name of the board is RV901t

 

 
Attachments:
Last edit: 02 Jul 2024 12:11 by dzik.

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

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