Skip to content

New ini-file parser breaks hm2_eth config on master #3946

@hdiethelm

Description

@hdiethelm

The reason is probably this PR:
#3921

It took me some time and bisecting to figure out the reason. With added some debug printf's:
Before:
rtapi_app load hm2_eth board_ip=192.168.1.121 config="num_encoders=0 num_pwmgens=1 num_stepgens=4"
After:
rtapi_app load hm2_eth board_ip=192.168.1.121 config=num_encoders=0 num_pwmgens=1 num_stepgens=4
Note the missing "

The error message is quite usless:

hm2: loading Mesa HostMot2 driver version 0.15
./hm2-stepper-eth.hal:38: waitpid failed /home/hannes/linuxcnc-src/bin/rtapi_app hm2_eth
./hm2-stepper-eth.hal:38: /home/hannes/linuxcnc-src/bin/rtapi_app exited without becoming ready
./hm2-stepper-eth.hal:38: insmod for hm2_eth failed, returned -1

Relevant section of the ini file:

[HOSTMOT2]
DRIVER=hm2_eth
BOARD_IP=192.168.1.121
BOARD=7i96s
CONFIG="num_encoders=0 num_pwmgens=1 num_stepgens=4"

And the hal file:

# load low-level driver
loadrt [HOSTMOT2](DRIVER) board_ip=[HOSTMOT2](BOARD_IP) config=[HOSTMOT2](CONFIG)

@BsAtHome I can work around it by just placing the config directly in the hal file for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions