raspberry pi pwm

49 views
Skip to first unread message

Марио Георгиев

unread,
Mar 14, 2014, 2:26:23 AM3/14/14
to erlang-...@googlegroups.com
Hello to all,

I've been playing around with my raspberry pi and for the moment I'm so impressed with the erlang_ale, but I have some problem starting on the pwm module.
I've cloned the https://github.com/esl/erlang_ale and issued 'make & make shell' and then when I tried 'pwm_sup:start_link([{pwm1, "/dev/pwm1"}]).' it throws an exception like this:
** exception exit: {shutdown,{failed_to_start_child,{pwm1,"/dev/pwm1"},
                                                    {{badmatch,{error,{load_failed,"Failed to load NIF library: 'priv/pwm_nif.so: undefined symbol: pwm_release'"}}},
                                                     [{pwm,load_nif,0,[{file,"src/pwm.erl"},{line,146}]},
                                                      {pwm,init,1,[{file,"src/pwm.erl"},{line,64}]},
                                                      {gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},
                                                      {proc_lib,init_p_do_apply,3,
                                                                [{file,"proc_lib.erl"},{line,239}]}]}}}
In the '/dev' directory there is no 'pwm1' device is there some 'modprobe' that should be executed or some other magic to get it working? 
:)
Reply all
Reply to author
Forward
Message has been deleted
0 new messages