Thanks, you are right. It seems almost work.

> ubuntu@arm:~/machinekit$ halrun
> msgd:0 stopped
> rtapi:0 stopped
> halcmd: loadrt hal_pru_generic
> prucode=/home/ubuntu/machinekit/rtlib/xenomai/pru_generic.bin pru=1
> num_stepgens=3 num_pwmgens=1
> <stdin>:1: module 'hal_pru_generic' not loaded
>

/var/log/linuxcnc.log as follow:

Jul 30 00:05:07 arm msgd:0: zeroconf: unregistering 'Log service on
> arm.local pid 1408'
> Jul 30 00:05:07 arm msgd:0: log buffer hwm: 0% (17 msgs, 1215 bytes out of
> 524288)
> Jul 30 00:05:07 arm msgd:0: normal shutdown - global segment detached
> Jul 30 00:05:11 arm msgd:0: startup pid=4268 flavor=xenomai rtlevel=1
> usrlevel=1 halsize=524288 shm=Posix gcc=5.4.0 20160609 version=unknown
> Jul 30 00:05:11 arm msgd:0:  ^ MQ=4.2.0 czmq=3.0.3 protobuf=2.6.1
> libwebsockets=1.5 4bc6f95
> Jul 30 00:05:11 arm msgd:0: configured: sha=abfa33d
> Jul 30 00:05:11 arm msgd:0: built:      Jul 27 2016 14:26:04 sha=abfa33d
> Jul 30 00:05:11 arm msgd:0: register_stuff: actual hostname as announced
> by avahi='arm.local'
> Jul 30 00:05:11 arm msgd:0: zeroconf: registering: 'Log service on
> arm.local pid 4268'
> Jul 30 00:05:11 arm msgd:0: rtapi_app:4273:user accepting commands at
> ipc:///tmp/0.rtapi.a42c8c6b-4025-4f83-ba28-dad21114744a
> Jul 30 00:05:11 arm msgd:0: zeroconf: registered 'Log service on arm.local
> pid 4268' _machinekit._tcp 0 TXT "uuid=a42c8c6b-4025-4f83-ba28-dad$
> Jul 30 00:05:29 arm msgd:0: hal_lib:4273:rt prussdrv_init
> Jul 30 00:05:29 arm msgd:0: hal_lib:4273:rt prussdrv_open
> Jul 30 00:05:29 arm msgd:0: hal_lib:4273:rt prussdrv_pruintc_init
> Jul 30 00:05:29 arm msgd:0: hal_lib:4273:rt prussdrv_map_prumem
> Jul 30 00:05:29 arm msgd:0: hal_lib:4273:rt PRU data ram mapped
> Jul 30 00:05:29 arm msgd:0: hal_lib:4273:rt num_pwmgens : 1
> Jul 30 00:05:29 arm msgd:0: hal_lib:4273:rt num_stepgens: 3
> Jul 30 00:05:29 arm msgd:0: hal_lib:4273:rt num_encoders: 0
> Jul 30 00:05:29 arm msgd:0: hal_lib:4273:rt Init pwm
> Jul 30 00:05:29 arm msgd:0: hal_lib:4273:rt hpg_pwm_init
> Jul 30 00:05:29 arm msgd:0: hal_lib:4273:rt Init stepgen
> Jul 30 00:05:29 arm msgd:0: hal_lib:4273:rt hpg_stepgen_init
> Jul 30 00:05:29 arm msgd:0: hal_lib:4273:rt Init encoder
>
>
halcmd: show pin
> Component Pins:
>   Comp   Inst Type  Dir         Value  Name
> Epsilon         Flags
>     73        s32   OUT             0  hpg.capture-position.time
>     0
>     73        u32   IN     0x00000080  hpg.pru_busy_pin
>     0
>     73        bit   IN          FALSE  hpg.pwmgen.00.out.00.enable
>     0
>     73        u32   IN     0x00000011  hpg.pwmgen.00.out.00.pin
>     0
>     73        float IN              1  hpg.pwmgen.00.out.00.scale
> 0.0000100
>     73        float IN              0  hpg.pwmgen.00.out.00.value
> 0.0000100
>     73        u32   IN     0x00989680  hpg.pwmgen.00.pwm_period
>     0
>     73        bit   IN          FALSE  hpg.stepgen.00.control-type
>     0
>     73        s32   OUT             0  hpg.stepgen.00.counts
>     0
>     73        float OUT             0  hpg.stepgen.00.dbg_err_at_matc
> 0.0000100
>     73        float OUT             0  hpg.stepgen.00.dbg_ff_vel
> 0.0000100
>     73        float OUT             0  hpg.stepgen.00.dbg_pos_minus_p
> 0.0000100
>     73        float OUT             0  hpg.stepgen.00.dbg_s_to_match
> 0.0000100
>     73        s32   OUT             0  hpg.stepgen.00.dbg_step_rate
>     0
>     73        float OUT             0  hpg.stepgen.00.dbg_vel_error
> 0.0000100
>     73        u32   IN     0x00000064  hpg.stepgen.00.dirhold
>     0
>     73        u32   IN     0x00000011  hpg.stepgen.00.dirpin
>     0
>     73        u32   IN     0x00000064  hpg.stepgen.00.dirsetup
>     0
>     73        bit   IN          FALSE  hpg.stepgen.00.enable
>     0
>     73        float IN              1  hpg.stepgen.00.maxaccel
> 0.0000100
>     73        float IN              0  hpg.stepgen.00.maxvel
> 0.0000100
>     73        float IN              0  hpg.stepgen.00.position-cmd
> 0.0000100
>     73        float OUT             0  hpg.stepgen.00.position-fb
> 0.0000100
>     73        float IN              1  hpg.stepgen.00.position-scale
> 0.0000100
>     73        bit   IN          FALSE  hpg.stepgen.00.stepinvert
>     0
>     73        u32   IN     0x00000064  hpg.stepgen.00.steplen
>     0
>     73        u32   IN     0x00000011  hpg.stepgen.00.steppin
>     0
>     73        u32   IN     0x00000064  hpg.stepgen.00.stepspace
>     0
>     73        s32   OUT             0  hpg.stepgen.00.test1
>     0
>     73        s32   OUT             0  hpg.stepgen.00.test2
>     0
>     73        s32   OUT             0  hpg.stepgen.00.test3
>     0
>     73        float IN              0  hpg.stepgen.00.velocity-cmd
> 0.0000100
>     73        float OUT             0  hpg.stepgen.00.velocity-fb
> 0.0000100
>     73        bit   IN          FALSE  hpg.stepgen.01.control-type
>     0
>     73        s32   OUT             0  hpg.stepgen.01.counts
>     0
>     73        float OUT             0  hpg.stepgen.01.dbg_err_at_matc
> 0.0000100
>     73        float OUT             0  hpg.stepgen.01.dbg_ff_vel
> 0.0000100
>     73        float OUT             0  hpg.stepgen.01.dbg_pos_minus_p
> 0.0000100
>     73        float OUT             0  hpg.stepgen.01.dbg_s_to_match
> 0.0000100
>     73        s32   OUT             0  hpg.stepgen.01.dbg_step_rate
>     0
>     73        float OUT             0  hpg.stepgen.01.dbg_vel_error
> 0.0000100
>     73        u32   IN     0x00000064  hpg.stepgen.01.dirhold
>     0
>     73        u32   IN     0x00000011  hpg.stepgen.01.dirpin
>     0
>     73        u32   IN     0x00000064  hpg.stepgen.01.dirsetup
>     0
>     73        bit   IN          FALSE  hpg.stepgen.01.enable
>     0
>     73        float IN              1  hpg.stepgen.01.maxaccel
> 0.0000100
>     73        float IN              0  hpg.stepgen.01.maxvel
> 0.0000100
>     73        float IN              0  hpg.stepgen.01.position-cmd
> 0.0000100
>     73        float OUT             0  hpg.stepgen.01.position-fb
> 0.0000100
>     73        float IN              1  hpg.stepgen.01.position-scale
> 0.0000100
>     73        bit   IN          FALSE  hpg.stepgen.01.stepinvert
>     0
>     73        u32   IN     0x00000064  hpg.stepgen.01.steplen
>     0
>     73        u32   IN     0x00000011  hpg.stepgen.01.steppin
>     0
>     73        u32   IN     0x00000064  hpg.stepgen.01.stepspace
>     0
>     73        s32   OUT             0  hpg.stepgen.01.test1
>     0
>     73        s32   OUT             0  hpg.stepgen.01.test2
>     0
>     73        s32   OUT             0  hpg.stepgen.01.test3
>     0
>     73        float IN              0  hpg.stepgen.01.velocity-cmd
> 0.0000100
>     73        float OUT             0  hpg.stepgen.01.velocity-fb
> 0.0000100
>     73        bit   IN          FALSE  hpg.stepgen.02.control-type
>     0
>     73        s32   OUT             0  hpg.stepgen.02.counts
>     0
>     73        float OUT             0  hpg.stepgen.02.dbg_err_at_matc
> 0.0000100
>     73        float OUT             0  hpg.stepgen.02.dbg_ff_vel
> 0.0000100
>     73        float OUT             0  hpg.stepgen.02.dbg_pos_minus_p
> 0.0000100
>     73        float OUT             0  hpg.stepgen.02.dbg_s_to_match
> 0.0000100
>     73        s32   OUT             0  hpg.stepgen.02.dbg_step_rate
>     0
>     73        float OUT             0  hpg.stepgen.02.dbg_vel_error
> 0.0000100
>     73        u32   IN     0x00000064  hpg.stepgen.02.dirhold
>     0
>     73        u32   IN     0x00000011  hpg.stepgen.02.dirpin
>     0
>     73        u32   IN     0x00000064  hpg.stepgen.02.dirsetup
>     0
>     73        bit   IN          FALSE  hpg.stepgen.02.enable
>     0
>     73        float IN              1  hpg.stepgen.02.maxaccel
> 0.0000100
>     73        float IN              0  hpg.stepgen.02.maxvel
> 0.0000100
>     73        float IN              0  hpg.stepgen.02.position-cmd
> 0.0000100
>     73        float OUT             0  hpg.stepgen.02.position-fb
> 0.0000100
>     73        float IN              1  hpg.stepgen.02.position-scale
> 0.0000100
>     73        bit   IN          FALSE  hpg.stepgen.02.stepinvert
>     0
>     73        u32   IN     0x00000064  hpg.stepgen.02.steplen
>     0
>     73        u32   IN     0x00000011  hpg.stepgen.02.steppin
>     0
>     73        u32   IN     0x00000064  hpg.stepgen.02.stepspace
>     0
>     73        s32   OUT             0  hpg.stepgen.02.test1
>     0
>     73        s32   OUT             0  hpg.stepgen.02.test2
>     0
>     73        s32   OUT             0  hpg.stepgen.02.test3
>     0
>     73        float IN              0  hpg.stepgen.02.velocity-cmd
> 0.0000100
>     73        float OUT             0  hpg.stepgen.02.velocity-fb
> 0.0000100
>     73        s32   OUT             0  hpg.update.time
>     0
>
>
> It is quite strange that everything works well except this module load
failed.





On Fri, Jul 29, 2016 at 11:56 PM, [email protected] <
[email protected]> wrote:

>
> On 29/07/16 16:00, Chen Cheng Xi wrote:
>
>> Jul 29 14:14:15 arm msgd:0: hal_lib:1414:rt hal_pin_newfv:28 HAL error:
>> length 49 invalid for name starting
>> 'hal_pru_generic.stepgen.00.dbg_pos_minus_'
>>
>
> Please see Michael's recent post plus these 4 previous posts on the same
>
>
> https://groups.google.com/forum/#!searchin/machinekit/length$2049$20invalid$20for$20name$20starting;context-place=searchin/machinekit/length$2049$20invalid$20for$20name$20starting$20$26$2339
>
> You have to alias it hpg or similar or some of the pin names exceed the
> buffer length
>
>
> --
> website: http://www.machinekit.io blog: http://blog.machinekit.io github:
> https://github.com/machinekit
> --- You received this message because you are subscribed to a topic in the
> Google Groups "Machinekit" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/machinekit/qncQ_Dh7V9s/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> Visit this group at https://groups.google.com/group/machinekit.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Best regards!
陈成细
R&D Engineer
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to